AshAuthentication. Strategy. OAuth2. IdentityChange
(ash_authentication v5.0.0-rc.10)
Copy Markdown
View Source
Resolves and updates the user's identity when registering via OAuth2/OIDC.
Runs in two phases:
before_action- resolves which local user this sign-in belongs to, using the provider'siss/sub(never the email). SeeAshAuthentication.Strategy.OAuth2.UserResolverfor the matching rules.after_action- upserts the identity row for the resolved user so that future sign-ins with the sameiss/subresolve to them.