Java Code Examples for org.springframework.security.oauth2.provider.expression.OAuth2WebSecurityExpressionHandler#setApplicationContext()
The following examples show how to use
org.springframework.security.oauth2.provider.expression.OAuth2WebSecurityExpressionHandler#setApplicationContext() .
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: ResourceServerConfiguration.java From fw-cloud-framework with MIT License | 5 votes |
/** * 配置解决 spring-security-oauth问题 https://github.com/spring-projects/spring-security-oauth/issues/730 * * @param applicationContext * ApplicationContext * @return OAuth2WebSecurityExpressionHandler */ @Bean public OAuth2WebSecurityExpressionHandler oAuth2WebSecurityExpressionHandler( ApplicationContext applicationContext) { OAuth2WebSecurityExpressionHandler expressionHandler = new OAuth2WebSecurityExpressionHandler(); expressionHandler.setApplicationContext(applicationContext); return expressionHandler; }
Example 2
Source File: SecurityHandlerConfig.java From open-capacity-platform with Apache License 2.0 | 4 votes |
@Bean public OAuth2WebSecurityExpressionHandler oAuth2WebSecurityExpressionHandler(ApplicationContext applicationContext) { OAuth2WebSecurityExpressionHandler expressionHandler = new OAuth2WebSecurityExpressionHandler(); expressionHandler.setApplicationContext(applicationContext); return expressionHandler; }
Example 3
Source File: DefaultSecurityHandlerConfig.java From microservices-platform with Apache License 2.0 | 4 votes |
@Bean public OAuth2WebSecurityExpressionHandler oAuth2WebSecurityExpressionHandler(ApplicationContext applicationContext) { OAuth2WebSecurityExpressionHandler expressionHandler = new OAuth2WebSecurityExpressionHandler(); expressionHandler.setApplicationContext(applicationContext); return expressionHandler; }
Example 4
Source File: ResourceServerConfiguration.java From open-cloud with MIT License | 4 votes |
@Bean public OAuth2WebSecurityExpressionHandler oAuth2WebSecurityExpressionHandler(ApplicationContext applicationContext) { expressionHandler = new OAuth2WebSecurityExpressionHandler(); expressionHandler.setApplicationContext(applicationContext); return expressionHandler; }
Example 5
Source File: PcSecurityExpressionHandler.java From paascloud-master with Apache License 2.0 | 4 votes |
@Bean public OAuth2WebSecurityExpressionHandler oAuth2WebSecurityExpressionHandler(ApplicationContext applicationContext) { OAuth2WebSecurityExpressionHandler expressionHandler = new OAuth2WebSecurityExpressionHandler(); expressionHandler.setApplicationContext(applicationContext); return expressionHandler; }
Example 6
Source File: ResourceServerConfiguration.java From Taroco with Apache License 2.0 | 3 votes |
/** * 配置解决 spring-security-oauth问题 * https://github.com/spring-projects/spring-security-oauth/issues/730 * * @param applicationContext ApplicationContext * @return OAuth2WebSecurityExpressionHandler */ @Bean public OAuth2WebSecurityExpressionHandler oAuth2WebSecurityExpressionHandler(ApplicationContext applicationContext) { OAuth2WebSecurityExpressionHandler expressionHandler = new OAuth2WebSecurityExpressionHandler(); expressionHandler.setApplicationContext(applicationContext); return expressionHandler; }
Example 7
Source File: ResourceServerConfiguration.java From pig with MIT License | 3 votes |
/** * 配置解决 spring-security-oauth问题 * https://github.com/spring-projects/spring-security-oauth/issues/730 * * @param applicationContext ApplicationContext * @return OAuth2WebSecurityExpressionHandler */ @Bean public OAuth2WebSecurityExpressionHandler oAuth2WebSecurityExpressionHandler(ApplicationContext applicationContext) { OAuth2WebSecurityExpressionHandler expressionHandler = new OAuth2WebSecurityExpressionHandler(); expressionHandler.setApplicationContext(applicationContext); return expressionHandler; }