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

Support room level security schemes #189

Open
zamd opened this issue Sep 6, 2024 · 1 comment
Open

Support room level security schemes #189

zamd opened this issue Sep 6, 2024 · 1 comment

Comments

@zamd
Copy link

zamd commented Sep 6, 2024

We define security schemes at the root level and same schemes are applied to all endpoints. This doesn't work in the Try box.

  "security": [
    {
      "authlete": []
    },
    {
      "bearer": []
    }
  ]
 "securitySchemes": {
     "authlete": {
       "type": "oauth2",
       "description": "Click the **Get Token** button below to log in with your Authlete account and retrieve an access token for API access.",
       "flows": {
         "authorizationCode": {
           "authorizationUrl": "https://login.authlete.com/authorize",
           "tokenUrl": "https://login.authlete.com/token",
           "scopes": {
             "authlete": "Inherit Authlete Account Permissions"
           },
           "x-client-id": "api-explorer",
           "x-default-scopes": "authlete",
           "x-pkce-only": true
         }
       }
     },
     "bearer": {
       "type": "http",
       "scheme": "bearer",
       "description": "Obtain an **access token** and set it in the following textbox."
     }
   }
Copy link

linear bot commented Sep 6, 2024

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

No branches or pull requests

1 participant