You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Test Case:
I try to connect with the user with provideruserid 111041386111351234312 (rank 4), so the method ProviderSignInController::handleSignIn is invoked and it updates only the account with the provideruserid: 104391962410215825345 (among others it updates the "expiretime").
Now, when I am trying to get the authorized person:
Person profile = google.plusOperations().getPerson("29");
I am getting the ExpiredAuthorizationException.
It is because it takes expiretime for other user that I updated it before.
In my database I have multiple google connections with the same userid but different rank and provideruserid
(4 rows)
Test Case:
I try to connect with the user with provideruserid 111041386111351234312 (rank 4), so the method ProviderSignInController::handleSignIn is invoked and it updates only the account with the provideruserid: 104391962410215825345 (among others it updates the "expiretime").
Now, when I am trying to get the authorized person:
I am getting the ExpiredAuthorizationException.
It is because it takes expiretime for other user that I updated it before.
Explanation:
I made SocialConfig like in the example (https://github.com/GabiAxel/spring-social-google-example/blob/master/src/main/java/org/springframework/social/example/config/SocialConfig.java).
But getPrimaryConnection (doesn't get the user with my provideduserid - rank 4, but with userid 29 and rank 1). So that is wrong profile.
I tried to use other method, for example connectionRepository().getConnection(Google.class, "[providedUserId]").getApi(), however in this context I dont have provideduserid, because User in context has only userid (https://github.com/GabiAxel/spring-social-google-example/blob/master/src/main/java/org/springframework/social/example/user/User.java).
What do you think about this problem? :)
The text was updated successfully, but these errors were encountered: