Ensure the remote URL doesn't include a trailing slash

Created on 16 November 2023, 8 months ago

Problem/Motivation

When using the oauth plugin, if you accidentally include a trailing slash in the remote URL, the server will be unable to get the refresh token.

This is because a POST to https://some.drupal.site//oauth/token is redirected as a GET to https://some.drupal.site/oauth/token

There is a presave handler for the config entity, but that doesn't prevent creating and invalid value via a config override.

Steps to reproduce

Proposed resolution

Ensure trailing slashes are trimmed before creating the client

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Needs review

Version

3.0

Component

Entity Share Client

Created by

πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024