Fix bug: the renewing authentication, it is ok for the service to not require renew

This commit is contained in:
Valentin Samir
2016-07-06 13:15:19 +02:00
parent abf0200f87
commit 502135d6ca
4 changed files with 124 additions and 24 deletions

View File

@ -74,10 +74,13 @@ def get_auth_client(**update):
params["password"] = settings.CAS_TEST_PASSWORD
params.update(update)
client.post('/login', params)
response = client.post('/login', params)
assert client.session.get("authenticated")
return client
if params.get("service"):
return (client, response)
else:
return client
def get_user_ticket_request(service):