0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

feat: enable token introspection, close #2

This commit is contained in:
Gao Sun 2021-06-30 23:09:00 +08:00
parent e7afe3e745
commit 359a1b2857
No known key found for this signature in database
GPG key ID: 0F0EFA2E36639F31

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');