clean up code format

pull/338/head
Justin Richer 2013-05-10 11:38:34 -07:00
parent 671ea4d816
commit cd711a8ac6
1 changed files with 16 additions and 15 deletions

View File

@ -249,8 +249,9 @@ public class OIDCAuthenticationFilter extends AbstractAuthenticationProcessingFi
RestTemplate restTemplate;
if(clientConfig instanceof ClientDetailsEntity && SECRET_BASIC.equals(((ClientDetailsEntity) clientConfig).getTokenEndpointAuthMethod())){
restTemplate = new RestTemplate(factory){
if (clientConfig instanceof ClientDetailsEntity && SECRET_BASIC.equals(((ClientDetailsEntity) clientConfig).getTokenEndpointAuthMethod())){
// use BASIC auth if configured to do so
restTemplate = new RestTemplate(factory) {
@Override
protected ClientHttpRequest createRequest(URI url, HttpMethod method) throws IOException {
@ -263,7 +264,7 @@ public class OIDCAuthenticationFilter extends AbstractAuthenticationProcessingFi
return httpRequest;
}
};
}else{ //Alternatively use form based auth
} else { //Alternatively use form based auth
restTemplate = new RestTemplate(factory);
form.add("client_id", clientConfig.getClientId());