AshAuthentication.Strategy.OAuth2.IdentityChange (ash_authentication v4.14.0)
View SourceResolves 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.