title: Unable to get Azure AD token in PostMan
body: <p>I am working on .Net core Azure AD authentication. I have created sample .Net core Application. Below is my code.</p>
  
  <pre><code> public void ConfigureServices(IServiceCollection services)
          {
              services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1);
              services.Configure&lt;CookiePolicyOptions&gt;(options =&gt;
              {
                  // This lambda determines whether user consent for non-essential cookies is needed for a given request.
                  options.CheckConsentNeeded = context =&gt; true;
                  options.MinimumSameSitePolicy = SameSiteMode.None;
              });
  
              services.AddAuthentication(AzureADDefaults.AuthenticationScheme)
                  .AddAzureAD(options =&gt; Configuration.Bind("AzureAd", options));
  
              services.Configure&lt;OpenIdConnectOptions&gt;(AzureADDefaults.OpenIdScheme, options =&gt;
              {
                  options.Authority = options.Authority + "/v2.0/";
                  options.TokenValidationParameters.ValidateIssuer = false;
              });
  
              services.AddMvc(options =&gt;
              {
                  var policy = new AuthorizationPolicyBuilder()
                      .RequireAuthenticatedUser()
                      .Build();
                  options.Filters.Add(new AuthorizeFilter(policy));
              })
              .SetCompatibilityVersion(CompatibilityVersion.Version_2_1);
              services.AddSwaggerGen(c =&gt;
              {
                  c.SwaggerDoc("v1", new OpenApiInfo { Title = "My API", Version = "v1" });
              });
      }
  
          // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
          public void Configure(IApplicationBuilder app, IHostingEnvironment env)
          {
              if (env.IsDevelopment())
              {
                  app.UseDeveloperExceptionPage();
              }
              else
              {
                  app.UseHsts();
              }
              app.UseHttpsRedirection();
  
              app.UseSwagger();
              app.UseSwaggerUI(c =&gt;
              {
                  c.SwaggerEndpoint("/swagger/v1/swagger.json", "My API V1");
              });
              app.UseAuthentication();
              app.UseMvc();
          }
  </code></pre>
  
  <p>Below is my config file.</p>
  
  <pre><code> "AzureAd": {
      "Instance": "https://login.microsoftonline.com/",
      "Domain": "[Enter the domain of your tenant, e.g. contoso.onmicrosoft.com]",
      "TenantId": "organizations",
      "ClientId": "",
      "CallbackPath": "/signin-oidc"
    }
  </code></pre>
  
  <p>Below is my Controller code.</p>
  
  <pre><code>[Authorize]
      [Route("api/[controller]")]
      [ApiController]
      public class ValuesController : ControllerBase
      {
          // GET api/values
          [HttpGet]
          public ActionResult&lt;IEnumerable&lt;string&gt;&gt; Get()
          {
              return new string[] { "value1", "value2" };
          }
      }
  </code></pre>
  
  <p>Above code works fine. I am able to hit api and get value. So I am assuming my authentication is working fine. I am trying to hit this API from postman so I am trying to get token in Postman.</p>
  
  <p><a href="https://i.stack.imgur.com/uiisr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uiisr.png" alt="enter image description here"></a></p>
  
  <p>I am getting error Could not complete OAuth 2.0 login. Can someone help me to fix this issue? Any help would be appreciated. Thanks</p>