Skip to content

Enables authentication and authorization for Swagger (Swashbuckle) in WebApi projects.

License

Notifications You must be signed in to change notification settings

janmohammadi/swashbuckle-authorize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Swagger Authorize

Enables authentication and authorization for Swagger (Swashbuckle) in WebApi projects.

What it looks like: How it works

How to use:

1- Download and copy SwaggerAuthorization.js file in to Scripts folder.

2- Right click on the SwaggerAuthorization.js file > Properties > Build Action and select Embeded Resource.

3- Add the line below to the App_Start\SwaggerConfig.cs file, in EnableSwaggerUi section:

c.InjectJavaScript(thisAssembly, "YOUR_PROJECT_NAMESPACE.Scripts.SwaggerAuthorization.js");

About

Enables authentication and authorization for Swagger (Swashbuckle) in WebApi projects.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published