Skip to content

Commit

Permalink
SpringSocialMicrosoft#154 fixing javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
paulsmelser committed Feb 13, 2018
1 parent 5955c3d commit f8032bc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
6 changes: 6 additions & 0 deletions release-notes.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Release Notes: Spring Social for Microsoft Partner Center

## 6.2.1

#### Bug Fixes
1. Fixed AuthorizationTemplate to ensure failed rest calls get wrapped as ApiAuthorizationException.

## 6.2.0

#### Added
1. ServiceRequestOperations added to allow for creating and retrieving service requests through the API

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,11 @@ public boolean isSlf4jEnabled() {
protected AccessGrant postForAccessGrant(String accessTokenUrl, HttpHeaders headers, MultiValueMap<String, String> parameters) {
headers.setContentType(MediaType.APPLICATION_FORM_URLENCODED);
HttpEntity<MultiValueMap<String, String>> request = new HttpEntity<>(parameters, headers);
return extractAccessGrant(getRestTemplate().postForObject(accessTokenUrl, request, Map.class));
try {
return extractAccessGrant(getRestTemplate().postForObject(accessTokenUrl, request, Map.class));
} catch (HttpStatusCodeException e) {
throw buildAuthFault(e);
}
}

/**
Expand All @@ -265,8 +269,11 @@ protected AccessGrant postForAccessGrant(String accessTokenUrl, HttpHeaders head
protected AccessGrant postForAccessGrant(String accessTokenUrl, MultiValueMap<String, String> parameters) {
HttpHeaders headers = new HttpHeaders();
headers.setContentType(MediaType.APPLICATION_FORM_URLENCODED);

return extractAccessGrant(getRestTemplate().postForObject(accessTokenUrl, new HttpEntity<>(parameters, headers), Map.class));
try {
return extractAccessGrant(getRestTemplate().postForObject(accessTokenUrl, new HttpEntity<>(parameters, headers), Map.class));
} catch (HttpStatusCodeException e) {
throw buildAuthFault(e);
}
}

private AzureADSecurityToken postForADToken(){
Expand Down

0 comments on commit f8032bc

Please sign in to comment.