Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Need 2-legged OAuth example

  1. #11
    Join Date
    Jan 2013
    Posts
    15

    Default

    You do not have the Spring dispatcher servlet in web.xml. you can refer my web.xml.

  2. #12

    Default

    Hi akawale,

    What is the "ServiceContextFilter" in your web.xml?

    And, do you use RESTeasy?

    Thanks,
    Arun.

  3. #13
    Join Date
    Jan 2013
    Posts
    15

    Default

    You can ignore ServiceContextfilter. Thats for our internal logging.
    No we don't use RestEasy. We actually are not having the Oauth2 configuration in our actual Web service. We created a separate service which is just a servlet. It has the web.xml I have shared. This service takes the Oauth2 token request(/Oauth/token) grants token.
    Then when the actual web service request comes, it comes to this service first. This service authorizes it then forwards it to the relevant service based on URL. This service just has a servlet to do the forwarding.
    Our actual web service use Jersey(and NOT REST easy) API.

  4. #14

    Default

    Hi akawale,

    In your client code, there is no authentication step. How do you login to the application, before getting the access token?

    Thanks,
    Arun.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •