Skip to content

Swagger UI OAuth2 redirect fails because oauth2-redirect.js is missing in api-platform/symfony 4.3.8 #8243

@Nirzol

Description

@Nirzol

API Platform version(s) affected: 4.3.8

Description
After trying to login via Swagger UI OAuth2 authorization code flow, Swagger UI redirects to:

/bundles/apiplatform/swagger-ui/oauth2-redirect.html

This file contains:

<script src="oauth2-redirect.js"></script>

But oauth2-redirect.js is not present in:
vendor/api-platform/symfony/Bundle/Resources/public/swagger-ui/
Result:
GET /bundles/apiplatform/swagger-ui/oauth2-redirect.js 404

OAuth2 authorization code flow cannot complete in Swagger UI.

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