#swagger oauth2-redirect.html path sent to oauth is incorrect and I'm not able to find how to change
1 messages · Page 1 of 1 (latest)
as I saw on another framework, there should be an openapi parameter to config this
https://github.com/spec-first/connexion/issues/968#issuecomment-709398253
GitHub
Description When I use the Swagger UI to get authorization from an Oauth server, the request includes a redirect location of http://localhost:3200/oauth2-redirect.html (the default redirect url of ...
I tried it but doesn't work here
Solved! Must be inside swaggerOptions
SwaggerModule.setup(
'swagger/ui',
app,
document,
{
swaggerOptions: {
oauth2RedirectUrl: 'https://url/swagger/ui/oauth2-redirect.html',
},
useGlobalPrefix: false,
yamlDocumentUrl: '/api/openapi.yaml',
jsonDocumentUrl: '/api/openapi.json'
});