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

项目:ait-platform    文件:AitZuulServer.java   
@Bean
@SuppressWarnings("unchecked")
public AuthoritiesExtractor authoritiesExtractor(OAuth2RestOperations template) {
    return map -> {
        ArrayList<String> list = (ArrayList<String>) map.get("authorities");
        if (!list.isEmpty()) {
            return AuthorityUtils.commaSeparatedStringToAuthorityList(StringUtils.collectionToCommaDelimitedString(list));
        }
        return AuthorityUtils.commaSeparatedStringToAuthorityList("ROLE_USER");
    };
}
项目:ait-platform    文件:AitPrincipalExtractor.java   
@Bean
@SuppressWarnings("unchecked")
public AuthoritiesExtractor authoritiesExtractor(OAuth2RestOperations template) {
    return map -> {
        ArrayList<String> list = (ArrayList<String>) map.get("authorities");
        if (!list.isEmpty()) {
            return AuthorityUtils.commaSeparatedStringToAuthorityList(StringUtils.collectionToCommaDelimitedString(list));
        }
        return AuthorityUtils.commaSeparatedStringToAuthorityList("ROLE_USER");
    };
}
项目:Facegram    文件:CustomUserInfoTokenServices.java   
public void setAuthoritiesExtractor(AuthoritiesExtractor authoritiesExtractor) {
    this.authoritiesExtractor = authoritiesExtractor;
}
项目:Facegram    文件:CustomUserInfoTokenServices.java   
public void setAuthoritiesExtractor(AuthoritiesExtractor authoritiesExtractor) {
    this.authoritiesExtractor = authoritiesExtractor;
}
项目:springboot-security-wechat    文件:MyUserInfoTokenServices.java   
public void setAuthoritiesExtractor(AuthoritiesExtractor authoritiesExtractor) {
    Assert.notNull(authoritiesExtractor, "AuthoritiesExtractor must not be null");
    this.authoritiesExtractor = authoritiesExtractor;
}
项目:DAFramework    文件:CustomUserInfoTokenServices.java   
public void setAuthoritiesExtractor(AuthoritiesExtractor authoritiesExtractor) {
    this.authoritiesExtractor = authoritiesExtractor;
}
项目:microservice-skeleton    文件:CustomUserInfoTokenServices.java   
public void setAuthoritiesExtractor(AuthoritiesExtractor authoritiesExtractor) {
    this.authoritiesExtractor = authoritiesExtractor;
}
项目:Spring-cloud-gather    文件:CustomUserInfoTokenServices.java   
public void setAuthoritiesExtractor(AuthoritiesExtractor authoritiesExtractor) {
    this.authoritiesExtractor = authoritiesExtractor;
}
项目:Spring-cloud-gather    文件:CustomUserInfoTokenServices.java   
public void setAuthoritiesExtractor(AuthoritiesExtractor authoritiesExtractor) {
    this.authoritiesExtractor = authoritiesExtractor;
}
项目:piggymetrics    文件:CustomUserInfoTokenServices.java   
public void setAuthoritiesExtractor(AuthoritiesExtractor authoritiesExtractor) {
    this.authoritiesExtractor = authoritiesExtractor;
}
项目:piggymetrics    文件:CustomUserInfoTokenServices.java   
public void setAuthoritiesExtractor(AuthoritiesExtractor authoritiesExtractor) {
    this.authoritiesExtractor = authoritiesExtractor;
}
项目:PiggyMetricsCopy    文件:CustomUserInfoTokenServices.java   
public void setAuthoritiesExtractor(AuthoritiesExtractor authoritiesExtractor) {
    this.authoritiesExtractor = authoritiesExtractor;
}
项目:PiggyMetricsCopy    文件:CustomUserInfoTokenServices.java   
public void setAuthoritiesExtractor(AuthoritiesExtractor authoritiesExtractor) {
    this.authoritiesExtractor = authoritiesExtractor;
}
项目:PiggyMetrics    文件:CustomUserInfoTokenServices.java   
public void setAuthoritiesExtractor(AuthoritiesExtractor authoritiesExtractor) {
    this.authoritiesExtractor = authoritiesExtractor;
}
项目:PiggyMetrics    文件:CustomUserInfoTokenServices.java   
public void setAuthoritiesExtractor(AuthoritiesExtractor authoritiesExtractor) {
    this.authoritiesExtractor = authoritiesExtractor;
}