The key of the associative array returned by the config file is the auth code the user has to enter to sign up with SCP.
- Required
- Type:
String
todo
Config Key: auth_codes
<?php
// CLIENT_CONFIG/config/auth_codes.php
return [
'auth_code' => [
'name' => 'Auth Code Name',
'enabled' => true,
'roles' => [
'CONTENT_MANAGER',
'GATEKEEPER',
'TERMINATOR',
],
'scopes' => [
'scope-one',
'scope-two',
],
'field_values' => [
'opu' => 'germany',
],
'allowedFilters' => [
'name',
'opu',
],
'approvers' => [
'boss@showcase-app.io',
],
'approved_email_domains' => [
'rmh-media.com',
]
],
];
auth_codeThe key of the associative array returned by the config file is the auth code the user has to enter to sign up with SCP.
Stringauth_code.nameShould be a human-friendly name as it can get viewed by the user on the Gui.
Stringauth_code.enabledIf the auth code is disabled, users cannot use it anymore. If the user already has signed up and the auth code became inactive, he will be asked to enter a new one the next time he signs in.
Booleanauth_code.rolesA set of roles the user will be assigned to by using the given auth code.
String[]auth_code.scopesA set of scopes which will be applied to the queries the user will make.
[]String[]auth_code.field_valuesGiven field_values will be used during the material creation process to predefine the values of the request form.
[][String => String]auth_code.allowedFiltersIf this option is unset all configured fields which have the filterable flag set will be available
for material filtering in the Gui (see GUI Filters).
[String => String]auth_code.approversThis array of e-mail-addresses will be merged with config.account_approval.default_approver config value to form the
array of potential approvers for the new user.
String[]auth_code.approved_email_domainsThis array of host names (without the @-sign) will be merged with config.account_approval.default_approved_domains config value to form the
array of potential pre-approved domains for the auth code.
String[]