Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix broken integration test

Recent changes to the sparklr sample mean that it is using a vanilla
basic auth entry point for the token endpoint.
  • Loading branch information...
commit 7c059043325d92d429be621fd47322c9f44d57dc 1 parent bd402e7
@dsyer dsyer authored
View
4 ...test/java/org/springframework/security/oauth2/provider/TestClientCredentialsProvider.java
@@ -94,7 +94,7 @@ public void handleError(ClientHttpResponse response) throws IOException {
}
// System.err.println(responseHeaders);
String header = responseHeaders.getFirst("WWW-Authenticate");
- assertTrue("Wrong header: " + header, header.contains("error=\"invalid_client\""));
+ assertTrue("Wrong header: " + header, header.contains("Basic realm"));
assertEquals(HttpStatus.UNAUTHORIZED, responseStatus);
}
@@ -122,7 +122,7 @@ public void handleError(ClientHttpResponse response) throws IOException {
}
// System.err.println(responseHeaders);
String header = responseHeaders.getFirst("WWW-Authenticate");
- assertTrue("Wrong header: " + header, header.contains("error=\"invalid_client\""));
+ assertTrue("Wrong header: " + header, header.contains("Basic realm"));
assertEquals(HttpStatus.UNAUTHORIZED, responseStatus);
}
Please sign in to comment.
Something went wrong with that request. Please try again.