Skip to content

Commit 8aa1789

Browse files
petewinsThangHuuVu
andcommittedMar 25, 2023
fix(oauth): allow jwks_uri to be set for non-wellKnown (#7014)
fix(oauth): allow jwks_uri to be set for non-wellKnown flow by passing jwks_endpoint Co-authored-by: Thang Vu <hi@thvu.dev>
1 parent a7601d0 commit 8aa1789

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
 

‎packages/next-auth/src/core/lib/oauth/client.ts

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export async function openidClient(
2525
authorization_endpoint: provider.authorization?.url,
2626
token_endpoint: provider.token?.url,
2727
userinfo_endpoint: provider.userinfo?.url,
28+
jwks_uri: provider.jwks_endpoint,
2829
})
2930
}
3031

‎packages/next-auth/src/providers/oauth.ts

+1
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ export interface OAuthConfig<P> extends CommonProviderOptions, PartialIssuer {
109109
* [Authorization Server Metadata](https://datatracker.ietf.org/doc/html/rfc8414#section-3)
110110
*/
111111
wellKnown?: string
112+
jwks_endpoint?: string
112113
/**
113114
* The login process will be initiated by sending the user to this URL.
114115
*

0 commit comments

Comments
 (0)
Please sign in to comment.