oltu-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OLTU-140) Returning resource from Resource server to oltu client
Date Wed, 26 Mar 2014 17:10:15 GMT

    [ https://issues.apache.org/jira/browse/OLTU-140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13948119#comment-13948119
] 

Christian commented on OLTU-140:
--------------------------------

OAuthASResponse isn't meant to be used as resource response. I use it in the resource server
only to return authentication errors. If everything works fine you could use HttpServletResponse
or any framework you like, for example JAX-RS.

> Returning resource from Resource server to oltu client
> ------------------------------------------------------
>
>                 Key: OLTU-140
>                 URL: https://issues.apache.org/jira/browse/OLTU-140
>             Project: Apache Oltu
>          Issue Type: Improvement
>            Reporter: abishkar
>
> How to return resource from resource server to client? In OAuthASResponse there are OAuthTokenResponseBuilder
and OAuthAuthorizationResponseBuilder inner class.Using that inner class i am unable to send
my json resource to client from ResourceEndpoint.As,there is not setter method to set for
my json resource.
> OAuthResponse response = OAuthASResponse.setResource(json) 
> .buildJSONMessage();
> OAuthASResponse.setResource(json)// this is what i needed 
> so that from client i can easily retrieve as 
> oar=OAuthAuthzResponse.oauthCodeAuthzResponse(request);
> String json= oar.getResource(); // my json string .This is what i need in client.
> So,i am trying to extend it.But,inner class being used i am unable to do it?Is 
> there way to extend  OAuthASResponse so that i can set for resource and retrieve that
from client?



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message