Problem/Motivation

InvalidArgumentException: Cannot redirect to an empty URL. in Symfony\Component\HttpFoundation\RedirectResponse->setTargetUrl() (line 91 of /var/www/html/vendor/symfony/http-foundation/RedirectResponse.php).

Steps to reproduce

Type: Generic OAuth 2.0 (or any client other than Okta)
End Session endpoint: leave empty
Log out redirect URL: leave empty
Login with openID
Logout

Proposed resolution

Check the url before redirect or make the "End Session endpoint" a required form field.
If the end session endpoint is empty, check for an empty logout redirect URL before setting that redirection.

Remaining tasks

User interface changes

API changes

Data model changes

Comments

Pasqualle created an issue. See original summary.

jcnventura’s picture

Issue summary: View changes

  • jcnventura authored b191d21 on 2.x
    Issue #3207512 by jcnventura: Check logout redirect URL before...
jcnventura’s picture

Status: Active » Fixed

The problem was not exactly what you described, as your proposed solution was already part of the code. The real issue is not defining a log out redirect URL, and leaving an empty endpoint.

pasqualle’s picture

thank you

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.