|
|
@ -165,7 +165,12 @@ public class AuthorizeHandler extends ChannelInboundHandlerAdapter implements Di |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|
UUID sessionId = this.generateOrGetSessionIdFromRequest(req.headers()); |
|
|
|
UUID sessionId = null; |
|
|
|
if (configuration.isRandomSession()) { |
|
|
|
sessionId = UUID.randomUUID(); |
|
|
|
} else { |
|
|
|
sessionId = this.generateOrGetSessionIdFromRequest(req.headers()); |
|
|
|
} |
|
|
|
|
|
|
|
List<String> transportValue = params.get("transport"); |
|
|
|
if (transportValue == null) { |
|
|
@ -208,9 +213,9 @@ public class AuthorizeHandler extends ChannelInboundHandlerAdapter implements Di |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
This method will either generate a new random sessionId or will retrieve the value stored |
|
|
|
in the "io" cookie. Failures to parse will cause a logging warning to be generated and a |
|
|
|
random uuid to be generated instead (same as not passing a cookie in the first place). |
|
|
|
* This method will either generate a new random sessionId or will retrieve the value stored |
|
|
|
* in the "io" cookie. Failures to parse will cause a logging warning to be generated and a |
|
|
|
* random uuid to be generated instead (same as not passing a cookie in the first place). |
|
|
|
*/ |
|
|
|
private UUID generateOrGetSessionIdFromRequest(HttpHeaders headers) { |
|
|
|
List<String> values = headers.getAll("io"); |
|
|
|