Skip to content

Instantly share code, notes, and snippets.

@VisualBean
Last active March 18, 2016 13:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VisualBean/6b04624438d8160f9a32 to your computer and use it in GitHub Desktop.
Save VisualBean/6b04624438d8160f9a32 to your computer and use it in GitHub Desktop.
Adding new basicauth to swaggerconfig
GlobalConfiguration.Configuration
.EnableSwagger(c =>
{
...
c.BasicAuth("basic").Description("HTTP Authentication Method");
c.OperationFilter<ApplyBasicAuth>();
...
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment