System configuration
The module settings are in Stores > Configuration > Advanced > Admin > Visus Single Sign-On. The Configuration > Settings link of the module navigation also opens this group.
All settings have the default scope only.
Log retention
Section titled “Log retention”| Setting | Default | Description |
|---|---|---|
| Login Log Lifetime (Days) | 365 |
The number of days that the module keeps the login log entries. Set to 0 to keep the entries with no time limit. |
| Provider Change Log Lifetime (Days) | 0 |
The number of days that the module keeps the provider change log. Set to 0 or to 90 days or more. |
| Domain Change Log Lifetime (Days) | 0 |
The number of days that the module keeps the domain change log. Set to 0 or to 90 days or more. |
| Service Provider Key Change Log Lifetime (Days) | 0 |
The number of days that the module keeps the service provider key change log. Set to 0 or to 90 days or more. |
The value 0 keeps the entries with no time limit. Cron jobs delete the old entries one time each day. Refer to Cron jobs.
| Setting | Default | Description |
|---|---|---|
| SSO Forgot Password Email Template | SSO Forgot Admin Password | Magento sends this email instead of the password reset link to an admin user that SSO manages. |
| Service Provider Certificate Expiry Warning (Days) | 30 |
The number of days before the expiry of the service provider certificate when the warnings start. More notices follow at 7 days, at 1 day and at the expiry. There is no warning if another active key stays valid longer. |
| Service Provider Certificate Expiry Email Recipients | Empty | Email addresses, separated by commas. Leave empty to send no email. The admin notifications still appear. |
| Service Provider Certificate Expiry Email Sender | General Contact | The sender identity of the expiry email. |
| Service Provider Certificate Expiry Email Template | SSO Service Provider Certificate Expiry | The template of the expiry email. |
For the templates, refer to Email templates.
API tokens
Section titled “API tokens”| Setting | Default | Description |
|---|---|---|
| Allow API Tokens For Single Sign-On Accounts | No | When Yes, an SSO-managed admin user can get an admin API token on My Account > API Tokens, after a re-authentication. The role of the user needs the API Tokens For Single Sign-On resource. |
| API Token Lifetime (Minutes) | 60 |
The lifetime of each token. Shows only when Allow API Tokens For Single Sign-On Accounts is Yes. |
If the admin token lifetime of Magento (OAuth > Access Token Expiration) is shorter, a token expires at the end of that lifetime. A token stays valid until it expires, until the user or an admin revokes it, or until you turn off the setting. For more information, refer to API tokens.
Configuration paths
Section titled “Configuration paths”To set the values from the command line, use bin/magento config:set with these paths:
| Path | Setting |
|---|---|
admin/visus_sso/login_log_lifetime |
Login Log Lifetime (Days) |
admin/visus_sso/provider_log_lifetime |
Provider Change Log Lifetime (Days) |
admin/visus_sso/domain_log_lifetime |
Domain Change Log Lifetime (Days) |
admin/visus_sso/sp_key_log_lifetime |
Service Provider Key Change Log Lifetime (Days) |
admin/visus_sso/forgot_email_template |
SSO Forgot Password Email Template |
admin/visus_sso/sp_key_expiry_warning_days |
Service Provider Certificate Expiry Warning (Days) |
admin/visus_sso/sp_key_expiry_email_recipients |
Service Provider Certificate Expiry Email Recipients |
admin/visus_sso/sp_key_expiry_email_identity |
Service Provider Certificate Expiry Email Sender |
admin/visus_sso/sp_key_expiry_email_template |
Service Provider Certificate Expiry Email Template |
admin/visus_sso/api_token_enabled |
Allow API Tokens For Single Sign-On Accounts |
admin/visus_sso/api_token_lifetime |
API Token Lifetime (Minutes) |
Example:
bin/magento config:set admin/visus_sso/login_log_lifetime 180