-
-
Notifications
You must be signed in to change notification settings - Fork 440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for JWT with JWKS #2589
Labels
enhancement
New feature or request.
Comments
probably related to #672 |
Apple Music API also needs expected headers and payload: {
"alg": "ES256",
"kid": "ABC123DEFG"
}
{
"iss": "DEF123GHIJ",
"iat": 1437179036,
"exp": 1493298100
} actual: {
"alg": "ES256",
"typ": "JWT"
}
{
"iss": "DEF123GHIJ",
"iat": 1437179036,
"exp": 1493298100
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is the feature you are proposing?
currently the
jwt
middleware requires a static secret value, however in my use case (see below) it's not a static secret instead it is retrieved from an JWKS. Therefore it would be nice if thejwt
middleware also support anasync function(payload: any) : string
as secret parameter.Use Case:
I'm working on a server endpoint that is called by GitHub actions to authenticate I'm using the Github Actions OIDC tokens.
Currently I'm using my own middleware by using
fast-jwt
withget-jwks
like thishowever it would be nice if I can switch to an official middleware.
The text was updated successfully, but these errors were encountered: