-
Notifications
You must be signed in to change notification settings - Fork 2k
OAuth - not supported refresh case #288
Comments
@sielay I am afraid I am not sure I follow. I am not the strongest with the OAuth portion of the stack. Can you provide some steps to recreate the issue you are reporting? |
@NeverOddOrEven sorry, but that might be also my clunky English ;) So imagine situation you use LinkedIn strategy to login. Your LinkedIn data including accessToken is being saved into Let's say you do a call to their API using token saved in user object. Their API says "sorry buddy, but your token has expired". Most sense IMHO (to not duplicate functionality would be then redirect user to path IMHO in that else we should verify if ID from strategy is the same and in that case update rest of the data. Hope it makes it more clear. |
Connect a meanjs install to some provider (facebook), allow your app to access your provider (facebook) data, then revoke your app's permission to that provider from within the provider (facebook). You should be able to reauth without a problem if you try to login with that provider again. |
@NeverOddOrEven yes, but that is not a problem. Problem is that new (changed) data from provider aren't updating If you store third party data, you should update it every time you have a chance to. If you remove app in provider (facebook), my app will not know about it. If I re-enable it, in app nothing will change. App won't even know about anything changed. |
Closing this. Active issue can be found here: #343 |
Hi
From what I understand OAuth executed against some provider will not update user (will throw Exception that this provider is already used for this user). I think that is good, as far as you don't want to re-use same feature/redirections to refresh tokens.
If you agree with me I can prepare patch, that:
id
field is the same, in that case update provider dataid
in the same provideruser.providerData
anduser.additionalProvidersData
Hope it makes sense
The text was updated successfully, but these errors were encountered: