Java 类org.springframework.boot.autoconfigure.security.oauth2.resource.PrincipalExtractor 实例源码

项目:springboot-security-wechat    文件:MyUserInfoTokenServices.java   
public void setPrincipalExtractor(PrincipalExtractor principalExtractor) {
    Assert.notNull(principalExtractor, "PrincipalExtractor must not be null");
    this.principalExtractor = principalExtractor;
}
项目:ait-platform    文件:AitZuulServer.java   
@Bean
public PrincipalExtractor principalExtractor(OAuth2RestOperations template) {
    return map -> {
        return map.get("preferred_username");
    };
}
项目:ait-platform    文件:AitPrincipalExtractor.java   
@Bean
public PrincipalExtractor principalExtractor(final OAuth2RestOperations template) {
    return map -> {
        return map.get("preferred_username");
    };
}
项目:weazbootgradle    文件:CustomUserInfoTokenServices.java   
public CustomUserInfoTokenServices(String userInfoEndpointUrl, String clientId, PrincipalExtractor principalExtractor) {
    super(userInfoEndpointUrl, clientId);
    setPrincipalExtractor(principalExtractor);
}
项目:onetwo    文件:OAuth2SsoClientAutoContextConfig.java   
@Bean
public PrincipalExtractor userDetailPrincipalExtractor(){
    return new UserDetailPrincipalExtractor();
}