Commit 8ecadd84 by Ed Crewe

add default to non proxied if no ticket

parent 4e64c503
......@@ -50,6 +50,8 @@ def _login_url(service, ticket='ST'):
params = {'service': service}
if settings.CAS_EXTRA_LOGIN_PARAMS:
params.update(settings.CAS_EXTRA_LOGIN_PARAMS)
if not ticket:
ticket = 'ST'
login = LOGINS.get(ticket[:2],'login')
return urljoin(settings.CAS_SERVER_URL, login) + '?' + urlencode(params)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment