Overview
OpenTV Platform enables the use of PINs to restrict access to content or functionality. These are typically:
-
A purchase PIN that must be entered to make a purchase
-
A parental PIN that must be entered to access age-restricted content
The platform can be configured with additional PIN restrictions:
-
PIN format (length and permitted characters)
-
Number of permitted incorrect PIN entry attempts
-
Lockout time if the number of entry attempts is exceeded
A global PIN configuration and/or a configuration for each type of PIN can be added. These are set up by NAGRAVISION at deployment time.
The platform can also check the PIN itself on certain requests, such as switching to an adult profile or making a purchase. See Server-side PIN checks below.
General PIN management
The client UI application needs to enable the following PIN-related scenarios:
-
When a user tries to access PIN-protected functionality or content, the application should prompt the user for the PIN and check that the PIN is correct.
-
When a user enters the wrong PIN a particular (configurable) number of times, the PIN is locked for a configurable time. The platform enforces the lock – requests that check the PIN are refused until the lock ends, even if the PIN is correct. The client application makes a PIN status request to find out the status of the PIN and how long it will be locked for, and can present this information to the user.
Note: this applies across all devices that belong to the account. -
A user changes a PIN by supplying both the current PIN and the new PIN. If the user has forgotten the current PIN, the operator can reset it.
Server-side PIN checks
Normally the client application checks the PIN before it makes a protected request (see Verifying user-supplied PINs). On some requests, OpenTV Platform can also check the PIN on the server, so a modified client cannot get round it. The client sends the PIN that the user entered in the request body, and the platform checks it before it carries out the request.
The following requests can check the PIN:
|
Request |
When the PIN is checked (default) |
|---|---|
|
Switching to a different user profile
|
When switching from a child profile to a non-child profile |
|
|
Always |
|
|
Always |
|
Deleting an existing user profile
|
Always |
|
|
Only if PIN checking has been set up for purchases in your deployment |
Note the following:
-
Which PIN. The client sends only the PIN value. Which type of PIN is checked (for example, the parental PIN) is set for each request in the platform configuration. Ask your NAGRAVISION representative which PIN types your deployment uses.
-
Lockout. A wrong PIN counts towards the lockout for that PIN type, in the same way as a failed request to verify the PIN. A correct PIN resets the count of wrong attempts. When the PIN is locked, the request is refused even if the PIN is correct. Use Getting the status of all PINs for the account to find out how long the lock lasts.
-
PIN not set. If the account has no PIN of the required type, the request fails. Prompt the user to set the PIN first (see Setting a PIN).
-
Earlier versions. The earlier versions of these requests (
/ias/v3/token/actions/changeUserProfileand the UPS v1POST,PUTandDELETE/ups/v1/user/userprofilesrequests) are deprecated. They don't check the PIN, so the client must do it. They still work, but a deployment can switch them off.
PIN checking is configured for each deployment. The defaults above can be changed, so check with your NAGRAVISION representative which requests check the PIN in your deployment.
Parental control
For controlling access to age-restricted content, the client app must:
-
Check whether the content that the user want to play is age-restricted.
-
If so, to prompt for a PIN.
The specific details of what the client application needs to do vary depending on the ratings body and are explained in Parental controls.
See also
Managing PINs and parental control (Subscriber management integration guide)