0
Fork 0
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:
wangsijie 2023-05-18 11:28:10 +08:00 committed by Gao Sun
parent 404fe9a03f
commit 5a59cd38e5
No known key found for this signature in database
GPG key ID: 13EBE123E4773688
2 changed files with 11 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
"@logto/core": patch
---
Disable pkce requirement for traditional web app

View file

@ -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);