Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sadilchamishka committed Dec 18, 2023
1 parent 224d620 commit d39e766
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ public void handleEvent(Event event) throws IdentityEventException {

private boolean isAuthenticatedFromConsoleApp() {

if (!(IdentityUtil.threadLocalProperties.get().get(FrameworkConstants.SERVICE_PROVIDER) instanceof String)) {
return false;
}
String authenticatedApp = (String) IdentityUtil.threadLocalProperties.get()
.get(FrameworkConstants.SERVICE_PROVIDER);
return FrameworkConstants.Application.CONSOLE_APP.equals(authenticatedApp);
Expand Down

0 comments on commit d39e766

Please sign in to comment.