GithubHelp home page GithubHelp logo

Comments (4)

zandbelt avatar zandbelt commented on June 15, 2024 1

Indeed there's common data in both tokens but some fields are only present in either. Such as the email since it's not required for authorization.

you should need to do only one of those

Is there a specific reason or is it a best practice ?

it is just that I see no reason: if you're going to include identity data in the access token anyway, leaving out the email address seems arbitrary

from mod_oauth2.

zandbelt avatar zandbelt commented on June 15, 2024

firstly I'd say that you should need to do only one of those because it would/should render the same data; If for some reason you'd still need to consume both, the only solution is to configure token verification of one token on a specific path and then proxy internally to a different path that verifies the second token

from mod_oauth2.

hollowshiroyuki avatar hollowshiroyuki commented on June 15, 2024

Indeed there's common data in both tokens but some fields are only present in either. Such as the email since it's not required for authorization.

you should need to do only one of those

Is there a specific reason or is it a best practice ?

from mod_oauth2.

hollowshiroyuki avatar hollowshiroyuki commented on June 15, 2024

Unfortunately, I don't have control on which data is included in which token, Amazon chose to put authorization related data in one and identity related data in the other

from mod_oauth2.

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.