pkg/middleware: more robust sessionid handling#8
Conversation
|
Perhaps a better way of handling this (trying to find where the username starts and where the key ends, is prone to errors: what if the username contains a |
Dots '.' may appear in the decoded sessionid string. The logic to extract the username from the decoded sessionid string would then be defeated. Signed-off-by: Sebastien Binet <binet@cern.ch>
| } | ||
|
|
||
| parsedStr := strings.Split(string(decodedStr), ".") | ||
| i := bytes.LastIndexByte(session, '.') |
I think this might be up for a separate discussion (maybe in a new issue). I'm not sure if we should support But should we choose either way, |
Dots '.' may appear in the decoded sessionid string. The logic to extract the username from the decoded sessionid string would then be defeated.