title: IdentityServer on Mvc : What is Audience refering in AddJwtBearer
body: <p>I already have the access token working with my application in my api gateway.</p>
  
  <pre><code>var identityUrl = Configuration.GetValue&lt;string&gt;("urls:identity");
          services.AddAuthentication(options =&gt;
          {
              options.DefaultAuthenticateScheme = JwtBearerDefaults.AuthenticationScheme;
              options.DefaultChallengeScheme = JwtBearerDefaults.AuthenticationScheme;
  
          }).AddJwtBearer(options =&gt;
          {
              options.Authority = Configuration.GetValue&lt;string&gt;("IdentityUrlExternal");
              options.RequireHttpsMetadata = false;
              options.Audience = "api1";              
              options.Events = new JwtBearerEvents()
  </code></pre>
  
  <p>What is the audience option in AddJwtBearer referring to.  Is that refer to ClientId or the ApiScope. At the moment, I was based on the scope on my mobile application setup to communicate with the api gateway. If I changed to something e.g. a client id sent from mobile (ro.client), I the authorized api function will not be able accessed. </p>
  
  <p>I would like get some clear understand is my setting correct. Thanks</p>
  
  <p>In addition, how do add Authorized Scope in ASP.net mvc core project under the controller.</p>