use of org.apereo.cas.support.openid.authentication.principal.OpenIdPrincipalResolver in project cas by apereo.
the class OpenIdAuthenticationEventExecutionPlanConfiguration method openIdPrincipalResolver.
@Bean
public OpenIdPrincipalResolver openIdPrincipalResolver() {
final OpenIdPrincipalResolver r = new OpenIdPrincipalResolver();
r.setAttributeRepository(attributeRepository);
r.setPrincipalAttributeName(casProperties.getAuthn().getOpenid().getPrincipal().getPrincipalAttribute());
r.setReturnNullIfNoAttributes(casProperties.getAuthn().getOpenid().getPrincipal().isReturnNull());
r.setPrincipalFactory(openidPrincipalFactory());
return r;
}
Aggregations