@Bean @Scope(value = ConfigurableBeanFactory.SCOPE_PROTOTYPE) public CasProtocolView cas2ServiceFailureView() { return new CasProtocolView(casProperties.getView().getCas2().getFailure(), applicationContext, springTemplateEngine, thymeleafProperties); }
@Bean @Scope(value = ConfigurableBeanFactory.SCOPE_PROTOTYPE) public CasProtocolView cas2SuccessView() { return new CasProtocolView(casProperties.getView().getCas2().getSuccess(), applicationContext, springTemplateEngine, thymeleafProperties, MediaType.APPLICATION_XML_VALUE); }
@Bean @Scope(value = ConfigurableBeanFactory.SCOPE_PROTOTYPE) public CasProtocolView cas3SuccessView() { return new CasProtocolView(casProperties.getView().getCas3().getSuccess(), applicationContext, springTemplateEngine, thymeleafProperties); }
@Bean @Scope(value = ConfigurableBeanFactory.SCOPE_PROTOTYPE) public CasProtocolView cas3ServiceFailureView() { return new CasProtocolView(casProperties.getView().getCas3().getFailure(), applicationContext, springTemplateEngine, thymeleafProperties, MediaType.APPLICATION_XML_VALUE); }
@ConditionalOnProperty(prefix = "cas.sso", name = "proxyAuthnEnabled", havingValue = "true", matchIfMissing = true) @Bean @Scope(value = ConfigurableBeanFactory.SCOPE_PROTOTYPE) public CasProtocolView cas2ProxyFailureView() { return new CasProtocolView(casProperties.getView().getCas2().getProxy().getFailure(), applicationContext, springTemplateEngine, thymeleafProperties, MediaType.APPLICATION_XML_VALUE); }
@ConditionalOnProperty(prefix = "cas.sso", name = "proxyAuthnEnabled", havingValue = "true", matchIfMissing = true) @Bean @Scope(value = ConfigurableBeanFactory.SCOPE_PROTOTYPE) public CasProtocolView cas2ProxySuccessView() { return new CasProtocolView(casProperties.getView().getCas2().getProxy().getSuccess(), applicationContext, springTemplateEngine, thymeleafProperties, MediaType.APPLICATION_XML_VALUE); }
@Bean @ConditionalOnMissingBean(name = "cas1ProtocolAttributesRenderer") public CasProtocolAttributesRenderer cas1ProtocolAttributesRenderer() { switch (casProperties.getView().getCas1().getAttributeRendererType()) { case VALUES_PER_LINE: return new AttributeValuesPerLineProtocolAttributesRenderer(); case DEFAULT: default: return new NoOpProtocolAttributesRenderer(); } }
@Bean @ConditionalOnMissingBean(name = "cas3ProtocolAttributesRenderer") public CasProtocolAttributesRenderer cas3ProtocolAttributesRenderer() { switch (casProperties.getView().getCas3().getAttributeRendererType()) { case INLINE: return new InlinedCas30ProtocolAttributesRenderer(); case DEFAULT: default: return new DefaultCas30ProtocolAttributesRenderer(); } }
final String template, final String resourceName, final String characterEncoding, final Map<String, Object> templateResolutionAttributes) { val rest = casProperties.getView().getRest(); val themeName = getCurrentTheme();
@Bean @ConditionalOnMissingBean(name = "proxyValidateController") public ProxyValidateController proxyValidateController() { if (casProperties.getView().getCas2().isV3ForwardCompatible()) { return new ProxyValidateController( cas20ProtocolValidationSpecification.getIfAvailable(),
@Bean @ConditionalOnMissingBean(name = "serviceValidateController") public ServiceValidateController serviceValidateController() { if (casProperties.getView().getCas2().isV3ForwardCompatible()) { return new ServiceValidateController( cas20WithoutProxyProtocolValidationSpecification.getIfAvailable(),