Are there security concerns exposing the clientId and tenant in client side code when using adal/adal-angular.js
<p>I'm in the process of implementing AAD single sign on in our application and we will be using the adal.js/adal-angular.js library with our MEAN stack application. Part of initializing the library is to call init() and provide the tenant and clientId</p>

<pre><code>  adalProvider.init(
  {
    tenant: "mycompany.onmicrosoft.com",
    clientId: "05bdd8d7-XXXX-XXXX-XXXX-5f2769f8b9b6"
  },
  $httpProvider
  );
</code></pre>

<p>for example.</p>

<p>If someone views the source and takes the tenant and clientId can they use that somehow in their own application maliciously?</p>

<p>Does AzureAD check the URL the request came from and block it if it's not the configured login url?</p>

<p>Seems as though the clientId is more like a public key but if the only 2 things needed for an app to trigger authentication with AzureAD is the tenant and clientId and those are exposed client side in source code that someone could use them to create a phishing site X or to grab id_tokens if the request is redirected back to their site X rather than the original site</p>

<p>Does Azure rely on the configured settings in the application setup and protect against this?</p>

<p>I'm still getting a grasp on the OpenID Connect and OAUTH 2.0 finer points so forgive me if this question has an obvious answer.</p>