Rename OAuth2 resource server properties
Closes gh-14165
This commit is contained in:
@@ -3,6 +3,5 @@ spring:
|
||||
oauth2:
|
||||
resource:
|
||||
jwt:
|
||||
jwk:
|
||||
# To run the application, replace this with a valid JWK Set URI
|
||||
set-uri: https://example.com/oauth2/default/v1/keys
|
||||
# To run the application, replace this with a valid JWK Set URI
|
||||
jwk-set-uri: https://example.com/oauth2/default/v1/keys
|
||||
@@ -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