Add an environment variable for tokenURL #4068
Unanswered
MartinThoma
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
When I read my OpenAPI 3.0.3 yaml file, I have one oauth2 security scheme defined. This one has a tokenURL which is added as plain text to every endpoint that uses this security scheme.
This is not so nice as I have multiple environments on which I test the same API. This means I have to go through every single endpoint and make this a variable to be able to test the API properly.
It would be super nice if relative URLs worked and the
base_urlenvironment variable was used. However, relative URLs seem not to be allowed for security scheme objectsIs it maybe possible to write the OpenAPI doc in a way to make this relative, e.g. using a servers object?
All reactions