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:
parent
b080ae6e79
commit
0444901430
1 changed files with 5 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue