Open saamc opened 1 year ago
Hi @saamc ! For the Swagger UI Preview we rely on https://github.com/swagger-api/swagger-ui which seems to support relative URLs in openIdConnectUrl per https://swagger.io/docs/specification/authentication/openid-connect-discovery/
I'll see if upgrading to the latest version of SwaggerUI would fix your issue, and will update the ticket with more info.
Description
Relative URL for openIdConnectUrl is resolved against webview not against server.
Environment
Extension Version: v4.18.2
VS Code Version: 1.79.2 Commit: 695af097c7bd098fbf017ce3ac85e09bbc5dda06 Date: 2023-06-14T08:59:55.818Z Electron: 22.5.7 Chromium: 108.0.5359.215 Node.js: 16.17.1 V8: 10.8.168.25-electron.0 OS: Linux x64 5.15.0-73-generic snap
Expected behaviour
Preview authorization discovery queries given URL on given server and presents discovered authorization flows.
Actual behaviour
Authorize button opens modal dialog, but no authorization options are shown.
Suspected error
The Developer Tools console shows the following error
Obviously, the relative URL given in
openIdConnectUrl
is resolved against the preview window and not against the server from the servers specification. Supplying the full absolute URL works.Minimal Example
Steps to reproduce