title: Swagger Authorization bearer not send
body: <p>I'm using Swagger Swashbuckle in a dotnet core 3.1 web api project and have trouble to send bearer authorization to the requests calls.
  I've defined this in my <code>ConfigureServices</code> method:</p>
  
  <pre><code>        services.AddSwaggerGen(c =&gt;
          {
              c.SwaggerDoc("v1", new OpenApiInfo() { Title = "MyApi", Version = "v1" });
              // Set the comments path for the Swagger JSON and UI.
              var xmlFile = $"{Assembly.GetExecutingAssembly().GetName().Name}.xml";
              var xmlPath = Path.Combine(AppContext.BaseDirectory, xmlFile);
              c.IncludeXmlComments(xmlPath);
              c.AddSecurityDefinition("Bearer", new OpenApiSecurityScheme
              {
                  Type = SecuritySchemeType.OAuth2,
                  Flows = new OpenApiOAuthFlows()
                  {
                      Password = new OpenApiOAuthFlow()
                      {
  
                          TokenUrl = new Uri("/api/Account/Login", UriKind.Relative),
                      }
                  },
                  In = ParameterLocation.Header,
                  Name = "Authorization",
                  Scheme = "Bearer",
              });
              c.AddSecurityRequirement(new OpenApiSecurityRequirement()
              {
                  {
                      new OpenApiSecurityScheme()
                      {
                          Reference = new OpenApiReference()
                          {
                              Type = ReferenceType.SecurityScheme,
                              Id = "Bearer"
                          },
                          Scheme = "Bearer",
                          Type = SecuritySchemeType.Http,
                          Name = "Bearer",
                          In = ParameterLocation.Header
                      }, new List&lt;string&gt;()
                  }
              });
          });
  </code></pre>
  
  <p>When running, I see the Authorize button that show the login dialog:
  <a href="https://i.stack.imgur.com/yUfpH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yUfpH.png" alt="Login Dialog"></a></p>
  
  <p>Once logged, the API routes show the locked padlock but when I try to use them, I see the call is done without the returned bearer:</p>
  
  <pre><code>curl -X GET "http://localhost:5000/api/Account" -H "accept: */*" -H "Authorization: Bearer undefined"
  </code></pre>
  
  <p>What's wrong with my definitions?</p>