-
Notifications
You must be signed in to change notification settings - Fork 109
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
Exception "The client_id / audience is invalid!" when using accesstoken #194
Comments
What please is the value of AUD in the token claims? |
ehm. AUD token? where ist that set? |
Ah. I assumed that your "I've checked the token and it is the value created" meant that you had decoded the access token.
|
I see thanks, I could see the content. But how is the validateAccessToken supposed to work? I assumed in an API call I can do a quick test to check it the the session is (still) valid. |
Since the error message is saying that either or both of the client ID (which you input) and AUD (which you didn't) are bad, could you please reply with the AUD value - it is not sensitive. |
If I decode the result of getToken and base64_decode it I get something proper but also some garbage at the end
And json_encode cannot use it. but the AUD is |
I cannot tell what the garbage is, but if you are using Graph as the resource provider, the AUD should be https://graph.microsoft.com. |
Thanks. but what I see we don't need the results from getToken, only the getResourceOwner data which we will store in a PHP session variable. |
I get an exception when using a token.
This is how I save the token after succesfull logon:
This is how I use the stored access token (for debugging I use the token in the session:
I've checked the token and it is the value created.
The text was updated successfully, but these errors were encountered: