Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow configuration of Authorization tokenURL #5751

Open
dkirrane opened this issue Dec 13, 2019 · 1 comment
Open

Allow configuration of Authorization tokenURL #5751

dkirrane opened this issue Dec 13, 2019 · 1 comment

Comments

@dkirrane
Copy link

Content & configuration

Using openapi: 3.0.2 yaml I want to make the tokenURL configurable. Even just let the user edit it.

Swagger/OpenAPI definition:

openapi: 3.0.2
info:
 title: Demo
 version: '1.0'
servers:
 - url: '/api'
   description: Internal API (relative path)
security:
 - OAuth2: []
paths:
 /hello:
   get:
     summary: Your GET endpoint
     operationId: getHello
     responses:
       '200':
         description: OK
       '400':
         description: Bad Request
       '401':
         description: Unauthorized
components:
 securitySchemes:
   OAuth2:
     type: oauth2
     description: This API uses OAuth 2
     flows:
       clientCredentials:
         tokenUrl: "{protocol}://{server}:{port}/auth/realms/system/{tenant}/openid-connect/token"
         scopes: {}

Currently the user cannot change the tokenUrl:

image

@hkosova
Copy link
Contributor

hkosova commented Dec 13, 2019

Please see #3406 for discussion of OAuth realm support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants