version using: 1.1.0
With Swashbuckle, how do you add basic authentication to your swagger documentation page?
How do you update the ui to accept username and password? (like attached pic)

I believe you follow the steps listed in the docs here:
https://github.com/domaindrivendev/Swashbuckle.AspNetCore#swashbuckleaspnetcoreswaggergen but instead of using the OAuth2Scheme class, you would use the BasicAuthScheme class
Thanks @wdspider!
For my particular needs I went with ApiKeyScheme:
services.AddSwaggerGen(c =>
{
...
c.AddSecurityDefinition("Bearer", new ApiKeyScheme() { In = "header", Description = "Please insert JWT with Bearer into field", Name = "Authorization", Type = "apiKey" });
});


Hi
I have a little authorization tool for Swashbuckle and Bearer token.
https://github.com/janmohammadi/swashbuckle-authorize

Thank you very much!
Most helpful comment
Hi
I have a little authorization tool for Swashbuckle and Bearer token.
https://github.com/janmohammadi/swashbuckle-authorize