feat: allow setting OIDC_CLIENT_SECRET_METHOD
This commit is contained in:
parent
a7d127c7bf
commit
da0ee1382b
3 changed files with 7 additions and 2 deletions
|
|
@ -36,7 +36,7 @@ export async function startOidc(oidc: OidcConfig, req: Request) {
|
|||
const issuerUrl = new URL(oidc.issuer)
|
||||
const oidcClient = {
|
||||
client_id: oidc.client,
|
||||
token_endpoint_auth_method: 'client_secret_basic',
|
||||
token_endpoint_auth_method: oidc.method,
|
||||
} satisfies Client
|
||||
|
||||
const response = await discoveryRequest(issuerUrl)
|
||||
|
|
@ -91,7 +91,7 @@ export async function finishOidc(oidc: OidcConfig, req: Request) {
|
|||
const oidcClient = {
|
||||
client_id: oidc.client,
|
||||
client_secret: oidc.secret,
|
||||
token_endpoint_auth_method: 'client_secret_basic',
|
||||
token_endpoint_auth_method: oidc.method,
|
||||
} satisfies Client
|
||||
|
||||
const response = await discoveryRequest(issuerUrl)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue