Adds 'v1.0/' to login route

This commit is contained in:
Aaron Louie 2020-05-23 14:49:02 -04:00
parent 20bf01a888
commit 6c14248ef9
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)