Swagger-ui: Authorize form does not replace URL variables

Created on 18 Jul 2018  路  1Comment  路  Source: swagger-api/swagger-ui

_From @chrif on July 16, 2018 19:49_

Q&A (please complete the following information)

  • OS: macOS
  • Browser: Chrome
  • Version: 67
  • Method of installation: docker hub
  • Swagger-Editor version: 3.6.3
  • Swagger/OpenAPI version: 3.0.1

Content & configuration

Example Swagger/OpenAPI definition:

openapi: 3.0.1
info:
  version: 1.0.0
  title: Swagger Petstore
paths:
  /pets:
    get:
      summary: List all pets
      responses:
        '200':
          description: A paged array of pets
servers:
  - url: 'http://{client}.domain.com/api'
    variables:
      client:
        default: acme
components:
  securitySchemes:
    login:
      type: oauth2
      flows:
        password:
          tokenUrl: oauth/v2/token

Describe the bug you're encountering

Authorize form does not replace URL variables:
image

It instead makes a call to:
http://%7Bclient%7D.domain.com/api

image

_Copied from original issue: swagger-api/swagger-editor#1837_

auth 3.x bug

Most helpful comment

FYI I have an open PR that resolves this issue for me https://github.com/swagger-api/swagger-ui/pull/5913

Hopefully it can get some attention and have someone look at it

>All comments

FYI I have an open PR that resolves this issue for me https://github.com/swagger-api/swagger-ui/pull/5913

Hopefully it can get some attention and have someone look at it

Was this page helpful?
0 / 5 - 0 ratings