Data API Example Settings

In order to use the Data API, you must first configure the Arcadia Web Server to permit Data API access. This can be accomplished by changing the configuration file of the server to include the DATA_API_ENABLED setting.

To use the Data API programmatically, the Arcadia Web Server must also be configured for trusted authentication. While the details of the trusted authentication mechanism are described in Data API Example Usage, the following example settings show a another sample configuration for trusted authentication.

DATA_API_ENABLED = True

INSTALLED_APPS = INSTALLED_APPS + ('trustedauth',)

AUTHENTICATION_BACKENDS = (
  'django.contrib.auth.backends.ModelBackend',
  'trustedauth.backends.TrustedAuthBackend',
)

TRUSTED_AUTH = {
  'trusted_ips': ['127.0.0.1'],
  'trusted_users': ['tuser1', 'tuser2'],
  'timeout': 120,
  'single_use': False,
  'session_expiry': 0,
  'allow_superuser': False,
}