api/src/app/configs/oauth2.config.ts

25 lines
753 B
TypeScript
Raw Normal View History

2022-04-09 17:17:36 +00:00
import {OAuth2Client, OAuth2Scope, env, /*uuid4*/} from '@extollo/lib'
export default {
secret: env('OAUTH2_SECRET'),
scopes: {
'user-info': {
id: 'user-info',
name: 'user-info',
description: 'access basic information about your account',
},
} as {[key: string]: OAuth2Scope},
clients: {
// 'test-1': {
// id: 'test-1',
// display: 'Test 1',
// secret: env('TEST_CLIENT_SECRET', uuid4()),
// allowedFlows: ['code'],
// allowedScopeIds: ['user-info'],
// allowedRedirectUris: [
// 'http://localhost:1234/callback',
// ],
// },
} as {[key: string]: OAuth2Client},
}