Skip to content

Optional scopes for required security scheme #431

@diogeneshamilton

Description

@diogeneshamilton

OAuth 2 doesn't have a restriction on scopes needing encompass a whole endpoint, so I'd like a way in Swagger to define an optional scope. For example, returning the user's email on the /users/{user_id} endpoint allows an optional access_email scope. I could create new security schemes for each combination, but that's pretty cumbersome, especially with 5-10 possible scope combinations.

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