mirror of
https://github.com/logto-io/logto.git
synced 2024-12-30 20:33:54 -05:00
feat: disable pkce requirement for traditional app
This commit is contained in:
parent
404fe9a03f
commit
5a59cd38e5
2 changed files with 11 additions and 0 deletions
5
.changeset/purple-birds-retire.md
Normal file
5
.changeset/purple-birds-retire.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"@logto/core": patch
|
||||
---
|
||||
|
||||
Disable pkce requirement for traditional web app
|
|
@ -254,6 +254,12 @@ export default function initOidc(
|
|||
Session: 1_209_600 /* 14 days in seconds */,
|
||||
Grant: 1_209_600 /* 14 days in seconds */,
|
||||
},
|
||||
pkce: {
|
||||
required: (ctx, client) => {
|
||||
return client.tokenEndpointAuthMethod !== 'client_secret_basic';
|
||||
},
|
||||
methods: ['S256'],
|
||||
},
|
||||
});
|
||||
|
||||
addOidcEventListeners(oidc);
|
||||
|
|
Loading…
Reference in a new issue