public class CustomAuthorizationServerConfigurer
extends org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerConfigurerAdapter
| 构造器和说明 |
|---|
CustomAuthorizationServerConfigurer() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
configure(org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerEndpointsConfigurer endpoints)
配置授权服务器的端点 包括: 1.
|
void |
configure(org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerSecurityConfigurer security)
配置授权服务器的安全规则 包括: 1.
|
void |
configure(org.springframework.security.oauth2.config.annotation.configurers.ClientDetailsServiceConfigurer clients)
配置客户端详情服务 通过OAuth2ClientConfigurer配置客户端信息 客户端信息可以存储在代码、配置文件或数据库中
|
public 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.AuthorizationServerConfigurerAdaptersecurity - 授权服务器安全配置器Exception - 配置过程中的异常public void configure(org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerEndpointsConfigurer endpoints)
configure 在接口中 org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerConfigurerconfigure 在类中 org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerConfigurerAdapterendpoints - 授权服务器端点配置器public 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.AuthorizationServerConfigurerAdapterclients - 客户端详情服务配置器Exception - 配置过程中的异常Copyright © 2025. All rights reserved.