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 root level security schemes #189

Open
zamd opened this issue Sep 6, 2024 · 3 comments
Open

Support root level security schemes #189

zamd opened this issue Sep 6, 2024 · 3 comments
Labels
feature New feature or request

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

@gdahlin
Copy link

gdahlin commented Nov 1, 2024

This would be highly appreciated as well as being able to set configurable scopes on the OpenId Zudoko configuration.

Aditionally, supporting specific scopes on individual api endpoints/methods through the OpenAPI security configuration is a big plus.

@ntotten ntotten changed the title Support room level security schemes Support root level security schemes Nov 16, 2024
@luispablo
Copy link

Would love this feature! Really needed to document any API.

@ntotten ntotten added the feature New feature or request label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Development

No branches or pull requests

4 participants