[英]Oauth2 refresh_token doesn't exists
I use below code but when I login via Microsoft account I don't receive refresh_token.我使用下面的代码,但是当我通过 Microsoft 帐户登录时,我没有收到 refresh_token。 Someone can explain why?有人可以解释为什么吗?
$login = 'https://login.microsoftonline.com/xxxxxxxxxxxxxxxxxxxxxxxxx/oauth2/v2.0/authorize?'.http_build_query([
'client_id' => $id,
'scope' => 'https://outlook.office.com/IMAP.AccessAsUser.All',
'redirect_uri' => $redirect,
'response_type' => 'code',
]);
Make sure you request offline_access
permission.确保您请求offline_access
权限。
I found solution for my all questions.我找到了所有问题的解决方案。 I had to add offline_access to the scope.我必须将 offline_access 添加到 scope。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.