Skip to content

Commit 63ca56e

Browse files
committed
use https for callback url in production (i.e. non debug mode)
1 parent 35b12d4 commit 63ca56e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@ def callback():
924924
@app.route("/login")
925925
def login():
926926
return oauth.auth0.authorize_redirect(
927-
redirect_uri=url_for("callback", _external=True)
927+
redirect_uri=url_for("callback", _external=True, _scheme='http' if os.environ.get("DEBUG") is not None else 'https')
928928
)
929929

930930

0 commit comments

Comments
 (0)