API Reference macaw_auth_ash v#0.3.1

Copy Markdown View Source

Modules

A Macaw.Auth backend over AshAuthentication: a host's Ash user and token resources behind the contract, so an Ash host gets Macaw's plugs, LiveView hooks, steps and revocation push without a second user table.

Tells open pages of the tokens an update action revoked: Macaw.Auth.Ash.TokenResource puts it on AshAuthentication's revoke_all_stored_for_subject.

Macaw.Auth.Ash's configuration, read from the application environment and checked, so a fault names its key rather than failing a sign-in somewhere deeper

Tells open pages of a revocation made through Ash, outside Macaw.Auth.

Macaw.Auth.Ash's sessions, kept in the host's AshAuthentication token resource.

A directory sign-in as an AshAuthentication strategy: macaw_auth's Macaw.Auth.Native.Source.Ldap (its RFC 4514 and filter escaping, its TLS rules with allow_plaintext: false, its group checks and role mapping) on an Ash user resource, which it provisions at a user's first sign-in.

The LDAP strategy's sign-in action (sign_in_with_<name>): runs Macaw.Auth.Ash.Strategy.Ldap.sign_in/4 and returns the user, with a user token in its :token metadata when the resource has tokens, as the password strategy's sign-in does (unless the action's context sets token_type to anything but :user).

What Macaw.Auth.Ash adds to a host's AshAuthentication token resource