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

Auth URL Variables #2322

Open
michaelmerrill opened this issue Aug 20, 2020 · 2 comments
Open

Auth URL Variables #2322

michaelmerrill opened this issue Aug 20, 2020 · 2 comments
Labels
security: config The mechanics of severs and structure of security-related objects security

Comments

@michaelmerrill
Copy link

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
@hkosova
Copy link
Contributor

hkosova commented Aug 21, 2020

Related (or duplicate): #551

@MikeRalphson
Copy link
Member

Thanks @hkosova , also OAI/Overlay-Specification#33

@handrews handrews added security security: auth Authentication including overlap with authorization security: config The mechanics of severs and structure of security-related objects and removed security: auth Authentication including overlap with authorization labels Jan 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
security: config The mechanics of severs and structure of security-related objects security
Projects
None yet
Development

No branches or pull requests

4 participants