Results 1 to 5 of 5

Thread: OAuth2 token with AbstractOAuth2ServiceProvider

  1. #1
    Join Date
    Nov 2006
    Posts
    20

    Default OAuth2 token with AbstractOAuth2ServiceProvider

    AbstractOAuth2ServiceProvider has getApi() which only takes an access token. However, oauth2 implementations require both an access token and a refresh token. Furthermore, the refresh token should be used by the AbstractOAuth2ApiBinding or its RestTemplate somehow. Currently my Google+ authentication fails if I only use the access token. So, the questions:

    - is it expected that spring-social oauth2 client support would work if refreshing tokens is required?
    - is getApi(accessToken) sufficient for instantiating an api client that requires refresh token?
    - how to get the whole refreshing thing to work.

  2. #2
    Join Date
    Jan 2008
    Posts
    248

    Default

    Any handle on this? I've seen that there is no progress on the JIRA issue. How did you work around it?

  3. #3
    Join Date
    Nov 2006
    Posts
    20

    Default

    Check the source of my Google+ client library. It's an ugly workaround, but works. http://code.google.com/p/google-plus-java-api/

  4. #4
    Join Date
    Jan 2008
    Posts
    248

    Default

    Thanks, just finished implementing my first test of this. I do hope Spring Social will address this soon. This is way too complicated

  5. #5
    Join Date
    Apr 2012
    Location
    Tokyo, Japan
    Posts
    1

    Default

    Is there any progress on this issue?

Posting Permissions

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