Skip to content

Laravel: Swagger UI Authorization #6662

@toitzi

Description

@toitzi

API Platform version(s) affected: 4.0.1

Description
While API Platform appears to support authorization within Swagger UI, the Laravel module hasn’t fully implemented this functionality yet. As a result, neither OAuth nor API key authentication works within Swagger UI.

How to reproduce
Open the Swagger UI for your API and click the "Authorize" button in the top right. Regardless of your configuration, the authorization window remains empty.

Possible Solution
It seems that the authorization functionality is partially in place, but some configuration values aren’t being passed down to Swagger UI. I’ll submit a PR to address this.

EDIT: Not sure if this is supposed to be a feature or a bug (because it is technically implemented already, just not working with laravel, i think it is considered a bug?)

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