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.
2 parents baf42df + e12ddb8 commit 416bc10Copy full SHA for 416bc10
conditional/util/auth.py
@@ -2,8 +2,7 @@
2
3
from flask import request, session, redirect
4
5
-from conditional import auth
6
-from conditional.blueprints.packet import packet_bp
+from conditional import auth, app
7
from conditional.util.ldap import (
8
ldap_is_active,
9
ldap_is_alumni,
@@ -104,14 +103,14 @@ def frosh_auth():
104
103
return
105
106
107
-@packet_bp.route("/auth/csh")
+@app.route("/auth/csh")
108
@auth.oidc_auth("csh")
109
def csh_login():
110
session["provider"] = "csh"
111
return redirect("/packet", code=301)
112
113
114
-@packet_bp.route("/auth/frosh")
+@app.route("/auth/frosh")
115
@auth.oidc_auth("frosh")
116
def frosh_login():
117
session["provider"] = "frosh"
0 commit comments