Skip to main content

AuthCredentials

Auth Credentials resource for Internet Access.

Resource operations

This resource does not support standard CRUDL methods. Each action listed below is a custom action that takes explicit keyword arguments and returns a value.

Quick Start​

import zssdk
import logging

# Enable debug logging for AuthCredentials
logging.getLogger('zssdk.zia').setLevel(logging.DEBUG)
logging.basicConfig(level=logging.DEBUG)

session = zssdk.Session(
vanity_domain="your-vanity-domain",
client_id="your-client-id",
client_secret="your-client-secret",
)

# Call create_authenticated_session on AuthCredentials
resource = session.zia.AuthCredentials()
result = resource.create_authenticated_session()
print(result)

# Debug output shows HTTP request/response details

Actions​

create_authenticated_session()​

Parameters:

NameTypeRequiredDescription
include_display_preferencesbooleanNo-
api_keystringNo-
passwordstringNo-
provider_namestringNo-
saml_responsestringNo-
timestampstringNo-
usernamestringNo-

Returns: MobileSessionInfo

Example:

resource = session.zia.AuthCredentials()
result = resource.create_authenticated_session()
print(result)

Attributes​

NameTypeRequiredDescription
api_keystringNo-
passwordstringNo-
provider_namestringNo-
saml_responsestringNo-
timestampstringNo-
usernamestringNo-