|
|
@ -1,5 +1,5 @@
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* Copyright 2012-2021 the original author or authors.
|
|
|
|
* Copyright 2012-2022 the original author or authors.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
@ -43,16 +43,14 @@ import org.springframework.security.web.SecurityFilterChain;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Configures a {@link JwtDecoder} when a JWK Set URI, OpenID Connect Issuer URI or Public
|
|
|
|
* Configures a {@link JwtDecoder} when a JWK Set URI, OpenID Connect Issuer URI or Public
|
|
|
|
* Key configuration is available. Also configures a
|
|
|
|
* Key configuration is available. Also configures a {@link SecurityFilterChain} if a
|
|
|
|
* {@link org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter}
|
|
|
|
* {@link JwtDecoder} bean is found.
|
|
|
|
* if a {@link JwtDecoder} bean is found.
|
|
|
|
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @author Madhura Bhave
|
|
|
|
* @author Madhura Bhave
|
|
|
|
* @author Artsiom Yudovin
|
|
|
|
* @author Artsiom Yudovin
|
|
|
|
* @author HaiTao Zhang
|
|
|
|
* @author HaiTao Zhang
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Configuration(proxyBeanMethods = false)
|
|
|
|
@Configuration(proxyBeanMethods = false)
|
|
|
|
@SuppressWarnings("deprecation")
|
|
|
|
|
|
|
|
class OAuth2ResourceServerJwtConfiguration {
|
|
|
|
class OAuth2ResourceServerJwtConfiguration {
|
|
|
|
|
|
|
|
|
|
|
|
@Configuration(proxyBeanMethods = false)
|
|
|
|
@Configuration(proxyBeanMethods = false)
|
|
|
|