Repository navigation
Configuration
Configuration has two parts: create a managed website connection in Scouts Online, then copy its values into WordPress.
Before you start, make sure your account has the webmaster role in
SOL 3 (mijn.scouting.nl).
- Sign in at login.scouting.nl.
- Open Managed websites and choose Add OpenID Connect connection.
- Enter a recognizable name for the WordPress site.
- Set the Redirect URI to the exact WordPress home URL, including
https://and the trailing slash. For example:https://example.org/. - Set the Post Logout Redirect URI to the same public URL unless the site uses a different approved destination.
- Choose the scopes the website needs. At minimum select
openid,membership,profile, andemail. - Select the organizations that may log in. Enable suborganizations only when that access is intended.
- Enable the PKCE code challenge.
- Save the connection, open its details, and copy the Client ID, Client Secret, and selected scopes.
The redirect URI must match the URL produced by WordPress exactly. Changes to the WordPress home URL, host name, scheme, or trailing slash require a matching change in Scouts Online.
Open Scouting OIDC > Settings and complete the OpenID Connect Settings section.
| Setting | Required | Guidance |
|---|---|---|
| Client ID | Yes | Copy the value from the managed website connection. |
| Client Secret | Yes | Copy the secret from the managed website connection. The stored value is not shown again. Leave the field blank when saving unrelated changes to keep the existing secret. |
| Scopes | Yes | Enter scopes separated by spaces. The plugin accepts openid, membership, profile, email, address, phone, and roles. |
| Scope | Required | Used for |
|---|---|---|
openid |
Yes | OpenID Connect authentication. |
membership |
Yes | The SOL member ID used as the local WordPress username. |
profile |
Yes | Name, locale, profile URL, and optional birthdate and gender. |
email |
Yes | Local WordPress email address. |
address |
When address storage is enabled | Optional local or WooCommerce address fields. |
phone |
When phone storage is enabled | Optional local or WooCommerce phone field. |
roles |
When SOL role data is needed | Synchronizes organizations, units, roles, and user assignments for role mapping, the Role Explorer, and WooCommerce SOL Access. |
Every scope requested in WordPress must also be enabled for this website under
Managed websites at login.scouting.nl.
This includes the optional roles scope when using SOL role features. The Site
Health page reports missing required scopes and enabled profile features without
the required scope, but only checks the WordPress configuration. Provider
discovery cannot verify the permissions granted to an individual connection.
For rejected scopes, follow scope error recovery.
To store address or phone data, explicitly add the corresponding scope in both systems and enable Store address to local profile or Store phone number to local profile below. Requesting a scope alone does not enable local storage. The storage settings control which SOL values are refreshed. WooCommerce synchronization copies stored values and does not enable scopes or storage options automatically. Previously stored values can still be copied after a storage option is disabled. See WooCommerce synchronization.
The roles scope is optional for basic login. Configure it on both sides and
complete a fresh OIDC login before expecting role choices or assignments to
appear. See SOL Roles and Mapping.
The General Settings section controls how the plugin manages local accounts.
| Setting | Default | Effect |
|---|---|---|
| Set display name | Full name | Uses the full name, first name, or last name received from SOL. |
| Store birthdate to local profile | Disabled | Stores the birthdate claim in user metadata. |
| Store gender to local profile | Disabled | Stores the gender claim in user metadata. |
| Store phone number to local profile | Disabled | Stores phone data; requires the phone scope. |
| Store address to local profile | Disabled | Stores address data; requires the address scope. |
| Use WooCommerce phone number and address fields | Disabled | Stores enabled phone and address data in WooCommerce fields when WooCommerce is installed. |
| Allow new user accounts | Enabled | Creates a local WordPress user after a successful SOL login when no matching SOL member ID exists. |
| Default role alongside mapped roles | Disabled | Adds the WordPress default role when an allow rule grants roles, for new and existing users. Shown only with the roles scope enabled; unmatched existing users receive no replacement role. |
| When an email already exists | Add plus addressing | Adds the SOL member ID to the local part of the email address, or stops account creation when configured to error. |
| Redirect only SOL users | Enabled | Applies the configured post-login redirect only to SOL users. |
| After a successful login redirect user to | Frontpage | Chooses no change, the front page, dashboard, or a custom URL. |
| URL to custom redirect | Empty | A same-site path used only when the custom redirect mode is selected. |
| Enable debug logs | Disabled | Saves debug messages in the plugin log table; with WP_DEBUG, logs are also mirrored to the WordPress or PHP error log. |
| Log retention | 30 days | Sets daily log cleanup retention between 1 and 3650 days. |
The plugin uses the SOL member ID as the WordPress username and binds the local account to the provider's OIDC subject. This subject binding prevents a different SOL identity from signing in to an account that happens to have the same member ID.
When automatic creation is disabled, a successful provider login only signs in when an appropriately bound local account already exists. Create the account first or enable automatic creation according to your account-management policy.
The general post-login setting affects normal OIDC logins. The redirect_back
attribute on either shortcode overrides it for the login initiated through that
shortcode. See Redirect back.
Version 2.7.0 adds two administrator pages under Scouting OIDC:
- SOL Role Explorer shows synchronized assignments after selecting an organization and applying the filter.
- SOL Role Mapping combines roles from every matching allow rule; any matching deny blocks OIDC login. New unmatched users receive the WordPress default role. On the plugin Settings page, Also assign the WordPress default role when a mapping grants roles optionally adds that role alongside mapped roles for both new and existing users; it is disabled by default. Existing unmatched users receive no replacement role. Successful logins remove obsolete plugin-granted roles and preserve manual roles.
When the roles scope is disabled, both SOL role pages and the additional-default-role
setting are hidden. Saved mappings and WooCommerce organization/role restrictions
are paused and preserved. Existing WordPress roles remain unchanged on login;
new accounts receive the WordPress default role. WooCommerce SOL sign-in-only
requirements remain active. Enable roles under OpenID Connect Settings > Scopes
and complete a fresh OIDC login to synchronize assignments.
Mapping conditions accept multiple organizations, units, and SOL roles with Is one of or Is not one of. Values within a condition are alternatives; all populated conditions must match the same active assignment. Exclusions apply to that assignment, not to all assignments belonging to the user.
WooCommerce products also have a Product data > SOL Access tab for separate organization and role allow/deny restrictions. Any product deny match wins, as it does for login mapping.
The product tab also offers Require SOL sign-in, off by default. For every product at once, enable Require a signed-in SOL account for all products under WooCommerce > Settings > Products > General > SOL Access. The global switch overrides unchecked product settings. Either requirement blocks guests and non-SOL accounts at purchase, add-to-cart, and cart/checkout validation.
Use SOL Roles and Mapping and WooCommerce SOL Access for detailed setup and tests.
- Save the settings.
- Open Tools > Site Health.
- Resolve all critical Scouting OpenID Connect results, especially runtime, credentials, scopes, and provider discovery.
- Sign out, start a login at
wp-login.php, and complete the flow with a permitted SOL account. - Confirm the local account and post-login destination match your policy.
- Home
- Introduction
- Installation
- Configuration
- Shortcodes
- OpenID Connect
- Operations and Troubleshooting
- Users, Privacy and Data Lifecycle
- Account Management and Authorization
- SOL Roles and Mapping
- WooCommerce SOL Access
- Migration, Backup and Recovery
- Developer Integration
- FAQ and Known Limitations
- Architecture