@Configuration @ConditionalOnClass(value=org.apache.shenyu.plugin.oauth2.OAuth2Plugin.class) @EnableWebFluxSecurity @ConditionalOnProperty(value="shenyu.plugins.oauth2.enabled", havingValue="true", matchIfMissing=true) public class OAuth2PluginConfiguration extends java.lang.Object
| 构造器和说明 |
|---|
OAuth2PluginConfiguration() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.security.web.server.SecurityWebFilterChain |
getSecurityWebFilterChain(org.springframework.security.config.web.server.ServerHttpSecurity http,
org.springframework.context.ApplicationContext context)
Build SecurityWebFilterChain.
|
org.apache.shenyu.plugin.api.ShenyuPlugin |
oAuth2Plugin(org.springframework.beans.factory.ObjectProvider<org.springframework.security.oauth2.client.ReactiveOAuth2AuthorizedClientService> authorizedClientServiceProvider)
oauth2 plugin.
|
org.springframework.security.oauth2.client.registration.ReactiveClientRegistrationRepository |
reactiveClientRegistrationRepository()
Build default clientRegistration.
|
@Bean public org.apache.shenyu.plugin.api.ShenyuPlugin oAuth2Plugin(org.springframework.beans.factory.ObjectProvider<org.springframework.security.oauth2.client.ReactiveOAuth2AuthorizedClientService> authorizedClientServiceProvider)
authorizedClientServiceProvider - the ReactiveOAuth2AuthorizedClientServiceProvider@Bean
public org.springframework.security.web.server.SecurityWebFilterChain getSecurityWebFilterChain(org.springframework.security.config.web.server.ServerHttpSecurity http,
org.springframework.context.ApplicationContext context)
http - The ServerHttpSecurity Instancecontext - The ApplicationContext Instance@Bean(value="org.apache.shenyu.springboot.starter.plugin.oauth2.defaultReactiveClientRegistrationRepository") @Conditional(value=DefaultClientsConfiguredCondition.class) public org.springframework.security.oauth2.client.registration.ReactiveClientRegistrationRepository reactiveClientRegistrationRepository()
Copyright © 2022 The Apache Software Foundation. All rights reserved.