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

@@ -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