Announcement Announcement Module
Collapse
No announcement yet.
OAuth2 token with AbstractOAuth2ServiceProvider Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    Any handle on this? I've seen that there is no progress on the JIRA issue. How did you work around it?

    Comment


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

      Comment


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

        Comment


        • #5
          Is there any progress on this issue?

          Comment

          Working...
          X