title: Authentification to Azure Ad in Angular using Msal
body: <p>I would authentificate to Azure AD .</p>
  
  <p>I have Configured my app in <code>module.app</code></p>
  
  <pre><code>MsalModule.forRoot({
    clientID: "ClientId",
    authority: "https://login.microsoftonline.com/tenant.onmicrosoft.com/",
    redirectUri: "http://localhost:4200/",
    validateAuthority : true,
    cacheLocation : "localStorage",
    postLogoutRedirectUri: "http://localhost:4200/",
    navigateToLoginRequestUrl : true,
    popUp: true,
    consentScopes: ["user.read", "api://??what_Id_Sould_I_Put???/access_as_user"],
    unprotectedResources: ["https://angularjs.org/"],
    correlationId: '1234',
    piiLoggingEnabled: true,
  }),
  </code></pre>
  
  <p>I my component I use <code>loginPopup</code> method for connexion:</p>
  
  <pre><code>this.authService.loginPopup(["user.read" ,"api://ClientId/access_as_user"]);
  </code></pre>
  
  <p>I get this error </p>
  
  <blockquote>
    <p>AADSTS50001: The application named api://ClientId was not found in the tenant named de5e3c28-141c-4d3e-90ea-aa3326abe67d (Strange ID ). 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 might have sent your authentication request to the wrong tenant.</p>
  </blockquote>
  
  <p>In the <a href="https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-angular/samples/MSALAngularDemoApp/src/app/app.module.ts" rel="nofollow noreferrer">sample demo</a> the <strong>ID</strong> used in <strong>ConsentScope</strong> variable is different than the <strong>Client ID</strong>, I don't know what is that ID and how to get it ?</p>