Search in sources :

Example 1 with OpenIdPostUrlHandlerMapping

use of org.apereo.cas.support.openid.web.support.OpenIdPostUrlHandlerMapping in project cas by apereo.

the class OpenIdConfiguration method openIdPostUrlHandlerMapping.

@Autowired
@Bean
public OpenIdPostUrlHandlerMapping openIdPostUrlHandlerMapping(@Qualifier("argumentExtractor") final ArgumentExtractor argumentExtractor) {
    final OpenIdValidateController c = new OpenIdValidateController(cas20WithoutProxyProtocolValidationSpecification, authenticationSystemSupport, servicesManager, centralAuthenticationService, proxy20Handler, argumentExtractor, multifactorTriggerSelectionStrategy, authenticationContextValidator, cas3ServiceJsonView, casOpenIdServiceSuccessView, casOpenIdServiceFailureView, casProperties.getAuthn().getMfa().getAuthenticationContextAttribute(), serverManager(), validationAuthorizers, casProperties.getSso().isRenewAuthnEnabled());
    final DelegatingController controller = new DelegatingController();
    controller.setDelegates(CollectionUtils.wrapList(smartOpenIdAssociationController(), c));
    final OpenIdPostUrlHandlerMapping m = new OpenIdPostUrlHandlerMapping();
    m.setOrder(1);
    final Properties mappings = new Properties();
    mappings.put("/login", controller);
    m.setMappings(mappings);
    return m;
}
Also used : OpenIdValidateController(org.apereo.cas.support.openid.web.mvc.OpenIdValidateController) DelegatingController(org.apereo.cas.web.DelegatingController) OpenIdPostUrlHandlerMapping(org.apereo.cas.support.openid.web.support.OpenIdPostUrlHandlerMapping) CasConfigurationProperties(org.apereo.cas.configuration.CasConfigurationProperties) EnableConfigurationProperties(org.springframework.boot.context.properties.EnableConfigurationProperties) Properties(java.util.Properties) Autowired(org.springframework.beans.factory.annotation.Autowired) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

Properties (java.util.Properties)1 CasConfigurationProperties (org.apereo.cas.configuration.CasConfigurationProperties)1 OpenIdValidateController (org.apereo.cas.support.openid.web.mvc.OpenIdValidateController)1 OpenIdPostUrlHandlerMapping (org.apereo.cas.support.openid.web.support.OpenIdPostUrlHandlerMapping)1 DelegatingController (org.apereo.cas.web.DelegatingController)1 Autowired (org.springframework.beans.factory.annotation.Autowired)1 ConditionalOnMissingBean (org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean)1 EnableConfigurationProperties (org.springframework.boot.context.properties.EnableConfigurationProperties)1 Bean (org.springframework.context.annotation.Bean)1