@ConditionalOnMissingBean(name = CasWebflowConstants.ACTION_ID_SEND_FORGOT_USERNAME_INSTRUCTIONS_ACTION)
        @Bean
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        public Action sendForgotUsernameInstructionsAction(
            final ConfigurableApplicationContext applicationContext,
            final CasConfigurationProperties casProperties,
            @Qualifier(CommunicationsManager.BEAN_NAME)
            final CommunicationsManager communicationsManager,
            @Qualifier(PasswordManagementService.DEFAULT_BEAN_NAME)
            final PasswordManagementService passwordManagementService,
            @Qualifier(TenantExtractor.BEAN_NAME)
            final TenantExtractor tenantExtractor,
            @Qualifier(PrincipalResolver.BEAN_NAME_PRINCIPAL_RESOLVER)
            final PrincipalResolver defaultPrincipalResolver) {
            return BeanSupplier.of(Action.class)
                .when(CONDITION.given(applicationContext.getEnvironment()))
                .supply(() -> new SendForgotUsernameInstructionsAction(casProperties, communicationsManager,
                    passwordManagementService, defaultPrincipalResolver, tenantExtractor))
                .otherwise(() -> ConsumerExecutionAction.NONE)
                .get();
        }
This is {@link PasswordManagementForgotUsernameConfiguration}.

@author Misagh Moayyed
@since 6.4.0
support/cas-server-support-pm-webflow/src/main/java/org/apereo/cas/config/PasswordManagementForgotUsernameConfiguration.java