use of org.springframework.cloud.context.config.annotation.RefreshScope in project cas by apereo.
the class CoreWsSecuritySecurityTokenServiceConfiguration method transportValidateDelegate.
@RefreshScope
@Bean
public ValidateOperation transportValidateDelegate() {
final TokenValidateOperation op = new TokenValidateOperation();
op.setTokenValidators(transportTokenValidators());
op.setStsProperties(transportSTSProperties());
op.setEventListener(loggerListener());
return op;
}
use of org.springframework.cloud.context.config.annotation.RefreshScope in project cas by apereo.
the class TrustedAuthenticationConfiguration method trustedPrincipalResolver.
@Bean
@RefreshScope
public PrincipalResolver trustedPrincipalResolver() {
final PrincipalBearingPrincipalResolver r = new PrincipalBearingPrincipalResolver();
r.setAttributeRepository(this.attributeRepository);
r.setPrincipalAttributeName(casProperties.getAuthn().getTrusted().getPrincipalAttribute());
r.setReturnNullIfNoAttributes(casProperties.getAuthn().getTrusted().isReturnNull());
r.setPrincipalFactory(trustedPrincipalFactory());
return r;
}
Aggregations