orangeqs.juice.client.identity#

Module to handle identity management for Juice.

Module Contents#

Functions#

get_identity

Get the identity of the current context.

identity_display_name

Return a short name of a full Juice identity, to show to users.

API#

orangeqs.juice.client.identity.get_identity() → tuple[Literal[service, user], str]#

Get the identity of the current context.

orangeqs.juice.client.identity.identity_display_name(identity: str) → str#

Return a short name of a full Juice identity, to show to users.

user-alice becomes alice, and service-shared becomes service shared. An identity of another form shows as it is.