Giter Site home page Giter Site logo

Comments (8)

decomplexity avatar decomplexity commented on June 24, 2024

What please is the value of AUD in the token claims?

from oauth2-azure.

kingma-sbw avatar kingma-sbw commented on June 24, 2024

ehm. AUD token? where ist that set?

from oauth2-azure.

decomplexity avatar decomplexity commented on June 24, 2024

Ah. I assumed that your "I've checked the token and it is the value created" meant that you had decoded the access token.
You can easily check the client id. But to check the audience:

from oauth2-azure.

kingma-sbw avatar kingma-sbw commented on June 24, 2024

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.

from oauth2-azure.

decomplexity avatar decomplexity commented on June 24, 2024

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 the token had timed out - they have a very short life of perhaps an hour, or the key signature was bad - I would hope that the error message would say so.

from oauth2-azure.

kingma-sbw avatar kingma-sbw commented on June 24, 2024

If I decode the result of getToken and base64_decode it I get something proper but also some garbage at the end

�$@RD_�BZC^�Pv~9P`�8BZq�yt]�^�D)>ϧEꮉ�T<`,_#ⴅ3�uoR,?or�wIjB@d�X� )RtPtI_C=/Ae-j��$t�m.�\.7�j`D:nsʽ�p��垝�M[�&d%�LbȈ
>	���w�p!y�J�S�KPs\7j$� 

And json_encode cannot use it.

but the AUD is "https://graph.windows.net/",

from oauth2-azure.

decomplexity avatar decomplexity commented on June 24, 2024

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.
If instead you are using a non-Microsoft package such as PHPMailer to send SMTP mail, the AUD must be https://outlook.office.com/ or authentication will fail; this AUD is forced using a Scope operand

from oauth2-azure.

kingma-sbw avatar kingma-sbw commented on June 24, 2024

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.

from oauth2-azure.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.