@Configuration
@EnableAuthorizationServer
public class OAuthServerConfig
extends org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerConfigurerAdapter
| 构造器和说明 |
|---|
OAuthServerConfig() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.security.oauth2.provider.approval.ApprovalStore |
approvalStore()
授权信息保存策略
|
org.springframework.security.oauth2.provider.code.AuthorizationCodeServices |
authorizationCodeServices()
授权码模式数据来源
|
void |
configure(org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerEndpointsConfigurer endpoints) |
void |
configure(org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerSecurityConfigurer security) |
void |
configure(org.springframework.security.oauth2.config.annotation.configurers.ClientDetailsServiceConfigurer clients) |
org.springframework.security.oauth2.provider.ClientDetailsService |
jdbcClientDetailsService() |
org.springframework.security.oauth2.provider.token.AuthorizationServerTokenServices |
tokenServices()
令牌管理
|
org.springframework.security.oauth2.provider.token.TokenStore |
tokenStore() |
@Bean public org.springframework.security.oauth2.provider.ClientDetailsService jdbcClientDetailsService()
@Bean public org.springframework.security.oauth2.provider.token.TokenStore tokenStore()
@Bean public org.springframework.security.oauth2.provider.token.AuthorizationServerTokenServices tokenServices()
@Bean public org.springframework.security.oauth2.provider.approval.ApprovalStore approvalStore()
ApprovalStore@Bean public org.springframework.security.oauth2.provider.code.AuthorizationCodeServices authorizationCodeServices()
AuthorizationCodeServicespublic void configure(org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerSecurityConfigurer security)
throws Exception
configure 在接口中 org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerConfigurerconfigure 在类中 org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerConfigurerAdapterExceptionpublic void configure(org.springframework.security.oauth2.config.annotation.configurers.ClientDetailsServiceConfigurer clients)
throws Exception
configure 在接口中 org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerConfigurerconfigure 在类中 org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerConfigurerAdapterExceptionpublic void configure(org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerEndpointsConfigurer endpoints)
throws Exception
configure 在接口中 org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerConfigurerconfigure 在类中 org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerConfigurerAdapterExceptionCopyright © 2022. All rights reserved.