Skip to content
New issue

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

Issue with Resource ID not getting passed into Auth URL #43

Open
sheilagithub opened this issue Jan 18, 2018 · 3 comments
Open

Issue with Resource ID not getting passed into Auth URL #43

sheilagithub opened this issue Jan 18, 2018 · 3 comments
Labels

Comments

@sheilagithub
Copy link

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.

@hajekj
Copy link
Member

hajekj commented Jan 19, 2018

Could you please post some code sample (excluding client_id and client_secret of course)?

@sheilagithub
Copy link
Author

sheilagithub commented Jan 19, 2018 via email

@hajekj
Copy link
Member

hajekj commented Feb 21, 2018

Sorry for the late response. When you creating a provider, you need to specify the resource separately:

$provider->resource = "https://graph.microsoft.com/";

Then, you should be able to get the access_token. Please try it and get back to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants