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

Commit ae8d825

Browse files
committed
Fixed a couple of errors.
1 parent a91c89a commit ae8d825

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

flask_rp/wsgi.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
import os
55
import sys
66

7+
from oidcrp.util import create_context
8+
79
try:
810
from . import application
911
except ImportError:
@@ -33,8 +35,9 @@
3335
template_dir = os.path.join(dir_path, 'templates')
3436
app = application.oidc_provider_init_app(conf, name,
3537
template_folder=template_dir)
38+
_web_conf = app.rp_config.web_conf
39+
context = create_context(dir_path, _web_conf)
3640

37-
app.run(host='127.0.0.1', port=app.config.get('PORT'),
38-
debug=True,
39-
ssl_context=('{}/{}'.format(dir_path, app.config["SERVER_CERT"]),
40-
'{}/{}'.format(dir_path, app.config["SERVER_KEY"])))
41+
debug = _web_conf.get('debug', True)
42+
app.run(host=app.rp_config.domain, port=app.rp_config.port,
43+
debug=_web_conf.get("debug", False), ssl_context=context)

0 commit comments

Comments
 (0)