mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-04 00:09:01 +00:00
Rename OAuth2 resource server properties
Closes gh-14165
This commit is contained in:
+2
-2
@@ -57,13 +57,13 @@ public class SampleOauth2ResourceServerApplicationTests {
|
||||
server.start();
|
||||
String url = server.url("/.well-known/jwks.json").toString();
|
||||
server.enqueue(mockResponse());
|
||||
System.setProperty("spring.security.oauth2.resource.jwt.jwk.set-uri", url);
|
||||
System.setProperty("spring.security.oauth2.resourceserver.jwt.jwk-set-uri", url);
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void shutdown() throws IOException {
|
||||
server.shutdown();
|
||||
System.clearProperty("spring.security.oauth2.resource.jwt.jwk.set-uri");
|
||||
System.clearProperty("spring.security.oauth2.resourceserver.jwt.jwk-set-uri");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user