8.8. Container Policies¶
Starting with version 3.11, privacyIDEA supports the interaction of physical containers (e.g. smartphone) with the server. In the container policies the registration and synchronization of containers can be configured as well as the rights for containers to use the REST API Container endpoints.
Technically, container policies are checked using Policy Module and API Policies.
In the requests of a container client, no user is logged in. privacyIDEA uses the owner of the container instead, if the container has exactly one owner. See Where Policy Conditions Are Checked for the data that each request has.
The following actions are available in the scope container:
8.8.1. Registration and Synchronization¶
The group registration and synchronization contains all actions to configure the registration and synchronization.
These actions are only read once at the registration and before a rollover. Changing the actions after the registration
has no effect on registered containers. To apply the changes to registered containers a rollover can be performed.
8.8.1.1. privacyIDEA_server_url¶
type: string
The URL of the privacyIDEA server, e.g. https://privacyidea.example.com/. It is used to build URLs of API endpoints the container
can contact for registration and synchronization. Note that the URL might differ from the server URL of the WebUI.
This action is required: without it a container can not be registered or rolled over (the request fails with “Missing enrollment policy privacyIDEA_server_url”).
Added in version 3.11.
8.8.1.2. container_registration_ttl¶
type: integer
The time in minutes the client has to do the second step of the registration (to scan the QR code). The default is ten minutes.
Added in version 3.11.
8.8.1.3. container_challenge_ttl¶
type: integer
After the client (a registered container) has challenged an action such as synchronization,
container_challenge_ttl defines the time in minutes the client has to complete the action.
The default is two minutes.
Added in version 3.11.
8.8.1.4. container_ssl_verify¶
type: string
If set to True the client needs to verify the SSL certificate of the privacyIDEA server.
If no value is set, the default is True. It is highly recommended to use SSL.
Added in version 3.11.
8.8.2. Smartphone¶
The group smartphone contains all actions applicable to smartphone containers.
The policies are checked before each API request and sent to the client during each synchronization.
8.8.2.1. container_client_rollover¶
type: bool
This action allows the client to perform a container rollover with all contained tokens. The rollover generates new secrets for all contained tokens, and the client has to generate a new asymmetric key pair. The rollover can also be used to transfer the container with all tokens to a new device.
Added in version 3.11.
8.8.2.2. initially_add_tokens_to_container¶
type: bool
During the first synchronization, this action allows the server to automatically add tokens from the client to the container on the server. This allows registering devices with existing tokens as container without having to manually add the tokens on the device to the container. However, the tokens already have to exist on the server. No new token is created, it only adds existing tokens to the container.
Only tokens that are related to the container are added. A token that is assigned to a user is added if the user is an owner of the container. A token that is not assigned to a user is added if it is in one of the realms of the container, which covers tokens that are prepared in advance for a user that is not known yet. A token that has neither an owner nor a realm can not be related to the container and is skipped. A token that is already part of a container is skipped as well: moving a container with all its tokens to a new device is what a container rollover is for.
Added in version 3.11.
8.8.2.3. disable_client_token_deletion¶
type: bool
By default, the user is allowed to delete tokens locally on the smartphone. The tokens will remain on the server. Activating this action will disable the deletion of tokens in the authenticator app as long as the smartphone is registered on the server or this policy changes.
Added in version 3.11.
8.8.2.4. disable_client_container_unregister¶
type: bool
By default, the user is allowed to delete the container locally on the smartphone and thus unregister the container. The container will remain on the server but will not be connected to the smartphone. To prevent the user from unregistering the container, this action can be activated. It will also disable the deletion of the container in the authenticator app as long as the smartphone is registered on the server or this policy changes.
Added in version 3.11.
8.8.2.5. hide_specific_error_message¶
type: bool
If this policy is set, failures in the container endpoints that a registered client calls without an authenticated
user return a generic error message instead of the specific one, e.g. “Failed container synchronization”. This applies
to the endpoints /container/register/finalize, /container/register/terminate/client, /container/challenge,
/container/synchronize and /container/rollover.
The corresponding policy for failed authentications is hide_specific_error_message in the authentication scope.
Added in version 3.13.