auth.sessions¶
Notification of new and removed sessions.
AuthSessionsAddedEvent
Type: objectNo Additional Properties
AuthSessionsEntry
Type: objectEvent fields.
No Additional PropertiesId
Type: stringUnique identifier for the authentication session.
Current
Type: booleanWhether this is the current active session.
Internal
Type: booleanWhether this is an internal system session.
Origin
Type: stringOrigin information for the session (IP address, hostname, etc.).
Credentials
Type: enum (of string)Authentication method used for this session.
UNIX_SOCKET: Local Unix domain socket authenticationLOGIN_PASSWORD: Username and password authenticationLOGIN_TWOFACTOR: Two-factor authentication loginLOGIN_ONETIME_PASSWORD: One-time password authenticationAPI_KEY: API key authenticationTOKEN: Token-based authenticationTRUENAS_NODE: TrueNAS cluster node authentication
Must be one of:
- "UNIX_SOCKET"
- "LOGIN_PASSWORD"
- "LOGIN_TWOFACTOR"
- "LOGIN_ONETIME_PASSWORD"
- "API_KEY"
- "TOKEN"
- "TRUENAS_NODE"
Credentials Data
Detailed credential information specific to the authentication method.
BaseCredentialData
Type: objectUserCredentialData
Type: objectNo Additional Properties
Username
Type: stringUsername of the authenticated user.
Login Id
Type: stringUnique identifier for the login.
Login At
Type: stringFormat: date-timeTimestamp of when the user logged in.
APIKeyCredentialData
Type: objectNo Additional Properties
Username
Type: stringUsername of the authenticated user.
Login Id
Type: stringUnique identifier for the login.
Login At
Type: stringFormat: date-timeTimestamp of when the user logged in.
APIKeySessionData
Type: objectAPI key information used for authentication.
No Additional PropertiesId
Type: integerUnique identifier for the API key.
Name
Type: stringHuman-readable name of the API key.
TokenCredentialData
Type: objectNo Additional Properties
TokenParentCredentialsData
Type: objectParent credential information that generated this token.
No Additional PropertiesCredentials
Type: enum (of string)Type of credentials used to generate this token.
Must be one of:
- "UNIX_SOCKET"
- "LOGIN_PASSWORD"
- "LOGIN_TWOFACTOR"
- "API_KEY"
- "TOKEN"
- "TRUENAS_NODE"
Credentials Data
Credential data used to authenticate the token request.
BaseCredentialData
Type: objectUserCredentialData
Type: objectNo Additional Properties
Username
Type: stringUsername of the authenticated user.
Login Id
Type: stringUnique identifier for the login.
Login At
Type: stringFormat: date-timeTimestamp of when the user logged in.
APIKeyCredentialData
Type: objectNo Additional Properties
Username
Type: stringUsername of the authenticated user.
Login Id
Type: stringUnique identifier for the login.
Login At
Type: stringFormat: date-timeTimestamp of when the user logged in.
API key information used for authentication.
TokenCredentialData
Type: objectNo Additional Properties
Parent credential information that generated this token.
Login Id
Type: stringUnique identifier for the login.
Username
Username associated with the token. null if not user-specific.
Login Id
Type: stringUnique identifier for the login.
Username
Username associated with the token. null if not user-specific.
Created At
Type: stringFormat: date-timeTimestamp when the session was created.
Secure Transport
Type: booleanWhether the session was established over a secure transport (HTTPS/WSS).
AuthSessionsRemovedEvent
Type: objectNo Additional Properties
AuthSessionsRemovedEventFields
Type: objectEvent fields.
No Additional PropertiesId
Type: stringUnique identifier for the authentication session.
Required roles: FULL_ADMIN