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():
|
||||
return UserModelSchema().dump(g.user)
|
||||
|
||||
@app.route('/login')
|
||||
@app.route('/v1.0/login')
|
||||
def sso_login():
|
||||
# This what I see coming back:
|
||||
# X-Remote-Cn: Daniel Harold Funk (dhf8r)
|
||||
|
|
|
@ -44,7 +44,7 @@ class TestAuthentication(BaseTest):
|
|||
self.assertIsNone(user)
|
||||
redirect_url = 'http://worlds.best.website/admin'
|
||||
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)
|
||||
user = db.session.query(UserModel).filter(UserModel.uid == new_uid).first()
|
||||
self.assertIsNotNone(user)
|
||||
|
|
Loading…
Reference in New Issue