177 if (authorizationGrant == null) {
179 if ((endSessionWithAccessToken != null) && endSessionWithAccessToken) {
184 SessionId ldapSessionId =
removeSessionId(sessionId, httpRequest, httpResponse);
185 if ((authorizationGrant == null) && (ldapSessionId == null)) {
186 log.info(
"Failed to find out authorization grant for id_token_hint '{}' and session_id '{}'", idTokenHint, sessionId);
189 return new Pair<SessionId, AuthorizationGrant>(null, null);
195 boolean isExternalLogoutPresent;
196 boolean externalLogoutResult =
false;
199 if (isExternalLogoutPresent && (ldapSessionId != null)) {
200 String userName = ldapSessionId.getSessionAttributes().get(Constants.AUTHENTICATED_USER);
202 log.info(
"End session result for '{}': '{}'", userName,
"logout", externalLogoutResult);
205 boolean isGrantAndExternalLogoutSuccessful = isExternalLogoutPresent && externalLogoutResult;
206 if (isExternalLogoutPresent && !isGrantAndExternalLogoutSuccessful) {
210 if (ldapSessionId != null) {
218 return new Pair<SessionId, AuthorizationGrant>(ldapSessionId, authorizationGrant);
boolean executeExternalEndSessionMethods(HttpServletRequest httpRequest, SessionId sessionId)
Definition: ExternalApplicationSessionService.java:82
AppConfiguration appConfiguration
Definition: EndSessionRestWebServiceImpl.java:89
void removeAllTokensBySession(String sessionDn)
Definition: GrantService.java:353
Identity identity
Definition: EndSessionRestWebServiceImpl.java:83
AuthorizationGrantList authorizationGrantList
Definition: EndSessionRestWebServiceImpl.java:68
ErrorResponseFactory errorResponseFactory
Definition: EndSessionRestWebServiceImpl.java:62
void throwUnauthorizedException(IErrorType type)
Definition: ErrorResponseFactory.java:96
SessionId removeSessionId(String sessionId, HttpServletRequest httpRequest, HttpServletResponse httpResponse)
Definition: EndSessionRestWebServiceImpl.java:264
SessionId removeConsentSessionId(HttpServletRequest httpRequest, HttpServletResponse httpResponse)
Definition: EndSessionRestWebServiceImpl.java:292
AuthorizationGrant getAuthorizationGrantByIdToken(String idToken)
Definition: AuthorizationGrantList.java:179
Logger log
Definition: EndSessionRestWebServiceImpl.java:59
AuthorizationGrant getAuthorizationGrantByAccessToken(String accessToken)
Definition: AuthorizationGrantList.java:166
GrantService grantService
Definition: EndSessionRestWebServiceImpl.java:80
ExternalApplicationSessionService externalApplicationSessionService
Definition: EndSessionRestWebServiceImpl.java:71
Boolean getEndSessionWithAccessToken()
Definition: AppConfiguration.java:1209