0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-13 21:30:30 -05:00

Enable token revocation and OIDC CORS

This commit is contained in:
Gao Sun 2021-06-29 22:58:59 +08:00
parent fb25411d6f
commit 2723d9c49f
No known key found for this signature in database
GPG key ID: 0F0EFA2E36639F31

View file

@ -33,6 +33,11 @@ export default async function initOidc(app: Koa, port: number): Promise<void> {
token_endpoint_auth_method: 'none', token_endpoint_auth_method: 'none',
}, },
], ],
features: { revocation: { enabled: true } },
clientBasedCORS: (ctx, origin) => {
console.log('rogin', origin);
return origin.startsWith('http://localhost:3000');
},
findAccount: (ctx, sub) => { findAccount: (ctx, sub) => {
console.log('finding account'); console.log('finding account');
return { return {