-
Oct 5th, 2011, 05:05 PM
#1
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.
-
Nov 30th, 2011, 08:10 AM
#2
Any handle on this? I've seen that there is no progress on the JIRA issue. How did you work around it?
-
Nov 30th, 2011, 09:54 AM
#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/
-
Nov 30th, 2011, 10:22 AM
#4
Thanks, just finished implementing my first test of this. I do hope Spring Social will address this soon. This is way too complicated
-
Apr 16th, 2012, 03:59 AM
#5
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
-
Forum Rules