We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a0b55d commit 374e738Copy full SHA for 374e738
sample/authorization-code-flow-sample/authorization_code_flow_sample.py
@@ -24,14 +24,16 @@
24
import json
25
import logging
26
import uuid
27
+import os
28
29
import flask
30
31
import msal
32
33
app = flask.Flask(__name__)
34
app.debug = True
-app.secret_key = sys.argv[2] # In this demo, we expect a secret from 2nd CLI param
35
+app.secret_key = os.environ.get("FLASK_SECRET")
36
+assert app.secret_key, "This sample requires a FLASK_SECRET env var to enable session"
37
38
39
# Optional logging
0 commit comments