Skip to content

Commit

Permalink
Remove authenticationType from threadLocalProperties
Browse files Browse the repository at this point in the history
  • Loading branch information
PasinduYeshan committed Jan 22, 2024
1 parent c34d5fa commit 3155fff
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ public void invoke(Request request, Response response) throws IOException, Servl
unsetMDCThreadLocals();
// Clear thread local authenticated with basic auth flag.
unsetAuthenticatedWithBasicAuth();
// Clear thread local authentication type.
unsetThreadLocalAuthenticationType();
}


Expand Down Expand Up @@ -236,6 +238,11 @@ private void unsetThreadLocalServiceProvider() {
IdentityUtil.threadLocalProperties.get().remove(SERVICE_PROVIDER_TENANT_DOMAIN);
}

private void unsetThreadLocalAuthenticationType() {

IdentityUtil.threadLocalProperties.get().remove(Constants.AUTHENTICATION_TYPE);
}

private void setThreadLocalAuthUserTenantDomain(AuthenticationContext authenticationContext) {

if (authenticationContext.getUser() != null) {
Expand Down

0 comments on commit 3155fff

Please sign in to comment.