Skip to content

Commit 9946739

Browse files
authored
Merge pull request #106 from Azure-Samples/reject-pathless-redirect-uri
Descriptive error on pathless REDIRECT_PATH
2 parents 692f72d + 182255d commit 9946739

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
app = Flask(__name__)
1010
app.config.from_object(app_config)
11+
assert app.config["REDIRECT_PATH"] != "/", "REDIRECT_PATH must not be /"
1112
Session(app)
1213

1314
# This section is needed for url_for("foo", _external=True) to automatically

0 commit comments

Comments
 (0)