Skip to content

Commit ec13225

Browse files
committed
Read SESSION_TYPE from config file rather than hardcode
1 parent 35d8f2c commit ec13225

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88

99
app = Flask(__name__)
10-
app.config["SESSION_TYPE"] = "filesystem" # We choose to store tokens in server-side session
10+
app.config.from_object(app_config)
1111
Session(app)
1212

1313

app_config.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@
1919
# https://docs.microsoft.com/en-us/graph/permissions-reference
2020
SCOPE = ["https://graph.microsoft.com/Calendars.Read"]
2121

22+
SESSION_TYPE = "filesystem" # So token cache will be stored in server-side session
23+

0 commit comments

Comments
 (0)