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:
parent
fb25411d6f
commit
2723d9c49f
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',
|
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 {
|
||||||
|
|
Loading…
Add table
Reference in a new issue