Rivet.Auth (rivet_ident v3.5.0)

View Source

Public interface to authentication and authorization functions.

Summary

Functions

authz_action(user, assertion, method \\ nil, kwlog \\ [])

change_password(code, new)

@spec change_password(Rivet.Ident.UserCode.t(), String.t()) :: boolean()

change_password(user, current, new)

@spec change_password(Rivet.Ident.User.t(), String.t(), String.t()) :: boolean()

check_authz(user, assertion)