SUPPORT-8755: Fix
This commit is contained in:
parent
69f1094bbf
commit
3f0a7fa5c1
1 changed files with 4 additions and 2 deletions
|
|
@ -53,8 +53,10 @@ public class JwtAuthenticationProvider implements AuthenticationProvider {
|
|||
HttpServletRequest request = (HttpServletRequest) requestAttributes.resolveReference(
|
||||
REFERENCE_REQUEST);
|
||||
String[] ids = token.getUserAccountId().split(":");
|
||||
if (request != null && (request.getRequestURI()
|
||||
.endsWith("esia/logout") || ids.length == 2)) {
|
||||
if (request == null) {
|
||||
throw new IllegalStateException("No request found in request attributes");
|
||||
}
|
||||
if (request.getRequestURI().endsWith("esia/logout") || ids.length == 2) {
|
||||
UsernamePasswordAuthenticationToken pwdToken =
|
||||
UsernamePasswordAuthenticationToken.authenticated(token.getUserAccountId(), null,
|
||||
Collections.emptyList()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue