Results 1 to 4 of 4

Thread: Using an another client API with Spring Security OAuth2 server side

  1. #1
    Join Date
    Sep 2010
    Posts
    9

    Default Using an another client API with Spring Security OAuth2 server side

    Hello,

    I added OAuth2 support on my website. It seem to work properly and now, i want to write a sample in java that ask access_token and calls my protected API.
    For that i used this library : http://bitbucket.org/smartproject/oauth-2.0/wiki/Client

    But I don't understand what uri i need to call to have a registrar code and after a granted access_token.

    private static final String REDIRECT = "http://localhost:8080/sample/oauth/confirm_access.html?response_type=code"; // i see that response_type=token was not available

    private static final String AUTHORIZE = "http://localhost:8080/sample/oauth/user/authorize";

    private static final String ACCESS_TOKEN = "http://localhost:8080/sample/oauth/authorize";

    private static final String CIENT_ID = "sample_client";

    Thks for your work!

  2. #2
    Join Date
    Sep 2010
    Posts
    9

    Default

    the answer ;-)

    private static final String REDIRECT = "http://localhost:8080/sample";

    private static final String AUTHORIZE = "http://localhost:8080/sample/oauth/confirm_access.html?response_type=code";

    private static final String ACCESS_TOKEN = "http://localhost:8080/sample/oauth/authorize?response_type=code";

    private static final String CIENT_ID = "sample_client";

    it's working properly :-) btw, is there an implementation of response_type=token !?

  3. #3
    Join Date
    May 2008
    Location
    Salt Lake City
    Posts
    167

    Default

    Quote Originally Posted by sylvek View Post
    btw, is there an implementation of response_type=token !?
    Not yet, but you're welcome to contribute a patch and/or sponsor the feature if you need it.

  4. #4
    Join Date
    Sep 2010
    Posts
    9

    Default

    if i can do it .. :-)

Posting Permissions

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