Swagger UI - Oauth password flow, retrieve and add token to authorized requests
问题 I have just started using Swagger UI for ASP.Net API web project in MVC. Most of the parts I understood properly except the authentication. I am using OAuth ASP.Net Identity. following are my settings: SwaggerConfig.cs c.OAuth2("oauth2") .Description("OAuth2 Implicit Grant") .Flow("password") .AuthorizationUrl("/api/Account/ExternalLogin") .TokenUrl("/Token") .Scopes(scopes => { scopes.Add("values:read", "Read access to protected resources"); scopes.Add("values:write", "Write access to