...
Code Block |
---|
authentication_client = BasicAuthenticationClient() |
Set the CDAP
...
Connection Information
hostname
port
boolean flag,
True
if SSL is enabled
...
This method should be called only once for each AuthenticationClient
object.
Check if
...
Authentication is
...
Enabled in the CDAP
...
Cluster
Code Block |
---|
is_enabled = authentication_client.is_auth_enabled() |
...
The
BasicAuthenticationClient
requires these user credentials:security_auth_client_username=username
security_auth_client_password=password
When SSL is enabled, to suspend certificate checks and allow self-signed certificates, set
security.security_ssl_cert_check=false
.For non-interactive applications, user credentials will come from a configuration file.
For interactive applications, see the section “Interactive Applications” below on retrieving and using user credentials.
Retrieve and
...
Use the
...
Access Token
Retrieve and use the access token for the user from the authentication server:
...