nova_auth_actor (nova_auth v0.2.0)
View SourceGeneric 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
-spec delete(cowboy_req:req()) -> {ok, cowboy_req:req()} | {error, atom()}.
Clear the actor from the Nova session.
-spec fetch(cowboy_req:req()) -> {ok, nova_auth:actor()} | {error, not_found}.
Fetch the actor map from the Nova session.
-spec session_key() -> binary().
Return the session key used for actor storage.
-spec store(cowboy_req:req(), nova_auth:actor()) -> ok | {error, atom()}.
Store an actor map in the Nova session.