use of org.apereo.cas.adaptors.trusted.authentication.principal.PrincipalBearingPrincipalResolver 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