Skip to content

Add Support for Integrating Authentication Components into Swagger UI (OAuth2PasswordBearer (OAuth2, password)) #1234

@darixsamani

Description

@darixsamani

Is your feature request related to a problem? Please describe.

I reviewed the Salvo documentation but couldn’t find guidance on how to integrate authentication components—specifically OAuth2Password—directly into the generated Swagger UI documentation. Currently, there doesn’t seem to be a straightforward way for middleware-based authentication to appear in the Swagger UI as a standard OAuth2 security scheme.

Describe the solution you'd like.

It would be helpful to provide a macro, annotation, or configuration option that enables developers to integrate authentication into Swagger UI automatically. Ideally, this would allow OAuth2Password (or other supported authentication methods) to appear in the Swagger documentation’s “Authorize” modal and apply security requirements to selected endpoints.

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