Rename OAuth2 resource server properties

Closes gh-14165
This commit is contained in:
Madhura Bhave
2018-08-23 16:51:27 -07:00
parent 26353a8f35
commit fc4340c5d4
11 changed files with 27 additions and 41 deletions

View File

@@ -1,8 +1,7 @@
spring:
security:
oauth2:
resource:
resourceserver:
jwt:
jwk:
# To run the application, replace this with a valid JWK Set URI
set-uri: https://example.com/oauth2/default/v1/keys
jwk-set-uri: https://example.com/oauth2/default/v1/keys

View File

@@ -50,13 +50,13 @@ public class SampleReactiveOAuth2ResourceServerApplicationTests {
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 Exception {
server.shutdown();
System.clearProperty("spring.security.oauth2.resource.jwt.jwk.set-uri");
System.clearProperty("spring.security.oauth2.resourceserver.jwt.jwk-set-uri");
}
@Test