Skip to content

Commit

Permalink
Merge pull request #4996 from sandushi/add-authenticator
Browse files Browse the repository at this point in the history
Add authenticator to the params map
  • Loading branch information
sandushi authored Oct 17, 2023
2 parents 8d4b241 + 4e1e97c commit ca66f3f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -273,11 +273,11 @@ protected void publishAuthenticationStepAttempt(HttpServletRequest request, Auth
boolean isFederated = this instanceof FederatedApplicationAuthenticator;
Map<String, Object> paramMap = new HashMap<>();
paramMap.put(FrameworkConstants.AnalyticsAttributes.USER, user);
paramMap.put(FrameworkConstants.AUTHENTICATOR, getName());
if (isFederated) {
// Setting this value to authentication context in order to use in AuthenticationSuccess Event
context.setProperty(FrameworkConstants.AnalyticsAttributes.HAS_FEDERATED_STEP, true);
paramMap.put(FrameworkConstants.AnalyticsAttributes.IS_FEDERATED, true);
paramMap.put(FrameworkConstants.AUTHENTICATOR, getName());
if (user != null) {
user.setTenantDomain(context.getTenantDomain());
}
Expand Down

0 comments on commit ca66f3f

Please sign in to comment.