Skip to content

Commit 4a19979

Browse files
authored
Merge pull request #116 from beanscg/bean-labs-doc-no-account-default-role
docs: document _no_account default role
2 parents 72b8644 + cbf1f47 commit 4a19979

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

readme.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,9 @@ Yes, the plugin allows for all settings to be controlled via constants in `wp-co
156156
- PHP 7.0 (and above) example: `define('SHIBBOLETH_ROLES', array( 'administrator' => array( 'header' => 'entitlement', 'value' => 'urn:mace:example.edu:entitlement:wordpress:admin' ), 'author' => array( 'header' => 'affiliation', 'value' => 'faculty' ) ) );`
157157
- `SHIBBOLETH_DEFAULT_ROLE`
158158
- Format: string
159-
- Available options: All available WordPress roles. The defaults are `'administrator'`, `'subscriber'`, `'author'`, `'editor'`, and `'contributor'`. Leave this constant empty `''` to make the default no allowed access.
159+
- Available options: All available WordPress roles. The defaults are `'administrator'`, `'subscriber'`, `'author'`, `'editor'`, and `'contributor'`. Leave this constant empty `''` to make the default no allowed access, or set it to `'_no_account'` to skip account creation when no Shibboleth role mapping applies.
160160
- Example: `define('SHIBBOLETH_DEFAULT_ROLE', 'subscriber');`
161+
- Example: `define('SHIBBOLETH_DEFAULT_ROLE', '_no_account');`
161162
- `SHIBBOLETH_UPDATE_ROLES`
162163
- Format: boolean
163164
- Available options: `true` to automatically use Shibboleth data to update user role mappings each time the user logs in or `false` to only update role mappings when a user is initally created.

0 commit comments

Comments
 (0)