2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-17 21:23:18 +00:00

Rename '/session/logout' to '/sessions/current/logout'

Have room for a future where a user may list and disconnect
other sessions.
This commit is contained in:
Jarrod Johnson 2016-02-27 13:23:02 -05:00
parent 875cda00ff
commit 1df60ceb73

View File

@ -208,7 +208,7 @@ def _authorize_request(env, operation):
if 'confluentsessionid' in cc:
sessionid = cc['confluentsessionid'].value
if sessionid in httpsessions:
if env['PATH_INFO'] == '/session/logout':
if env['PATH_INFO'] == '/sessions/current/logout':
targets = []
for mythread in httpsessions[sessionid]['inflight']:
targets.append(mythread)
@ -222,7 +222,7 @@ def _authorize_request(env, operation):
name, element=None,
skipuserobj=httpsessions[sessionid]['skipuserobject'])
if (not authdata) and 'HTTP_AUTHORIZATION' in env:
if env['PATH_INFO'] == '/session/logout':
if env['PATH_INFO'] == '/sessions/current/logout':
return ('logout',)
name, passphrase = base64.b64decode(
env['HTTP_AUTHORIZATION'].replace('Basic ', '')).split(':', 1)