org.springframework.security.config.core.GrantedAuthorityDefaults Java Examples

The following examples show how to use org.springframework.security.config.core.GrantedAuthorityDefaults. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SecurityConfig.java    From sk-admin with Apache License 2.0 4 votes vote down vote up
@Bean
GrantedAuthorityDefaults grantedAuthorityDefaults() {
    // 去除 ROLE_ 前缀
    return new GrantedAuthorityDefaults("");
}
 
Example #2
Source File: SecurityConfig.java    From yshopmall with Apache License 2.0 4 votes vote down vote up
@Bean
GrantedAuthorityDefaults grantedAuthorityDefaults() {
    // 去除 ROLE_ 前缀
    return new GrantedAuthorityDefaults("");
}
 
Example #3
Source File: SecurityConfig.java    From eladmin with Apache License 2.0 4 votes vote down vote up
@Bean
GrantedAuthorityDefaults grantedAuthorityDefaults() {
    // 去除 ROLE_ 前缀
    return new GrantedAuthorityDefaults("");
}
 
Example #4
Source File: FlowableRemoteIdmAutoConfiguration.java    From flowable-engine with Apache License 2.0 4 votes vote down vote up
@ConditionalOnMissingBean
@Bean
public GrantedAuthorityDefaults grantedAuthorityDefaults(FlowableCommonAppProperties commonAppProperties) {
    return new GrantedAuthorityDefaults(commonAppProperties.getRolePrefix());
}
 
Example #5
Source File: FlowableRestApplication.java    From flowable-engine with Apache License 2.0 4 votes vote down vote up
@Bean
public GrantedAuthorityDefaults grantedAuthorityDefaults(RestAppProperties commonAppProperties) {
    return new GrantedAuthorityDefaults(commonAppProperties.getRolePrefix());
}
 
Example #6
Source File: SecurityContext.java    From syncope with Apache License 2.0 4 votes vote down vote up
@Bean
public GrantedAuthorityDefaults grantedAuthorityDefaults() {
    return new GrantedAuthorityDefaults(""); // Remove the ROLE_ prefix
}