-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Open
Labels
securitysecurity: configThe mechanics of severs and structure of security-related objectsThe mechanics of severs and structure of security-related objects
Description
Currently we can set the server variables for different environments like so:
servers:
- url: 'https://{environment}.example.com/v1'
variables:
environment:
default: api
enum:
- api
- sandbox.api
- development.api
- staging.api
Is it possible to also set variables for the authorization code urls? Normally you'd want to match these environments when authenticating. I'd imagine it would look something like this:
securitySchemes:
OAuth2:
type: oauth2
flows:
authorizationCode:
authorizationUrl:
- url: 'https://{environment}.example.com/authorize'
variables:
environment:
default: accounts
enum:
- accounts
- sandbox.accounts
- development.accounts
- staging.accounts
tokenUrl:
- url: 'https://{environment}.example.com/token'
variables:
environment:
default: accounts
enum:
- accounts
- sandbox.accounts
- development.accounts
- staging.accounts
gkgeorgiev, kevinoid, ena1106, ybhat, michaelrobertharmon and 2 more
Metadata
Metadata
Assignees
Labels
securitysecurity: configThe mechanics of severs and structure of security-related objectsThe mechanics of severs and structure of security-related objects