Skip to content

Introduction

Job van Koeveringe edited this page Nov 2, 2026 · 3 revisions

Introduction

Scouting OpenID Connect is a WordPress plugin for websites that belong to Scouting Nederland. It lets authorized members authenticate with their Scouts Online identity and then creates or updates a local WordPress user account.

The plugin does not replace WordPress itself or turn every account into an OIDC account. Normal WordPress accounts and the regular username/password form remain available. The plugin adds a Login with Scouts Online option when a secure OIDC login can be started.

What the plugin provides

  • A login button on wp-login.php.
  • A button and a URL shortcode for public pages.
  • Authorization Code Flow with PKCE (S256).
  • Discovery, signing-key retrieval, ID token validation, and UserInfo retrieval.
  • Local user creation and updates based on a Scouts Online member ID and OIDC subject.
  • Optional synchronization of selected profile fields and WooCommerce address fields.
  • Optional SOL assignment synchronization, a Role Explorer, and WordPress role-mapping and OIDC login rules with all-match evaluation and deny precedence.
  • WooCommerce product ordering restrictions based on active SOL organizations and roles, with optional product or global SOL sign-in requirements.
  • Configurable post-login redirects and logout via the provider.
  • Site Health checks, an administrator log screen, log export, and daily log retention cleanup.

Requirements

Requirement Why it matters
WordPress 6.9.5 or later Minimum supported WordPress version.
PHP 8.2 or later Minimum runtime supported by the plugin.
HTTPS The login flow needs a secure, host-only session cookie.
PHP OpenSSL and secure random bytes Required to validate ID tokens and create session, state, nonce, and PKCE values.
A Scouts Online managed website connection Supplies the Client ID, Client Secret, allowed organizations, and scopes.
A Scouting Nederland account with the webmaster role Required to manage the connection in Scouts Online.

If TLS is terminated by a proxy, HTTPS must still be correctly reported to WordPress and the plugin. See HTTPS and reverse proxies.

Terms

Term Meaning in this plugin
Scouts Online or SOL The Scouting Nederland identity service that authenticates the user.
Managed website connection The configuration in Scouts Online that identifies this WordPress site.
Client ID and Client Secret Credentials assigned to the managed website connection.
Scope A set of permissions that determines which claims the provider may return.
Redirect URI The exact URL to which SOL sends the browser after successful authorization.
OIDC subject (sub) The stable identity value used to bind a SOL identity to a local account.
SOL member ID The value used as the WordPress username for an OIDC-created account.
SOL assignment A dated relationship between a member and a SOL role in an organization unit.
Plugin-managed WordPress roles All local roles granted and tracked by SOL role mapping; obsolete grants are removed at successful OIDC login and independently managed roles are preserved.

What to read next

  • Follow Installation for the WordPress-side setup.
  • Follow Configuration to create and configure the managed website connection.
  • Read OpenID Connect before deploying behind a reverse proxy or changing scopes.

Clone this wiki locally