All Finesse APIs use HTTP BASIC authentication, which
requires the credentials to be sent in the authorization
header. The credentials contain the username and
password, separated by a single colon (:), within a
Base64-encoded string. For example, the authorization
header would contain the following string:
Click here to view code image
"Basic ZGV2YXNjOnN0cm9uZ3Bhc3N3b3Jk"
where ZGV2YXNjOnN0cm9uZ3Bhc3N3b3Jk is the
Base64-encoded string devasc:strongpassword (where
devasc is the username, and strongpassword is the
password). Example 10-8 shows three lines of code that
do Base64 encoding in order to plug the value in the
authorization headers.
Example 10-8 Python Code to Generate Base64
Encoding
Click here to view code image
""" Generate Base64 Encoding """
import base64
ENCODED =
base64.b64encode('devasc:strongpassword'.encode('UTF-
8'))
print(ENCODED.decode('utf-8'))
With Single Sign-On mode, the authorization header
would contain the following string:
"Bearer <authtoken>"
Finesse User APIs
Table 10-10 lists the various methods and User APIs to
perform operations with the user, such as listing, logging
in, and changing properties.