Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit a94fbdc

Browse files
committed
Added some logout support
1 parent 5469b04 commit a94fbdc

File tree

1 file changed

+47
-23
lines changed

1 file changed

+47
-23
lines changed

flask_rp/conf.yaml

Lines changed: 47 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,10 @@ http_params:
3434
#client_key: "certs/client.key"
3535

3636
keydefs: &keydef
37-
-
38-
"type": "RSA"
37+
- "type": "RSA"
3938
"key": ''
4039
"use": ["sig"]
41-
-
42-
"type": "EC"
40+
- "type": "EC"
4341
"crv": "P-256"
4442
"use": ["sig"]
4543

@@ -49,37 +47,46 @@ session_cookie_name: 'rp_session'
4947
preferred_url_scheme: 'https'
5048

5149
rp_keys:
52-
'private_path': 'private/jwks.json'
53-
'key_defs': *keydef
54-
'public_path': 'static/jwks.json'
55-
# this will create the jwks files if they are absent
56-
'read_only': False
50+
'private_path': 'private/jwks.json'
51+
'key_defs': *keydef
52+
'public_path': 'static/jwks.json'
53+
# this will create the jwks files if they are absent
54+
'read_only': False
5755

5856
client_preferences: &id001
59-
application_name: rphandler
60-
application_type: web
61-
contacts: [[email protected]]
62-
response_types: [code]
63-
scope: [openid, profile, email, address, phone]
64-
token_endpoint_auth_method: [client_secret_basic, client_secret_post]
57+
application_name: rphandler
58+
application_type: web
59+
contacts:
60+
61+
response_types:
62+
- code
63+
scope:
64+
- openid
65+
- profile
66+
- email
67+
- address
68+
- phone
69+
token_endpoint_auth_method:
70+
- client_secret_basic
71+
- client_secret_post
6572

6673
services: &id002
67-
discovery:
74+
discovery: &disc
6875
class: oidcservice.oidc.provider_info_discovery.ProviderInfoDiscovery
6976
kwargs: {}
70-
registration:
77+
registration: &regist
7178
class: oidcservice.oidc.registration.Registration
7279
kwargs: {}
73-
authorization:
80+
authorization: &authz
7481
class: oidcservice.oidc.authorization.Authorization
7582
kwargs: {}
76-
accesstoken:
83+
accesstoken: &acctok
7784
class: oidcservice.oidc.access_token.AccessToken
7885
kwargs: {}
79-
userinfo:
86+
userinfo: &userinfo
8087
class: oidcservice.oidc.userinfo.UserInfo
8188
kwargs: {}
82-
end_session:
89+
end_session: &sess
8390
class: oidcservice.oidc.end_session.EndSession
8491
kwargs: {}
8592

@@ -92,14 +99,31 @@ clients:
9299
client_preferences: *id001
93100
issuer: https://127.0.0.1:5000/
94101
jwks_uri: 'static/jwks.json'
95-
redirect_uris: ['https://{domain}:{port}/authz_cb/flop']
96-
services: *id002
102+
redirect_uris:
103+
- 'https://{domain}:{port}/authz_cb/flop'
104+
post_logout_redirect_uris:
105+
- "https://{domain}:{port}/session_logout"
106+
frontchannel_logout_uri: "https://{domain}:{port}/fc_logout/flop"
107+
frontchannel_logout_session_required: True
108+
backchannel_logout_uri: "https://{domain}:{port}/bc_logout/flop"
109+
backchannel_logout_session_required: True
110+
services:
111+
discovery: *disc
112+
registration: *regist
113+
authorization: *authz
114+
accesstoken: *acctok
115+
userinfo: *userinfo
116+
end_session: *sess
97117
add_ons:
98118
pkce:
99119
function: oidcservice.oidc.add_on.pkce.add_pkce_support
100120
kwargs:
101121
code_challenge_length: 64
102122
code_challenge_method: S256
123+
# status_check:
124+
# function: oidcservice.oidc.add_on.status_check.add_status_check_support
125+
# kwargs:
126+
# rp_iframe_path: "templates/rp_iframe.html"
103127
bobcat:
104128
client_id: client3
105129
client_secret: 2222222222222222222222222222222222222222

0 commit comments

Comments
 (0)