0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-02-03 21:48:55 -05:00

feat: enable token introspection, close #2

This commit is contained in:
Gao Sun 2021-06-30 23:09:00 +08:00 committed by Gao Sun
parent 5caa4e5328
commit f356dabbbc

View file

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