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
While AshAuthentication.Strategy.OAuth2.IdentityChange does handle multiple identities, and works well with providing a custom identity to individual OAuth providers (say a MyApp.Accounts.Identities.Github & MyApp.Accounts.Identities.Google), it does not generate a :user_info map column to save the information on the identity, like it does for :access_token, :uid, etc.
You could easily have a :google_information column on your MyApp.Accounts.User and save the information like so, but it seems incredibly complex to save the information in the MyApp.Accounts.Identities.Google resource. An easy example of saving it is below.
This is easily doable, but to have a map on the actual Identity table would be very nice. I've attempted to create a custom change in the create action, but the way the Identity resource is handled by AshAuthentication.Strategy.OAuth2.IdentityChange made this challenging. Whether we're given the option to add attributes to the custom User Identity specific to each OAuth provider, or a generic :user_info map to dump all the info in, either would be incredibly helpful.
The text was updated successfully, but these errors were encountered:
While AshAuthentication.Strategy.OAuth2.IdentityChange does handle multiple identities, and works well with providing a custom identity to individual OAuth providers (say a MyApp.Accounts.Identities.Github & MyApp.Accounts.Identities.Google), it does not generate a :user_info map column to save the information on the identity, like it does for :access_token, :uid, etc.
You could easily have a :google_information column on your MyApp.Accounts.User and save the information like so, but it seems incredibly complex to save the information in the MyApp.Accounts.Identities.Google resource. An easy example of saving it is below.
This is easily doable, but to have a map on the actual Identity table would be very nice. I've attempted to create a custom change in the create action, but the way the Identity resource is handled by AshAuthentication.Strategy.OAuth2.IdentityChange made this challenging. Whether we're given the option to add attributes to the custom User Identity specific to each OAuth provider, or a generic :user_info map to dump all the info in, either would be incredibly helpful.
The text was updated successfully, but these errors were encountered: