swagger-api / swagger-api/swagger-ui

Handling of relative paths in OAuth 2.0 AuthorizationUrl/TokenUrl on authorization actions

Open
#3,992 7 comments 18 reactions 1 assignee View on GitHub

@shockey is already working on this.

Since Dec 7, 2017.

cat: auth type: bug version: 3.x
Dominant language
JavaScript
Stars
29k
Forks
9.3k
Avg merge
2d 23h
Merged PRs (30d)
25

Description

Q A
Bug or feature request? Bug
Which Swagger/OpenAPI version? 3.0
Which Swagger-UI version? 3.x
How did you install Swagger-UI? http://petstore.swagger.io/ or https://editor.swagger.io/
Which browser & version? Chrome 62
Which operating system? Sierra
Demonstration API definition

Gist: https://gist.githubusercontent.com/yewton/b4bc323992c685962b1e8f071a3eebaa/raw/748e99b95f1a543ac65741d2c57afa194a9e6617/openapi.yml

Configuration (browser query string, constructor, config.yaml)

Default.

Expected Behavior

Relative paths in AuthorizationUrl or TokenUrl in securitySchemes are treated as relative to the API server URL.

Current Behavior

They are treated as relative to the UI/Editor's server URL.

Possible Solution
Context

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.