|
@@ -70,7 +70,6 @@ import org.springframework.security.web.server.SecurityWebFilterChain;
|
|
import org.springframework.security.web.server.authentication.HttpStatusServerEntryPoint;
|
|
import org.springframework.security.web.server.authentication.HttpStatusServerEntryPoint;
|
|
import org.springframework.security.web.server.authentication.ServerAuthenticationConverter;
|
|
import org.springframework.security.web.server.authentication.ServerAuthenticationConverter;
|
|
import org.springframework.security.web.server.authorization.HttpStatusServerAccessDeniedHandler;
|
|
import org.springframework.security.web.server.authorization.HttpStatusServerAccessDeniedHandler;
|
|
-import org.springframework.test.context.junit.jupiter.SpringExtension;
|
|
|
|
import org.springframework.test.web.reactive.server.WebTestClient;
|
|
import org.springframework.test.web.reactive.server.WebTestClient;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
@@ -93,7 +92,7 @@ import static org.mockito.Mockito.verify;
|
|
* Tests for
|
|
* Tests for
|
|
* {@link org.springframework.security.config.web.server.ServerHttpSecurity.OAuth2ResourceServerSpec}
|
|
* {@link org.springframework.security.config.web.server.ServerHttpSecurity.OAuth2ResourceServerSpec}
|
|
*/
|
|
*/
|
|
-@ExtendWith({ SpringExtension.class, SpringTestContextExtension.class })
|
|
|
|
|
|
+@ExtendWith({ SpringTestContextExtension.class })
|
|
public class OAuth2ResourceServerSpecTests {
|
|
public class OAuth2ResourceServerSpecTests {
|
|
|
|
|
|
private String expired = "eyJhbGciOiJSUzI1NiJ9.eyJleHAiOjE1MzUwMzc4OTd9.jqZDDjfc2eysX44lHXEIr9XFd2S8vjIZHCccZU-dRWMRJNsQ1QN5VNnJGklqJBXJR4qgla6cmVqPOLkUHDb0sL0nxM5XuzQaG5ZzKP81RV88shFyAiT0fD-6nl1k-Fai-Fu-VkzSpNXgeONoTxDaYhdB-yxmgrgsApgmbOTE_9AcMk-FQDXQ-pL9kynccFGV0lZx4CA7cyknKN7KBxUilfIycvXODwgKCjj_1WddLTCNGYogJJSg__7NoxzqbyWd3udbHVjqYq7GsMMrGB4_2kBD4CkghOSNcRHbT_DIXowxfAVT7PAg7Q0E5ruZsr2zPZacEUDhJ6-wbvlA0FAOUg";
|
|
private String expired = "eyJhbGciOiJSUzI1NiJ9.eyJleHAiOjE1MzUwMzc4OTd9.jqZDDjfc2eysX44lHXEIr9XFd2S8vjIZHCccZU-dRWMRJNsQ1QN5VNnJGklqJBXJR4qgla6cmVqPOLkUHDb0sL0nxM5XuzQaG5ZzKP81RV88shFyAiT0fD-6nl1k-Fai-Fu-VkzSpNXgeONoTxDaYhdB-yxmgrgsApgmbOTE_9AcMk-FQDXQ-pL9kynccFGV0lZx4CA7cyknKN7KBxUilfIycvXODwgKCjj_1WddLTCNGYogJJSg__7NoxzqbyWd3udbHVjqYq7GsMMrGB4_2kBD4CkghOSNcRHbT_DIXowxfAVT7PAg7Q0E5ruZsr2zPZacEUDhJ6-wbvlA0FAOUg";
|