
Hi all,
I need a synchronous way to assign web roles in Power Pages at sign-in based on identity provider:
OnAuthenticationSuccess(user):
idp = claims['http://schemas.microsoft.com/identity/claims/identityprovider']
if idp == 'entra-id':
principal.AddRole('Employee')
else if idp == 'entra-b2c':
principal.AddRole('External')
// role should be active in the current session immediately