Skip to content
This repository has been archived by the owner on Oct 29, 2021. It is now read-only.

Allows IO in validation keyset #169

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

jkarni
Copy link
Member

@jkarni jkarni commented Aug 5, 2020

Fixes #153
I still want to try this out before merging. Note that it also should follow #168.

data JWTSettings
= JWTSettings
{ -- | Key used to sign JWT.
signingKey :: Jose.JWK,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the Okta or Auth0 case, we wouldn't have a signing key. We can only validate using public keys. Should this signing key always be required? We could make a dummy one, of course...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it's a perpetual awkwardness of this library. The signing key is used for cookies (since those are also JWTs). There is sometimes an advantage to having it, since you can store data that's different than whatever you got during login, but it's really annoying to make it (and cookies) optional.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough! Thanks again for working on this.

@smaccoun
Copy link

Any progress on this? I think this approach is a good one and thanks for working on it @jkarni

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support updating JWKSet
3 participants