-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathoidcop_frontend.yaml
306 lines (302 loc) · 9.1 KB
/
oidcop_frontend.yaml
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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
module: satosa_oidcop.idpy_oidcop.OidcOpFrontend
name: OIDC
config:
domain: &domain localhost
server_name: *domain
base_url: &base_url <base_url>
storage:
class: "satosa_oidcop.core.storage.mongo.Mongodb"
kwargs:
url: mongodb://satosa-mongo:27017/oidcop
connection_params:
username: satosa
password: thatpassword
connectTimeoutMS: 5000
socketTimeoutMS: 5000
serverSelectionTimeoutMS: 5000
db_name: oidcop
collections:
# type: collection name
session: session
client: client
default_target_backend: spidSaml2
salt_size: 8
op:
server_info:
add_on:
pkce:
function: idpyoidc.server.oauth2.add_on.pkce.add_support
kwargs:
code_challenge_method: S256 S384 S512
essential: false
authentication:
user:
acr: urn:oasis:names:tc:SAML:2.0:ac:classes:InternetProtocolPassword
class: satosa_oidcop.core.user_authn.SatosaAuthnMethod
authz:
class: idpyoidc.server.authz.AuthzHandling
kwargs:
grant_config:
expires_in: 43200
usage_rules:
access_token: {}
authorization_code:
max_usage: 1
supports_minting:
- access_token
- refresh_token
- id_token
refresh_token:
supports_minting:
- access_token
- refresh_token
capabilities:
grant_types_supported:
- authorization_code
- urn:ietf:params:oauth:grant-type:jwt-bearer
- refresh_token
subject_types_supported:
- public
- pairwise
scopes_supported:
- openid
- profile
- offline_access
claims_supported:
- sub
- given_name
- birthdate
- email
endpoint:
provider_info:
class: idpyoidc.server.oidc.provider_config.ProviderConfiguration
kwargs:
client_authn_method: null
path: .well-known/openid-configuration
authorization:
class: idpyoidc.server.oidc.authorization.Authorization
kwargs:
claims_parameter_supported: true
client_authn_method: null
request_object_encryption_alg_values_supported: &id001
- RSA-OAEP
- RSA-OAEP-256
request_parameter_supported: true
request_uri_parameter_supported: true
response_modes_supported:
- query
- fragment
- form_post
response_types_supported:
- code
path: OIDC/authorization
token:
class: idpyoidc.server.oidc.token.Token
kwargs:
client_authn_method:
- client_secret_post
- client_secret_basic
- client_secret_jwt
- private_key_jwt
path: OIDC/token
userinfo:
class: idpyoidc.server.oidc.userinfo.UserInfo
kwargs:
claim_types_supported:
- normal
- aggregated
- distributed
userinfo_encryption_alg_values_supported: *id001
userinfo_signing_alg_values_supported: &id002
- RS256
- RS512
- ES256
- ES512
path: OIDC/userinfo
introspection:
class: idpyoidc.server.oauth2.introspection.Introspection
kwargs:
client_authn_method:
- client_secret_post
- client_secret_basic
- client_secret_jwt
- private_key_jwt
release:
- username
path: OIDC/introspection
# uncomment this for dynamic client registration
#registration:
#class: idpyoidc.server.oidc.registration.Registration
#kwargs:
#client_authn_method: null
#client_id_generator:
#class: idpyoidc.server.oidc.registration.random_client_id
#kwargs: {}
#client_secret_expiration_time: 432000
#path: OIDC/registration
registration_read:
class: idpyoidc.server.oidc.read_registration.RegistrationRead
kwargs:
client_authn_method:
- bearer_header
path: OIDC/registration_read
# TODO - Logout in SATOSA haven't been implemented
#end_session:
#class: idpyoidc.server.oidc.session.Session
#kwargs:
#backchannel_logout_session_supported: true
#backchannel_logout_supported: true
#frontchannel_logout_session_supported: true
#frontchannel_logout_supported: true
#logout_verify_url: verify_logout
#post_logout_uri_path: post_logout
#signing_alg: ES256
#path: OIDC/session
httpc_params:
verify: false
issuer: *base_url
keys:
key_defs:
- type: RSA
use:
- sig
- crv: P-256
type: EC
use:
- sig
private_path: data/oidc_op/private/jwks.json
public_path: data/static/jwks.json
read_only: false
uri_path: OIDC/jwks.json
login_hint2acrs:
class: idpyoidc.server.login_hint.LoginHint2Acrs
kwargs:
scheme_map:
email:
- urn:oasis:names:tc:SAML:2.0:ac:classes:InternetProtocolPassword
session_params:
encrypter:
class: cryptojwt.jwe.fernet.FernetEncrypter
kwargs:
password: CHANGE_ME__password_used_to_encrypt_access_token_sid_value
salt: "CHANGE_ME salt involved in session sub hash"
keys:
key_defs:
- type: OCT
use:
- enc
kid: password
- type: OCT
use:
- enc
kid: salt
sub_func:
pairwise:
class: idpyoidc.server.session.manager.PairWiseID
kwargs:
salt: CHANGE_ME_OR_LET_IT_BE_RANDOMIC
public:
class: idpyoidc.server.session.manager.PublicID
kwargs:
salt: CHANGE_ME_OR_LET_IT_BE_RANDOMIC
template_dir: templates
token_handler_args:
code:
kwargs:
lifetime: 600
crypt_conf:
kwargs:
password: CHANGE_ME__password_used_to_encrypt_authorization_code
salt: "CHANGE_ME salt involved in authorization code hash"
keys:
key_defs:
- type: OCT
use:
- enc
kid: password
- type: OCT
use:
- enc
kid: salt
id_token:
class: idpyoidc.server.token.id_token.IDToken
kwargs:
id_token_encryption_alg_values_supported: *id001
id_token_encryption_enc_values_supported:
- A128CBC-HS256
- A192CBC-HS384
- A256CBC-HS512
- A128GCM
- A192GCM
- A256GCM
id_token_signing_alg_values_supported: *id002
#jwks_file: data/oidc_op/private/token_jwks.json
# jwks_def:
# private_path: data/oidc_op/private/token_jwks.json
# read_only: False
# key_defs:
# - type: oct
# bytes: 24
# use:
# - enc
# kid: code
# - type: oct
# bytes: 24
# use:
# - enc
# kid: token
# - type: oct
# bytes: 24
# use:
# - enc
# kid: refresh
refresh:
kwargs:
lifetime: 86400
crypt_conf:
kwargs:
password: CHANGE_ME__password_used_to_encrypt_refresh_tokens
salt: "CHANGE_ME salt involved in refresh token hash"
keys:
key_defs:
- type: OCT
use:
- enc
kid: password
- type: OCT
use:
- enc
kid: salt
token:
class: idpyoidc.server.token.jwt_token.JWTToken
kwargs:
lifetime: 3600
userinfo:
class: satosa_oidcop.core.user_info.SatosaOidcUserInfo
#kwargs:
#whatever:
#key: value
# until SATOSA won't support logout the oidcop cookies are quite useless
#cookie_handler:
#class: idpyoidc.server.cookie_handler.CookieHandler
#kwargs:
#flags:
#httponly: true
#samesite: None
#secure: true
#keys:
#key_defs:
#- kid: enc
#type: OCT
#use:
#- enc
#- kid: sig
#type: OCT
#use:
#- sig
#private_path: data/oidc_op/private/cookie_jwks.json
#read_only: false
#name:
#register: oidc_op_rp
#session: oidc_op
#session_management: sman