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

Commit 2e2f075

Browse files
committed
Flask needs a secret key.
1 parent dcb1ea7 commit 2e2f075

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

flask_rp/application.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ def oidc_provider_init_app(config_file, name=None, **kwargs):
4141
else:
4242
raise ValueError('Unknown configuration format')
4343

44+
app.config['SECRET_KEY'] = os.urandom(12).hex()
45+
4446
app.users = {'test_user': {'name': 'Testing Name'}}
4547

4648
try:

0 commit comments

Comments
 (0)