Skip to content

Commit

Permalink
Merge pull request #2 from fjuma/updated-oidc-logout
Browse files Browse the repository at this point in the history
Updated this branch to preserve some individual commits for better readability
  • Loading branch information
rsearls authored Dec 23, 2024
2 parents ebdeafe + 9a61d67 commit d20aa8a
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -550,4 +550,21 @@ public String getPath() {
return path;
}
}

// rls debug only
public String rlsGetSessionIds() {
Collection<String> sessions = request.getScopeIds(Scope.SESSION);
if (sessions == null) {
return "## OidcHttpFacade Scope.SESSION sessionIds is null.";
} else if (sessions.isEmpty()){
return "Scope.SESSION sessionIds is empty.";
}
StringBuffer sb = new StringBuffer();
sb.append("Scope.SESSION sessionIds: [");
for (String s : sessions) {
sb.append(s + ", ");
}
sb.append("]\n");
return sb.toString();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public RequestAuthenticator(OidcHttpFacade facade, OidcClientConfiguration deplo
public AuthOutcome authenticate() {
AuthOutcome authenticate = doAuthenticate();
if (AuthOutcome.AUTHENTICATED.equals(authenticate) && !facade.isAuthorized()) {
log.trace("## RequestAutenticator.authenticate AUTHENTICATED but NOT Autorized");
return AuthOutcome.FAILED;
}
return authenticate;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ public void testBackChannelLogout() throws Exception {
webClient.getPage(getClientUrl() + getClientConfig().getLogoutPath());
assertUserNotAuthenticated();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,4 @@ public void testFrontChannelLogout() throws Exception {
client.setDispatcher(new QueueDispatcher());
}
}
}
}

0 comments on commit d20aa8a

Please sign in to comment.