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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | oauth2_server-authorize-route.patch | 694 bytes | david.muffley |
Comments
Comment #2
david.muffley commentedAttaching a patch that fixes my sites.
Comment #3
sanduhrsComment #5
sanduhrsComment #7
sanduhrsCommitted, thanks for the patch!