We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Since you need the resource owner e-mail to use the token with say PhpMailer, it would be nice to obtain it automatically.
I would have expected that this works:
$authUrl = $provider->getAuthorizationUrl([ 'scope' => [ 'https://outlook.office.com/SMTP.Send', 'offline_access', 'https://outlook.office.com/User.Read' # <----added this ] ]);
...
$token = $provider->getAccessToken( 'authorization_code', [ 'code' => $_GET['code'] ] ); $provider->getResourceOwner($token);
The last line of the quote fails with "InvalidAuthenticationToken","message":"Access token is empty." Hardcoding the email the workflow works fine.
"InvalidAuthenticationToken","message":"Access token is empty."
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Since you need the resource owner e-mail to use the token with say PhpMailer, it would be nice to obtain it automatically.
I would have expected that this works:
...
The last line of the quote fails with
"InvalidAuthenticationToken","message":"Access token is empty."
Hardcoding the email the workflow works fine.The text was updated successfully, but these errors were encountered: