Microsoft to Sing in using Angular

niraj.sapra 1 Reputation point
2021-08-19T07:26:38.043+00:00

**I am trying to Microsoft to sing in using angular. I have follow documentation but i get error .

given Error like this ' AADSTS700016: Application with identifier '08631ba4-6505-4518-8291-34ba97d86c59' was not found in the directory '08631ba4-6505-4518-8291-34ba97d86c59'. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You may have sent your authentication request to the wrong tenant.' **

Import in App module

MsalModule.forRoot( new PublicClientApplication({  
      auth: {  
        clientId: '08631ba4-6505-4518-8291-34ba97d86c59',  
         
        authority: 'https://login.microsoftonline.com/common',  
         
        redirectUri: 'http://localhost:4200',  
      },  
      cache: {  
        cacheLocation: 'localStorage',  
        storeAuthStateInCookie: isIE,  
      }  
    })  

Documention url :https://learn.microsoft.com/en-us/azure/active-directory/develop/tutorial-v2-angular-auth-code
124611-screenshot-69.png124602-screenshot-70.png124539-screenshot-71.png

Please give me solution as soon as possible.

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,559 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Roderick Bant 2,046 Reputation points
    2021-09-06T19:51:25.57+00:00

    I think you should look at the 'authority' parameter in the auth settings. If I read the documentation correctly you should supply your Azure AD tenant ID there.

    To find your tenant ID:

    • Go to https://portal.azure.com
    • Select 'Azure Active Directory'
    • Select 'Properties'
    • Then scroll down and find the Tenant ID field

    Documentation on finding your tenant ID can be found here

    1 person found this answer helpful.
    0 comments No comments