This repository has been archived by the owner on Sep 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponents.json
186 lines (186 loc) · 5.33 KB
/
components.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
{
"universalLogin": {
"universal_login_experience": "new"
},
"tenantSettings": {
"error_page": {
"html": "",
"show_log_link": false,
"url": "<%= errorUrl %>"
},
"picture_url": "https://avatars.githubusercontent.com/u/50330003?s=200&v=4",
"universal_login": {
"colors": {
"primary": "#00aeef",
"page_background": "#757575"
}
}
},
"apis": [
{
"name": "Discovery API",
"identifier": "discovery_api",
"allow_offline_access": true,
"skip_consent_for_verifiable_first_party_clients": false,
"token_lifetime": 86400,
"token_lifetime_for_web": 7200,
"signing_alg": "RS256",
"enforce_policies": false,
"token_dialect": "access_token"
},
{
"name": "Andi",
"identifier": "andi",
"allow_offline_access": true,
"skip_consent_for_verifiable_first_party_clients": false,
"token_lifetime": 86400,
"token_lifetime_for_web": 7200,
"signing_alg": "RS256",
"enforce_policies": false,
"token_dialect": "access_token"
}
],
"clients": [
{
"name": "Auth0 Management",
"app_type": "non_interactive"
},
{
"name": "<%= clients['ANDI'].name %>",
"app_type": "<%= clients['ANDI'].type %>",
"callbacks": <%= clients['ANDI'
].callbacks %>,
"allowed_logout_urls": <%= clients['ANDI'
].allowedLogoutUrls %>,
"logo_uri": "https://avatars.githubusercontent.com/u/50330003?s=200&v=4",
"allowed_origins": <%= clients['ANDI'
].allowedOrigins %>,
"jwt_configuration": {
"alg": "RS256",
"lifetime_in_seconds": 36000
},
"web_origins": <%= clients['ANDI'
].webOrigins %>,
"custom_login_page_on": false
},
{
"name": "<%= clients['Discovery'].name %>",
"app_type": "<%= clients['Discovery'].type %>",
"callbacks": <%= clients['Discovery'
].callbacks %>,
"allowed_logout_urls": <%= clients['Discovery'
].allowedLogoutUrls %>,
"logo_uri": "https://avatars.githubusercontent.com/u/50330003?s=200&v=4",
"allowed_origins": <%= clients['Discovery'
].allowedOrigins %>,
"jwt_configuration": {
"alg": "RS256",
"lifetime_in_seconds": 36000
},
"web_origins": <%= clients['Discovery'
].webOrigins %>,
"custom_login_page_on": false,
"token_endpoint_auth_method": "none"
}
],
"connections": [
{
"options": {
"email": true,
"profile": true,
"scope": [
"email",
"profile"
]
},
"strategy": "google-oauth2",
"name": "google-oauth2"
},
{
"options": {
"mfa": {
"active": true,
"return_enroll_settings": true
},
"passwordPolicy": "excellent",
"strategy_version": 2,
"brute_force_protection": true,
"password_dictionary": {
"enable": true,
"dictionary": []
},
"password_complexity_options": {
"min_length": 8
}
},
"strategy": "auth0",
"name": "Username-Password-Authentication",
"is_domain_connection": false,
"realms": [
"Username-Password-Authentication"
]
}
],
"rules": [
{
"enabled": true,
"script": "function (user, context, callback) {\n if (!user.email_verified) {\n return callback(new UnauthorizedError('You must verify your email before you can save workspaces. Please check your email for the verification link.'));\n } else {\n return callback(null, user, context);\n }\n}",
"name": "Require Email Validation",
"order": 1
},
{
"enabled": true,
"script": "function(user, context, callback){\n\tvar roles = (context.authorization || {}).roles || [];\n var scope = ((context.request || {}).query || {}).scope || '';\n \n if (! scope.includes('offline_access')) return callback(null, user, context);\n if (! roles.includes('Extended Access')) return callback(new UnauthorizedError('User is not authorized to request offline_access.'));\n \n return callback(null, user, context);\n}",
"name": "Restrict Offline Access",
"order": 2
},
{
"enabled": true,
"name": "Multifactor Authentication",
"order": 4,
"script": "function multifactorAuthentication(user, context, callback) {\n var roles = (context.authorization || {}).roles;\n\n if (roles.includes(\"Curator\")) {\n context.multifactor = {\n provider: 'any',\n allowRememberBrowser: true\n};\n}\n\n return callback(null, user, context);\n}"
}
],
"roles": [
{
"name": "Extended Access",
"description": "Allow for extended access via refresh tokens"
}
],
"guardian": {
"factors": [
{
"name": "otp",
"enabled": true
},
{
"name": "email",
"enabled": true
}
]
},
"actions": [
{
"name": "assign-api-key",
"supported_triggers": [
{
"id": "post-login",
"version": "v2"
}
],
"codePath": "./scripts/actionScripts/assign-api-key.js",
"dependencies": [],
"runtime": "node16",
"secrets": []
}
],
"postLoginFlow": [
{
"ref": {
"type": "action_name",
"value": "assign-api-key"
},
"display_name": "Assign API Key"
}
]
}