UNPKG

2.39 kBJavaScriptView Raw
1module.exports = {
2 'name': 'authentication',
3 'main': 'lib/authentication.js',
4 'optionsSchema': {
5 extensions: {
6 authentication: {
7 type: 'object',
8 properties: {
9 cookieSession: {
10 type: 'object',
11 properties: {
12 cookie: { type: 'object' },
13 secret: { type: 'string' }
14 }
15 },
16 admin: {
17 type: 'object',
18 properties: {
19 username: { type: 'string' },
20 password: { type: 'string' }
21 }
22 },
23 authorizationServer: {
24 type: 'object',
25 properties: {
26 tokenValidation: {
27 type: 'object',
28 properties: {
29 endpoint: { type: 'string' },
30 timeout: { type: 'number' },
31 sendAsJSON: { type: 'boolean' },
32 hint: {
33 oneOf: [{
34 type: 'string'
35 }, {
36 type: 'object'
37 }, {
38 type: 'array',
39 items: { type: 'object' }
40 }]
41 },
42 usernameField: { type: 'string' },
43 activeField: { type: 'string' },
44 scope: {
45 type: 'object',
46 properties: {
47 field: { type: 'string' },
48 valid: { type: 'array', items: { type: 'string' } }
49 }
50 },
51 auth: {
52 anyOf: [{
53 type: 'boolean'
54 }, {
55 type: 'object',
56 properties: {
57 type: { type: 'string', enum: ['basic', 'bearer'] },
58 basic: {
59 type: 'object',
60 properties: {
61 clientId: { type: 'string' },
62 clientSecret: { type: 'string' }
63 }
64 },
65 bearer: { type: 'string' }
66 }
67 }]
68 }
69 }
70 }
71 }
72 }
73 }
74 }
75 }
76 },
77 'dependencies': [],
78 'skipInExeRender': true
79}