Authenticator#
- class ansys.solutions.dash_super_components.Authenticator(items: list[dict[str, Any]] | None = None, card_props: dict[str, Any] | None = None, aio_id: str | None = None)#
Bases:
DivA Dash component for crafting an authentication form.
Authenticator is based on the Dash All-in-One (AIO) component pattern. It renders a vertical stack of
TextInput,PasswordInput, andButtonitems inside admc.Card.When
itemsis omitted or empty, a default form is rendered with a username text input (id"username"), a password input (id"password"), and a “Connect” button (id"connect").Each item dict must contain the following keys:
"type"(required):"TextInput","PasswordInput", or"Button"."id"(required): unique string identifier for the item."properties"(required): dict of dash mantine component properties.
- Parameters:
- items
listofdict,optional Items to render in the form. Each dict must contain
"type","id", and"properties"keys. When omitted or empty, the default form (username, password, connect button) is rendered.- card_props
dict,optional Properties forwarded to the wrapping
dmc.Card.- aio_id
str,optional Unique identifier for this component instance. A UUID is generated when not provided.
- items
IDs
- class ansys.solutions.dash_super_components.Authenticator.AuthenticatorIds#
Bases:
AIOIdsProvides IDs for the subcomponents of
Authenticator.- classmethod button(aio_id: str | Wildcard, item_id: str | Wildcard) dict[str, Any]#
Return the id for a button item.
- classmethod input(aio_id: str | Wildcard, item_id: str | Wildcard) dict[str, Any]#
Return the id for an input item.