Enabling trusted authentication
Before embedding Cloudera Data Visualization Services within client pages, you must first enable trusted authentication on the Cloudera Data Visualization Server.
- 
        Add the following settings to the advanced site settings.
        
AUTHENTICATION_BACKENDS = ( 'django.contrib.auth.backends.ModelBackend', 'trustedauth.backends.TrustedAuthBackend' ) TRUSTED_AUTH = { 'trusted_ips': ['127.0.0.1'], 'trusted_users': ['tadmin'], 'timeout': 120, 'single_use': True, 'session_expiry': 0, 'allow_superuser': True }Settings explanation:
- trusted_ips:
 - 
                
A list of trusted IPs. Ticket requests from these IP addresses are validated. You can either specify a list of
trusted_ips, a list oftrusted_users, or both. - trusted_users:
 - 
                
A list of trusted ticket-granting usernames. You can either specify a list of
trusted_users, a list oftrusted_ips, or both. - timeout:
 - 
                
The time that the ticket remains valid, in seconds.
 - single_use:
 - 
                
The ticket can be used only one time.
 - session_expiry:
 - 
                
The duration time of the user session, in seconds. A setting of
0ends the user session when the browser closes. - allow_superuser:
 - 
                
Allows authentication of a user with
adminprivileges using a ticket. Set this toFalseto disable this feature. 
 - Restart the application to apply the new configuration.
 
