Automattic / Automattic/wp-openid-connect-server

Certain permalink sctructures prevent the plugin from working correctly

Open
#81 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
PHP
Stars
44
Forks
13
PR merge metrics
No merged PRs in 30d

Description

When the permalink structure results in a trailing slash being added to the URL, the plugin doesn't correctly intercept requests. For example, if the structure is `/%postname%/'` and we try to access `wp-json/openid-connect/authorize`, WordPress will redirect to `wp-json/openid-connect/authorize/` and the plugin doesn't intercept the request. Setting the structure to `/%postname%` (without trailing slash) fixes the issue.

The plugin should be able to intercept requests independently of which permalink structure is set.

Contributor guide

Open the contributing guide

Research direction

Start by tracing the plugin entry point that handles wp-json/openid-connect/authorize and how it matches requests after WordPress adds a trailing slash. Verify the behavior with both permalink structures shown in the issue; done means the plugin intercepts the authorization request in either URL form.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
api, authentication
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.