API Reference rivet_ident v#3.5.0
View SourceModules
Public interface to authentication and authorization functions.
Validation of tokens for accessing site (after refresh)
Used for standardizing auth assertion checks.
Structure for in-process authentication result contexts, not directly to one user
Helpers for Graphql resolvers.
Tooling for the second phase of auth: Refresh
How we are configured globally
Google login scheme
Syntactic sugar to wrap the HTTP call in requesting the keys. Questionable if this is worthwhile, but it's working now...
This module runs as a separate process which keeps google's oauth public keys current, as they change weekly. This process inspects the expiration date (which google says should be correct) and updates at least by then, but does not wait longer than 1 day.
Local login scheme
Validate tokens are meeting our requirements
Verify tokens meet our requirements
Schema for representing and working with a Ident.Access.
Schema for representing and working with a Ident.Action.
Schema for representing and working with a Ident.Email.
This is an example of how to deploy Rivet Email, and is included so other projects may include it in their tests.
Schema for representing and working with an AuthFactor.
Structure for in-process authentication result contexts, not directly to one user
Puid.generate/0 is included with the use
statement below. It generates 18 random characters.
Schema for representing and working with a Handle.
Schema for representing and working with a Ident.RoleMap.
Schema for representing and working with a Ident.User.
Used by websockets token authentication. Very short term cache to efficiently load ~30 websockets all at once for a single dashboard.
Making changes to a user (administratively or as the user).
Schema for representing and working with a Ident.UserCode.
Schema for representing and working with a Ident.UserData.