I am using Angular 5.2.0 and I am unable to find a guide to integrate azure msal for sign-up of new users using Microsoft account.
Please share any resource or example to achieve this without updating the angular version.
I am using Angular 5.2.0 and I am unable to find a guide to integrate azure msal for sign-up of new users using Microsoft account.
Please share any resource or example to achieve this without updating the angular version.
Authentication libraries only allow you to authenticate and acquiring the token so that you can call the protected API's.
Please take a look at the Microsoft Graph API to add users to Azure AD.
MSAL-Angular will help you to Authenticate the Microsoft Graph API. As you are using the Angular (SPA) application for that you need to work with delegated permissions
only.
Sample Request:
POST https://graph.microsoft.com/v1.0/users
Content-type: application/json
{
"accountEnabled": true,
"displayName": "displayName-value",
"mailNickname": "mailNickname-value",
"userPrincipalName": "upn-value@tenant-value.onmicrosoft.com",
"passwordProfile" : {
"forceChangePasswordNextSignIn": true,
"password": "password-value"
}