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

Commit 947a35e

Browse files
committed
Configuration in JSON format.
1 parent 9eff5ef commit 947a35e

1 file changed

Lines changed: 253 additions & 0 deletions

File tree

example/flask_rp/conf.json

Lines changed: 253 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,253 @@
1+
{
2+
"logging": {
3+
"version": 1,
4+
"disable_existing_loggers": false,
5+
"root": {
6+
"handlers": [
7+
"console",
8+
"file"
9+
],
10+
"level": "DEBUG"
11+
},
12+
"loggers": {
13+
"idp": {
14+
"level": "DEBUG"
15+
}
16+
},
17+
"handlers": {
18+
"console": {
19+
"class": "logging.StreamHandler",
20+
"stream": "ext://sys.stdout",
21+
"formatter": "default"
22+
},
23+
"file": {
24+
"class": "logging.FileHandler",
25+
"filename": "debug.log",
26+
"formatter": "default"
27+
}
28+
},
29+
"formatters": {
30+
"default": {
31+
"format": "%(asctime)s %(name)s %(levelname)s %(message)s"
32+
}
33+
}
34+
},
35+
"port": 8090,
36+
"domain": "127.0.0.1",
37+
"base_url": "https://{domain}:{port}",
38+
"httpc_params": {
39+
"verify": false
40+
},
41+
"keydefs": [
42+
{
43+
"type": "RSA",
44+
"key": "",
45+
"use": [
46+
"sig"
47+
]
48+
},
49+
{
50+
"type": "EC",
51+
"crv": "P-256",
52+
"use": [
53+
"sig"
54+
]
55+
}
56+
],
57+
"rp_keys": {
58+
"private_path": "private/jwks.json",
59+
"key_defs": [
60+
{
61+
"type": "RSA",
62+
"key": "",
63+
"use": [
64+
"sig"
65+
]
66+
},
67+
{
68+
"type": "EC",
69+
"crv": "P-256",
70+
"use": [
71+
"sig"
72+
]
73+
}
74+
],
75+
"public_path": "static/jwks.json",
76+
"read_only": false
77+
},
78+
"client_preferences": {
79+
"application_name": "rphandler",
80+
"application_type": "web",
81+
"contacts": [
82+
"ops@example.com"
83+
],
84+
"response_types": [
85+
"code"
86+
],
87+
"scope": [
88+
"openid",
89+
"profile",
90+
"email",
91+
"address",
92+
"phone"
93+
],
94+
"token_endpoint_auth_method": [
95+
"client_secret_basic",
96+
"client_secret_post"
97+
]
98+
},
99+
"services": {
100+
"discovery": {
101+
"class": "oidcrp.oidc.provider_info_discovery.ProviderInfoDiscovery",
102+
"kwargs": {}
103+
},
104+
"registration": {
105+
"class": "oidcrp.oidc.registration.Registration",
106+
"kwargs": {}
107+
},
108+
"authorization": {
109+
"class": "oidcrp.oidc.authorization.Authorization",
110+
"kwargs": {}
111+
},
112+
"accesstoken": {
113+
"class": "oidcrp.oidc.access_token.AccessToken",
114+
"kwargs": {}
115+
},
116+
"userinfo": {
117+
"class": "oidcrp.oidc.userinfo.UserInfo",
118+
"kwargs": {}
119+
},
120+
"end_session": {
121+
"class": "oidcrp.oidc.end_session.EndSession",
122+
"kwargs": {}
123+
}
124+
},
125+
"clients": {
126+
"": {
127+
"client_preferences": {
128+
"application_name": "rphandler",
129+
"application_type": "web",
130+
"contacts": [
131+
"ops@example.com"
132+
],
133+
"response_types": [
134+
"code"
135+
],
136+
"scope": [
137+
"openid",
138+
"profile",
139+
"email",
140+
"address",
141+
"phone"
142+
],
143+
"token_endpoint_auth_method": [
144+
"client_secret_basic",
145+
"client_secret_post"
146+
]
147+
},
148+
"redirect_uris": "None",
149+
"services": {
150+
"discovery": {
151+
"class": "oidcrp.oidc.provider_info_discovery.ProviderInfoDiscovery",
152+
"kwargs": {}
153+
},
154+
"registration": {
155+
"class": "oidcrp.oidc.registration.Registration",
156+
"kwargs": {}
157+
},
158+
"authorization": {
159+
"class": "oidcrp.oidc.authorization.Authorization",
160+
"kwargs": {}
161+
},
162+
"accesstoken": {
163+
"class": "oidcrp.oidc.access_token.AccessToken",
164+
"kwargs": {}
165+
},
166+
"userinfo": {
167+
"class": "oidcrp.oidc.userinfo.UserInfo",
168+
"kwargs": {}
169+
},
170+
"end_session": {
171+
"class": "oidcrp.oidc.end_session.EndSession",
172+
"kwargs": {}
173+
}
174+
}
175+
},
176+
"local": {
177+
"client_preferences": {
178+
"application_name": "rphandler",
179+
"application_type": "web",
180+
"contacts": [
181+
"ops@example.com"
182+
],
183+
"response_types": [
184+
"code"
185+
],
186+
"scope": [
187+
"openid",
188+
"profile",
189+
"email",
190+
"address",
191+
"phone"
192+
],
193+
"token_endpoint_auth_method": [
194+
"client_secret_basic",
195+
"client_secret_post"
196+
]
197+
},
198+
"issuer": "https://127.0.0.1:5000/",
199+
"redirect_uris": [
200+
"https://{domain}:{port}/authz_cb/local"
201+
],
202+
"post_logout_redirect_uris": [
203+
"https://{domain}:{port}/session_logout/local"
204+
],
205+
"frontchannel_logout_uri": "https://{domain}:{port}/fc_logout/local",
206+
"frontchannel_logout_session_required": true,
207+
"backchannel_logout_uri": "https://{domain}:{port}/bc_logout/local",
208+
"backchannel_logout_session_required": true,
209+
"services": {
210+
"discovery": {
211+
"class": "oidcrp.oidc.provider_info_discovery.ProviderInfoDiscovery",
212+
"kwargs": {}
213+
},
214+
"registration": {
215+
"class": "oidcrp.oidc.registration.Registration",
216+
"kwargs": {}
217+
},
218+
"authorization": {
219+
"class": "oidcrp.oidc.authorization.Authorization",
220+
"kwargs": {}
221+
},
222+
"accesstoken": {
223+
"class": "oidcrp.oidc.access_token.AccessToken",
224+
"kwargs": {}
225+
},
226+
"userinfo": {
227+
"class": "oidcrp.oidc.userinfo.UserInfo",
228+
"kwargs": {}
229+
},
230+
"end_session": {
231+
"class": "oidcrp.oidc.end_session.EndSession",
232+
"kwargs": {}
233+
}
234+
},
235+
"add_ons": {
236+
"pkce": {
237+
"function": "oidcrp.oauth2.add_on.pkce.add_support",
238+
"kwargs": {
239+
"code_challenge_length": 64,
240+
"code_challenge_method": "S256"
241+
}
242+
}
243+
}
244+
}
245+
},
246+
"webserver": {
247+
"port": 8090,
248+
"domain": "127.0.0.1",
249+
"server_cert": "certs/cert.pem",
250+
"server_key": "certs/key.pem",
251+
"debug": true
252+
}
253+
}

0 commit comments

Comments
 (0)