Represents the context of a principal, which provides access to identity-related information and functionality.
Name | Type | Description | Notes |
---|---|---|---|
tokens | AccessToken | [optional] | |
name | str | Gets the name of the principal. | [optional] [readonly] |
claims | List[ClaimLite] | Gets the claims associated with the principal. | [optional] [readonly] |
from openapi_client.models.principal_context import PrincipalContext
# TODO update the JSON string below
json = "{}"
# create an instance of PrincipalContext from a JSON string
principal_context_instance = PrincipalContext.from_json(json)
# print the JSON string representation of the object
print(PrincipalContext.to_json())
# convert the object into a dict
principal_context_dict = principal_context_instance.to_dict()
# create an instance of PrincipalContext from a dict
principal_context_from_dict = PrincipalContext.from_dict(principal_context_dict)