Dynamics 365 Portal authentication is built on the ASP.NET Identity API which in turn is built on the OWIN framework.
1. Local Authentication
It is the common forms-based authentication which uses the contact records of a Dynamics 365 to store the authentication details( password as hashed text, username etc.) It is going to be deprecated soon.
2. External Authentication
It uses the ASP.NET Identity API to integrate with the external ID providers. For example. Open ID based providers such as Azure AD and Google, OAuth 2.0 based providers such as Twitter, Facebook, Yahoo, Google and Microsoft, SAML 2.0 based providers.
When using external authentication, the user is required to sign in through the chosen identity provider to prove that they own the external account. During sign-up, a new contact record is created in Dynamics365.
For portal authentication to work properly, ensure that following solutions exist in the environment"
- MicrosoftIdentity
- MicrosoftIdentityWorkflows
- Microsoft IdentitySystemWorkflows
Users who have an external account can choose to create a local account by applying a username and password. Users who started with a local account can choose to associate multiple external identities to their account.