Module mod_authentication

Authentication and identification of users.

Copyright © 2010-2019 Marc Worrell

Authors: Marc Worrell (marc@worrell.nl).

Description

Authentication and identification of users.

Function Index

event/2
init/1
observe_admin_menu/3
observe_auth_client_logon_user/2Send a request to the client to login an user.
observe_auth_client_switch_user/2Send a request to the client to switch users.
observe_auth_options_update/3
observe_auth_validated/2Handle a validation against an (external) authentication service.
observe_logon_options/3
observe_logon_submit/2Check username/password against the identity tables.
observe_request_context/3Check for authentication cookies in the request.

Function Details

event/2

event(Submit, Context) -> any()

init/1

init(Context) -> any()

observe_admin_menu/3

observe_admin_menu(Admin_menu, Acc, Context) -> any()

observe_auth_client_logon_user/2

observe_auth_client_logon_user(Auth_client_logon_user, Context) -> any()

Send a request to the client to login an user. The zotonic.auth.worker.js will send a request to controller_authentication to exchange the one time token with a z,auth cookie for the given user. The client will redirect to the Url.

observe_auth_client_switch_user/2

observe_auth_client_switch_user(Auth_client_switch_user, Context) -> any()

Send a request to the client to switch users. The zotonic.auth.worker.js will send a request to controller_authentication to perform the switch.

observe_auth_options_update/3

observe_auth_options_update(Auth_options_update, AccOpts, Context) -> any()

observe_auth_validated/2

observe_auth_validated(Auth_validated, Context) -> any()

Handle a validation against an (external) authentication service. If identity is known: log on the associated user and set auth cookies. If unknown, add identity to current user or signup a new user

observe_logon_options/3

observe_logon_options(Logon_options, Acc, Context) -> any()

observe_logon_submit/2

observe_logon_submit(Logon_submit, Context) -> any()

Check username/password against the identity tables.

observe_request_context/3

observe_request_context(Request_context::#request_context{}, Context::z:context(), X3::z:context()) -> z:context()

Check for authentication cookies in the request.


Generated by EDoc