0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-06 20:40:08 -05:00

Enable token revocation and OIDC CORS

This commit is contained in:
Gao Sun 2021-06-29 22:58:59 +08:00 committed by Gao Sun
parent b080ae6e79
commit 0444901430

View file

@ -33,6 +33,11 @@ export default async function initOidc(app: Koa, port: number): Promise<void> {
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) => {
console.log('finding account');
return {