Microsoft to Sing in using Angular

niraj.sapra 1 Reputation point

**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: '',  
        redirectUri: 'http://localhost:4200',  
      cache: {  
        cacheLocation: 'localStorage',  
        storeAuthStateInCookie: isIE,  

Documention url :

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,796 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Roderick Bant 2,046 Reputation points

    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
    • 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