org.springframework.security.oauth2.provider.code.JdbcAuthorizationCodeServices Java Examples
The following examples show how to use
org.springframework.security.oauth2.provider.code.JdbcAuthorizationCodeServices.
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: AuthorizationServerConfig.java From oauth-server with Apache License 2.0 | 5 votes |
/** * 用来配置授权(authorization)以及令牌(token)的访问端点和令牌服务(token services)。 * <p> * authenticationManager: 注入一个AuthenticationManager后,password grant将打开 * userDetailsService: 如果注入了一个UserDetailsService,refresh token grant将对用户状态进行校验,以保证用户处于激活状态 * authorizationCodeServices: 这个属性是用来设置授权码服务的(即 AuthorizationCodeServices 的实例对象),主要用于 "authorization_code" 授权码类型模式。 * CustomTokenStore extends JdbcTokenStore: 令牌会被保存进关系型数据库 */ @Override public void configure(AuthorizationServerEndpointsConfigurer endpoints) throws Exception { endpoints .addInterceptor(customClientInterceptor) .authorizationCodeServices(new JdbcAuthorizationCodeServices(dataSource)) .tokenStore(tokenStore) .tokenServices(setTokenService(endpoints)) .userDetailsService(userDetailsService) .authenticationManager(authenticationManager) .redirectResolver(new ChoerodonRedirectResolver()); }
Example #2
Source File: AuthorizationServerConfiguration.java From cola with MIT License | 4 votes |
@Bean public AuthorizationCodeServices authorizationCodeServices() { return new JdbcAuthorizationCodeServices(dataSource); }
Example #3
Source File: AuthorizationServerConfig.java From pacbot with Apache License 2.0 | 4 votes |
@Bean public AuthorizationCodeServices authorizationCodeServices() { return new JdbcAuthorizationCodeServices(dataSource); }
Example #4
Source File: AuthApplication.java From spring-cloud-shop with MIT License | 4 votes |
@Bean public AuthorizationCodeServices jdbcAuthorizationCodeServices(DataSource dataSource) { return new JdbcAuthorizationCodeServices(dataSource); }
Example #5
Source File: AuthenticationServerConfig.java From JetfireCloud with Apache License 2.0 | 4 votes |
/** * 授权码模式持久名授权码 * * @return */ @Bean protected AuthorizationCodeServices authorizationCodeServices() { //授权码存储等处理方式类,使用jdbc,操作oauth_code表 return new JdbcAuthorizationCodeServices(dataSource); }
Example #6
Source File: AuthorizationServerConfig.java From SpringCloud with Apache License 2.0 | 4 votes |
/** * 授权码模式持久化授权码code * * @return JdbcAuthorizationCodeServices */ @Bean protected AuthorizationCodeServices authorizationCodeServices() { // 授权码存储等处理方式类,使用jdbc,操作oauth_code表 return new JdbcAuthorizationCodeServices(dataSource); }
Example #7
Source File: Oauth2AuthorizationServerApplication.java From spring-oauth2-jwt-jdbc with MIT License | 4 votes |
@Bean protected AuthorizationCodeServices authorizationCodeServices() { return new JdbcAuthorizationCodeServices(dataSource); }
Example #8
Source File: SecurityConfig.java From dhis2-core with BSD 3-Clause "New" or "Revised" License | 4 votes |
@Bean( "authorizationCodeServices" ) public JdbcAuthorizationCodeServices jdbcAuthorizationCodeServices( ) { return new JdbcAuthorizationCodeServices( dataSource ); }
Example #9
Source File: OAuthConfiguration.java From spring-boot-microservices with Apache License 2.0 | 4 votes |
@Bean protected AuthorizationCodeServices authorizationCodeServices() { return new JdbcAuthorizationCodeServices(dataSource); }
Example #10
Source File: OAuth2ServerConfiguration.java From spring-oauth-server with GNU General Public License v2.0 | 4 votes |
@Bean public AuthorizationCodeServices authorizationCodeServices(DataSource dataSource) { return new JdbcAuthorizationCodeServices(dataSource); }
Example #11
Source File: OAuthConfiguration.java From spring-oauth-example with MIT License | 4 votes |
@Bean public AuthorizationCodeServices authorizationCodeServices() { return new JdbcAuthorizationCodeServices(oauthDataSource()); }
Example #12
Source File: AuthorizationServerConfiguration.java From open-cloud with MIT License | 2 votes |
/** * 授权码存放 * * @return */ @Bean public AuthorizationCodeServices authorizationCodeServices() { return new JdbcAuthorizationCodeServices(dataSource); }
Example #13
Source File: AuthorizationServerConfiguration.java From open-cloud with MIT License | 2 votes |
/** * 授权码 * * @return */ @Bean public AuthorizationCodeServices authorizationCodeServices() { return new JdbcAuthorizationCodeServices(dataSource); }