nova_auth_actor (nova_auth v0.2.0)

View Source

Generic session actor storage. Stores and retrieves actor maps from Nova's ETS session. Both password auth and OIDC write here, providing a unified downstream experience for security callbacks and policies.

Summary

Functions

Clear the actor from the Nova session.

Fetch the actor map from the Nova session.

Return the session key used for actor storage.

Store an actor map in the Nova session.

Functions

delete(Req)

-spec delete(cowboy_req:req()) -> {ok, cowboy_req:req()} | {error, atom()}.

Clear the actor from the Nova session.

fetch(Req)

-spec fetch(cowboy_req:req()) -> {ok, nova_auth:actor()} | {error, not_found}.

Fetch the actor map from the Nova session.

session_key()

-spec session_key() -> binary().

Return the session key used for actor storage.

store(Req, Actor)

-spec store(cowboy_req:req(), nova_auth:actor()) -> ok | {error, atom()}.

Store an actor map in the Nova session.