oauth2-microsoft
oauth2-microsoft copied to clipboard
Getting "Access token is empty" response with Microsoft Business Account
Hi. I created an app on azure and using its Client ID and Client secret I am able to authenticate and everything works as expected but when I try it with a Microsoft Business Account I get "Access Token is Empty error". Here is my configuration, I used microsoft online urls for auth and token:
` /** * Default scopes * * @var array
*/
public $defaultScopes = 'openid profile email User.Read.All';
/**
* Base url for authorization.
*
* @var string
*/
protected $urlAuthorize = 'https://login.microsoftonline.com/common/oauth2/v2.0/authorize';
/**
* Base url for access token.
*
* @var string
*/
protected $urlAccessToken = 'https://login.microsoftonline.com/common/oauth2/v2.0/token';
/**
* Base url for resource owner.
*
* @var string
*/
protected $urlResourceOwnerDetails = 'https://graph.microsoft.com/v1.0/me';`
Moreover, When I debug the app, I get the token in `$token` but for some reason it doesn't get appended to ResourceOwner detail call and that call returns Access token is empty.
Anyone else faced the same issue?
I am experiencing the same issue. I do receive a token but when appending the ResourceOwner details i will get a Access Token is empty...