Hi,
In my current ADX portals project, on click of SigIn link the page is redirected to an external authentication provider where the users get authenticated and redirects back to the Portal SignIn page. Now in page load event the system checks for an external cookie in the response and creates a new portal user by calling UserManager.Create method.
After creating the portal user, the system determines a web role based on some conditions and assign the web role to the user. I tried using the OOB method UserManager.AddToRole but this is not supported in ASP.Net Identity Model. Can some one suggest how to assign a web role to a portal user programmatically using OrganizationService.Associate or any other approaches.
Thanks,
Manas