Adds 'v1.0/' to login route
This commit is contained in:
parent
20bf01a888
commit
6c14248ef9
|
@ -32,7 +32,7 @@ def verify_token(token):
|
||||||
def get_current_user():
|
def get_current_user():
|
||||||
return UserModelSchema().dump(g.user)
|
return UserModelSchema().dump(g.user)
|
||||||
|
|
||||||
@app.route('/login')
|
@app.route('/v1.0/login')
|
||||||
def sso_login():
|
def sso_login():
|
||||||
# This what I see coming back:
|
# This what I see coming back:
|
||||||
# X-Remote-Cn: Daniel Harold Funk (dhf8r)
|
# X-Remote-Cn: Daniel Harold Funk (dhf8r)
|
||||||
|
|
|
@ -44,7 +44,7 @@ class TestAuthentication(BaseTest):
|
||||||
self.assertIsNone(user)
|
self.assertIsNone(user)
|
||||||
redirect_url = 'http://worlds.best.website/admin'
|
redirect_url = 'http://worlds.best.website/admin'
|
||||||
headers = dict(Uid=new_uid)
|
headers = dict(Uid=new_uid)
|
||||||
rv = self.app.get('login', follow_redirects=False, headers=headers)
|
rv = self.app.get('v1.0/login', follow_redirects=False, headers=headers)
|
||||||
self.assert_success(rv)
|
self.assert_success(rv)
|
||||||
user = db.session.query(UserModel).filter(UserModel.uid == new_uid).first()
|
user = db.session.query(UserModel).filter(UserModel.uid == new_uid).first()
|
||||||
self.assertIsNotNone(user)
|
self.assertIsNotNone(user)
|
||||||
|
|
Loading…
Reference in New Issue