Reputation: 3303
From what I understand about authorization code flow in OpenID Connect and OAuth 2, the code parameter that is returned to the relying party from the authorize endpoint is supposed to be exchanged in a subsequent request for an access_token. However, in hybrid flow you can request a code, access_token and an id_token to be returned from the authorize endpoint. So why would you ever need the code parameter if you already have an access_token?
Upvotes: 0
Views: 175
Reputation: 2409
I can think of two reasons at least, both having to do with the client being able to authenticate to the token endpoint, but not the authorization endpoint:
Upvotes: 1