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) (#780)
  • Loading branch information
rareddy committed Aug 2, 2016
1 parent 17b6da0 commit 1a7f471
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -62,7 +62,7 @@ protected ClientAccessToken getAccessToken() {
Consumer consumer = new 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 1a7f471

Please sign in to comment.