Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There are a few unrelated prefactor changes here, namely adding tooling configuration files.
Add implicit id_token flow
Some auth servers only allow the implicit flow for fetching an
id_token
. This flow is very straight forward, but it requires a fewdifferent steps than auth code.
response_type
id_token
.response_mode=form_post
otherwise theidentity server will return parameters in the hash fragment.
id_token
can then be validated by the client.MonadCatch
andMonadThrow
This pull request does not utilize
MonadCatch
orMonadThrow
. My specific use case is utilizingyesod-auth
, which requires authorization dispatch to exist within an abstract handler.That handler does not include
MonadCatch
orMonadThrow
. So the use of those constraints was prohibitive. Since all of the throwing and catching in this library happens withinIO
, it is not necessary to useMonadCatch
andMonadThrow
. I have excluded them from this PR.