Skip to content

taipy.auth.Credentials

Hold the information for a user, potentially authenticated.

Available in Taipy Enterprise only

This class exists only in the Enterprise edition of Taipy.

Credentials are created by an Authenticator instance.

get_roles()

Return the roles for this Credentials object.

If no roles are assigned, the returned value is an empty set.

Returns:

Type Description
Set[str]

The roles as a set of strings.

validate()

Validate these credentials.

This function does nothing if the credentials are valid (the user is properly authenticated, and the credentials have not expired).

Raises:

Type Description
InvalidCredentials

if these credentials are invalid.