scottie1984 / swagger-ui-express

Adds middleware to your express app to serve the Swagger UI bound to your Swagger document. This acts as living documentation for your API hosted from within your app.
MIT License
1.41k stars 225 forks source link

Update swagger-ui-dist version to fix issue with oAuthRedirectUrl #294

Closed Edalbrelord closed 2 years ago

Edalbrelord commented 2 years ago

SwaggerUI (and the dist) are updated which includes an update to the default URL used as OAuth redirect URL, which is now looking at the full path of the current hostname.

We are using the NestJS Swagger module which does not allow us to set the redirect URL dynamically, the new default URL would allow us to use the configured endpoint (/docs) without hardcoding the full URL in an environment variable. I think this can also be used in this issue: https://github.com/scottie1984/swagger-ui-express/issues/211

scottie1984 commented 2 years ago

Released: https://github.com/scottie1984/swagger-ui-express/releases/tag/4.4.0