Skip to content

Commit

Permalink
TEIID-4360: adding Bearer as default token type when OAuth Access tok…
Browse files Browse the repository at this point in the history
…en request does not return a mandatory token_type in response (#779)
  • Loading branch information
rareddy committed Aug 2, 2016
1 parent ac5ed2b commit bbb058b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -61,7 +61,7 @@ protected ClientAccessToken getAccessToken() {
OAuthClientUtils.Consumer consumer = new OAuthClientUtils.Consumer(getClientId(), getClientSecret());
WebClient client = WebClient.create(getAccessTokenURI());
RefreshTokenGrant grant = new RefreshTokenGrant(getRefreshToken());
return OAuthClientUtils.getAccessToken(client, consumer, grant, null, false);
return OAuthClientUtils.getAccessToken(client, consumer, grant, null, "Bearer", false);
}

public String getClientId() {
Expand Down

0 comments on commit bbb058b

Please sign in to comment.