janmohammadi / swashbuckle-authorize

Enables authentication and authorization for Swagger (Swashbuckle) in WebApi projects.
MIT License
23 stars 15 forks source link

Unable to include embedded resource with InjectJavascript #1

Open arxene opened 5 years ago

arxene commented 5 years ago

I followed the steps but found that the InjectJavascript implementation seems it may have changed since you wrote the how-to for swashbuckle-authorize.

InspectJavascript implementation here: https://github.com/domaindrivendev/Swashbuckle.AspNetCore/blob/master/src/Swashbuckle.AspNetCore.SwaggerUI/SwaggerUIOptionsExtensions.cs

arxene commented 5 years ago

image

janmohammadi commented 5 years ago

Hi You don't need to add script tag anywhere! You have to only manipulate SwaggerConfig.cs file. It will add a script tag to the Swagger page.

arxene commented 5 years ago

The problem is InjectJavascript no longer has the same method signature as when you wrote the usage guide.

gautamksr commented 5 years ago

Is there any same solution for .Net core 2.1 web api