https://discord.umbraco.com logo
#help-with-umbraco
BackOfficeExternalLogin: OnAutoLinking, does this fire on every login?
# help-with-umbraco
a

Aaron Sawyer

02/12/2024, 10:06 PM
Question, does this fire on every external login event or only one time only to locate the matching local user account? I'm asking because if I add logic here to set the user's roles, if the external login provider changes the user's claims later, I need that user's assigned roles to be updated.
u

ustadstar

02/13/2024, 8:29 AM
Hi, yes the OnExternalLogin event fires every time the user logs in.
a

Aaron Sawyer

02/13/2024, 2:48 PM
Ok, what about OnAutoLinking?
u

ustadstar

02/13/2024, 3:29 PM
OnAutoLinking is called the first time when the user logs in / registers
a

Aaron Sawyer

02/14/2024, 1:10 AM
Thanks