This repository was archived by the owner on Dec 13, 2018. It is now read-only.
This repository was archived by the owner on Dec 13, 2018. It is now read-only.
Implement the hybrid flow, unify code and authorization flows #456
Closed
Description
We don't really implement the hybrid flow, we just do the implicit flow and then fire AuthorizationCodeReceived at the end and let you do it yourself. Using AuthorizationCodeReceived here is confusing as it fires in a different order than it would in the code flow, and means something different. It looks like we should just implement the hybrid flow, and do so before doing all of the token validations.
I think we could unify HandleCodeOnlyFlow and HandleIdTokenFlows by doing things in the following order:
- check for a code, redeem it.
- validate the authorization and token responses.
- get claims from the user endpoint.