Skip to content

Relative url for openid does not use server url  #7485

Open
@dkwakkel

Description

@dkwakkel

Q&A (please complete the following information)

  • OS: [windows]
  • Browser: [chrome]
  • Version: 93.0.4577.63 (Official Build) (32-bit)
  • Method of installation: https://editor.swagger.io/#
  • Swagger-Editor version: 3.52.0
  • Swagger/OpenAPI version: [OpenAPI 3.0.3]

Content & configuration

Example Swagger/OpenAPI definition:

openapi: 3.0.3
info:
  title: Test
  version: 1.0.0
servers:
  - url: https://api.example.com/v2
security:
  - openId: []
paths:
  /:
    get:
      tags:
        - Content
      responses:
        '200':
          description: All services of Content Storage Service
components:
  securitySchemes:
    openId:
      type: openIdConnect
      openIdConnectUrl: /.well-known/openid-configuration

Describe the bug you're encountering

Relative url is not resolved as documented in 'Relative Discovery URL' here: https://swagger.io/docs/specification/authentication/openid-connect-discovery/
(above sample is a working one from the documentation of above url)

To reproduce...

Steps to reproduce the behavior:

  1. Load above example in https://editor.swagger.io/#.
  2. Watch request (with fiddler or browser debugger) for well-known
  3. It will go to: https://editor.swagger.io/.well-known/openid-configuration

Expected behavior

Expected: https://api.example.com/.well-known/openid-configuration

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions