You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am attempting to authenticate a Dynamics 365 Web API endpoint via your AzureAD library and am running into issues. I believe it is because the Resource ID is not passed as a query parameter in the Auth Url (not 100% certain on this though). It does not appear the resource is getting accounted anywhere in my token request.
The text was updated successfully, but these errors were encountered:
I've tried both in the constructor and also in the getToken:
$provider = new AzureOauthClient([
'clientId' => $client_id,
'clientSecret' => $client_secret,
'redirectUri' => $redirect_uri,
'resource' => $instance_url,
]);
$access_token = $provider->getAccessToken('authorization_code', [
'code' => $authorization_code,
'resource' => $instance_url,
]);
I was able to accomplish using the PHP League generic provider, I appended
the resource to the auth url and it works.
I am attempting to authenticate a Dynamics 365 Web API endpoint via your AzureAD library and am running into issues. I believe it is because the Resource ID is not passed as a query parameter in the Auth Url (not 100% certain on this though). It does not appear the resource is getting accounted anywhere in my token request.
The text was updated successfully, but these errors were encountered: