Skip to content

swagger-ui in 4.3.8 adds a bug in oauth-redirect.html for symfony bundle #8280

@josuealcalde-utamed

Description

@josuealcalde-utamed

API Platform version(s) affected: 4.3.8+

Description
Symfony bundle creates resources in public/bundles/apiplatform/swagger-ui/

Since 4.3.8 the file oauth2-redirect.html is changed. It used to include an embedded script and now, the script has been moved to oauth2-redirect.js. The problem is that the file is not included in the bundle.

The bug is introduced in this commit ef40bcd

How to reproduce
If we use oauth2 authorization in swagger-ui with oidc o authorization_code grant it fails.

Possible Solution
Add the missing script to the bundle.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions