@Configuration(proxyBeanMethods=false)
@ConditionalOnProperty(value="shenyu.plugins.oauth2.enabled",
havingValue="true",
matchIfMissing=true)
@ConditionalOnClass(value={org.springframework.security.oauth2.client.OAuth2AuthorizedClient.class,org.springframework.security.web.server.SecurityWebFilterChain.class,org.springframework.boot.autoconfigure.security.SecurityProperties.class})
@AutoConfigureAfter(value=org.springframework.boot.autoconfigure.security.reactive.ReactiveSecurityAutoConfiguration.class)
public class OAuth2PluginConfiguration
extends java.lang.Object
| 构造器和说明 |
|---|
OAuth2PluginConfiguration() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.shenyu.plugin.api.ShenyuPlugin |
oAuth2Plugin(org.springframework.beans.factory.ObjectProvider<org.springframework.security.oauth2.client.ReactiveOAuth2AuthorizedClientService> authorizedClientServiceProvider)
Oauth2 plugin for Apache ShenYu.
|
@Bean public org.apache.shenyu.plugin.api.ShenyuPlugin oAuth2Plugin(org.springframework.beans.factory.ObjectProvider<org.springframework.security.oauth2.client.ReactiveOAuth2AuthorizedClientService> authorizedClientServiceProvider)
authorizedClientServiceProvider - the authorized client service providerCopyright © 2026 The Apache Software Foundation. All rights reserved.