SEBSERV-417 fix autologin
This commit is contained in:
parent
a31e001f69
commit
e0952da7f3
1 changed files with 2 additions and 1 deletions
|
@ -128,12 +128,13 @@ public final class InstitutionalAuthenticationEntryPoint implements Authenticati
|
|||
.getRequiredWebApplicationContext(request.getServletContext());
|
||||
final AuthorizationContextHolder authorizationContextHolder = webApplicationContext
|
||||
.getBean(AuthorizationContextHolder.class);
|
||||
final SEBServerAuthorizationContext authorizationContext = authorizationContextHolder
|
||||
SEBServerAuthorizationContext authorizationContext = authorizationContextHolder
|
||||
.getAuthorizationContext(request.getSession());
|
||||
|
||||
// check first if we already have an active session if so, invalidate ir
|
||||
if (authorizationContext.isLoggedIn()) {
|
||||
authorizationContext.logout();
|
||||
authorizationContext = authorizationContextHolder.getAuthorizationContext(request.getSession());
|
||||
}
|
||||
|
||||
if (authorizationContext.autoLogin(jwt)) {
|
||||
|
|
Loading…
Reference in a new issue