[
https://issues.apache.org/jira/browse/AMBER-70?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13552634#comment-13552634
]
Antonio Sanso commented on AMBER-70:
------------------------------------
Now it should be possible to do something like
new
OAuthBearerClientRequest(oauthParams.getResourceUrl()).setAccessToken(oauthParams.getAccessToken()).buildQueryMessage();
or
new
OAuthBearerClientRequest(oauthParams.getResourceUrl()).setAccessToken(oauthParams.getAccessToken()).buildHeaderMessage();
> Extend the client library in order to easily handle bearer token request
> ------------------------------------------------------------------------
>
> Key: AMBER-70
> URL: https://issues.apache.org/jira/browse/AMBER-70
> Project: Amber
> Issue Type: Improvement
> Reporter: Antonio Sanso
> Fix For: 0.23
>
>
> At the moment once obtained the access token there is not help from the
> library to request a resource using the token. E,g, the client demo does
> manually
> URL url = new URL(
> oauthParams.getResourceUrl() + "?" + tokenName + "=" +
> oauthParams.getAccessToken());
> It would be nice to extend the client in order to accommodate the 3 kind of
> bearer requests as for spec [0]
> [0] http://tools.ietf.org/html/rfc6750#section-2
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira