Skip to content

Commit

Permalink
Add App id and app name
Browse files Browse the repository at this point in the history
  • Loading branch information
sahandilshan committed Jul 26, 2023
1 parent e8cf049 commit c67c99d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,11 @@ private Map<String, Object> getContextParamsForDiagnosticLogs(AuthenticationCont

Map<String, Object> params = new HashMap<>();
params.put(FrameworkConstants.LogConstants.STEP, stepConfig.getOrder());
params.put(FrameworkConstants.LogConstants.SERVICE_PROVIDER, context.getServiceProviderName());
// Adding application related details to diagnostic log.
FrameworkUtils.getApplicationResourceId(context).ifPresent(applicationId -> params.put(
LogConstants.InputKeys.APPLICATION_ID, applicationId));
FrameworkUtils.getApplicationName(context).ifPresent(applicationName -> params.put(
LogConstants.InputKeys.APPLICATION_NAME, applicationName));
params.put(FrameworkConstants.LogConstants.TENANT_DOMAIN, context.getTenantDomain());
params.put(FrameworkConstants.LogConstants.AUTHENTICATOR_NAME, authenticatorConfig.getName());
return params;
Expand Down

0 comments on commit c67c99d

Please sign in to comment.