Automattic / Automattic/wp-openid-connect-server

Filter `site_status_tests`

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

Description

Hi,

We have two errors in the "Site Health" section of WP.

```
The public key constant OIDC_PUBLIC_KEY is malformed.
The private key constant OIDC_PRIVATE_KEY is malformed.
```

Because,
```
var_dump(substr( OIDC_PUBLIC_KEY, - strlen( '-----END PUBLIC KEY-----' )));

// return string(24) "----END PUBLIC KEY----- ";
```
My public key ends with "`-----END PUBLIC KEY-----`"

It's the same problem with the private key.
```
var_dump(substr( OIDC_PRIVATE_KEY, - strlen( '-----END RSA PRIVATE KEY-----' )));
// return string(29) "----END RSA PRIVATE KEY----- "
```

Thanks.

Contributor guide

Open the contributing guide

Research direction

Start by locating the site_status_tests filter and the Site Health checks that validate OIDC_PUBLIC_KEY and OIDC_PRIVATE_KEY. Confirm how the reported key formatting produces the malformed-key errors, then determine the expected Site Health behavior; done when valid configured keys no longer produce these errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
authentication
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.