Skip to content

Support for scopes in scheme bearer #2407

@vivas6

Description

@vivas6

Hi,
JWT based access token (bearer) can contain scopes like read_pets, write_pets etc. that could be used to authorize an api request from an app. Why don't Open API spec talk about scopes for scheme: bearer? Shouldn't this be described in the spec as it is a widely used pattern for API authN & authZ?

e.g.

security:
        - bearerAuth: [read:pets, write:pets]

/Vineeth

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions