Authentication notifications

auth_confirm

Confirm a user id.

Type:
foldl
Return:
context{}

#auth_confirm{} properties: none

auth_confirm_done

A user id has been confirmed.

Type:
notify

Return:

#auth_confirm_done{} properties: none

auth_logon

User logs on. Add user-related properties to the session.

Type:
foldl
Return:
context{}

#auth_logon{} properties: none

auth_logon_done

User has logged on.

Type:
notify

Return:

#auth_logon_done{} properties: none

auth_autologon

Check if automatic logon is enabled for this session. Sent for new sessions from z_auth:logon_from_session/1. Please note this notification is sent for every single request.

Type:
first
Return:
{ok, UserId} when a user should be logged on.

#auth_autologon{} properties: none

auth_logoff

User is about to log off. Remove authentication from the current session.

Type:
foldl
Return:
context{}

#auth_logoff{} properties: none

auth_logoff_done

User has logged off.

Type:
notify

Return:

#auth_logoff_done{} properties: none

auth_validated

Authentication against some (external or internal) service was validated

Type:
first

Return:

#auth_validated{} properties:
  • service: atom
  • service_uid: binary
  • service_props: list
  • props: list
  • is_connect: boolean

See also

user_is_enabled