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

Commit 14d216a

Browse files
committed
Fixed config.yaml
1 parent a890a2b commit 14d216a

2 files changed

Lines changed: 9 additions & 16 deletions

File tree

flask_op/application.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,6 @@ def init_oidc_op_endpoints(app):
1818
port=app.srv_config.port)
1919
_server_info_config['issuer'] = iss
2020

21-
# _kj_args = {k:v for k,v in _server_info_config['jwks'].items() if k != 'uri_path'}
22-
#
23-
# db_conf = _server_info_config.get('db_conf')
24-
# if db_conf:
25-
# key_jar_conf = db_conf.get('keyjar')
26-
# _kj = init_key_jar(storage_conf=key_jar_conf, **_kj_args)
27-
# else:
28-
# _kj = init_key_jar(**_kj_args)
29-
# # make sure I have a set of keys under my 'real' name
30-
# _kj.import_jwks_as_json(_kj.export_jwks_as_json(True, ''), iss)
31-
3221
endpoint_context = EndpointContext(_server_info_config, cwd=folder)
3322

3423
for endp in endpoint_context.endpoint.values():

flask_op/config.yaml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ logging:
2222
format: '%(asctime)s %(name)s %(levelname)s %(message)s'
2323

2424
port: &port 5000
25-
domain: &domain 127.0.0.1
25+
domain: &domain localhost
2626
server_name: '{domain}:{port}'
2727
base_url: &base_url 'https://{domain}:{port}'
2828

@@ -49,8 +49,8 @@ OIDC_KEYS: &oidc_keys
4949
op:
5050
server_info:
5151
issuer: *base_url
52-
http_params:
53-
verify_ssl: False
52+
httpc_params:
53+
verify: False
5454
session_key:
5555
filename: private/session_jwk.json
5656
type: OCT
@@ -105,7 +105,7 @@ op:
105105
- https://example.org/appl
106106
refresh:
107107
lifetime: 86400
108-
jwks:
108+
keys:
109109
*oidc_keys
110110
endpoint:
111111
webfinger:
@@ -212,6 +212,10 @@ op:
212212
#class: oidcendpoint.user_authn.user.NoAuthn
213213
#kwargs:
214214
#user: diana
215+
cookie_name:
216+
session: oidc_op
217+
register: oidc_op_rp
218+
session_management: sman
215219
cookie_dealer:
216220
class: oidcendpoint.cookie.CookieDealer
217221
kwargs:
@@ -267,5 +271,5 @@ webserver:
267271
ca_bundle: null
268272
verify_user: false
269273
port: *port
270-
domain: *domain
274+
domain: 0.0.0.0
271275
debug: true

0 commit comments

Comments
 (0)