Uploaded image for project: 'Apache Oltu'
  1. Apache Oltu
  2. OLTU-140

Returning resource from Resource server to oltu client

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • None
    • None
    • oauth2-resourceserver
    • None

    Description

      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?

      Attachments

        Activity

          People

            Unassigned Unassigned
            abishkar abishkar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: