Any site with a base path, like http://example.com/drupal/folder, gets this error when trying to do the oauth authorization:

Redirects to external URLs are not allowed by default, use \Drupal\Core\Routing\TrustedRedirectResponse for it.

This is being caused by the fix for issue 3087181 which added a slash to the start of the destination. It should probably be getting the URL from the oauth2_server.authorize route or using base_path() instead of a slash.

CommentFileSizeAuthor
#2 oauth2_server-authorize-route.patch694 bytesdavid.muffley

Comments

david.muffley created an issue. See original summary.

david.muffley’s picture

StatusFileSize
new694 bytes

Attaching a patch that fixes my sites.

sanduhrs’s picture

Version: 8.x-1.0-beta3 » 2.0.x-dev
Status: Active » Needs review

sanduhrs’s picture

Version: 2.0.x-dev » 8.x-1.x-dev

sanduhrs’s picture

Status: Needs review » Fixed

Committed, thanks for the patch!

Status: Fixed » Closed (fixed)

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