Expand description
Basic authentication helpers for Rerun.
Currently, this crate provides a simple Jwt-based authentication scheme on
top of a rudimentary RedapProvider that uses a symmetric key to both
generate and sign tokens.
Warning! This approach should only be seen as a stop-gap until we have
integration of real identity-providers, most likely based on OpenID Connect.
Modules§
Structs§
- Jwt
- A JWT that is used to authenticate the client.
- Redap
Provider - A secret key that is used to generate and verify tokens.
- Secret
Key - Verification
Options
Enums§
- Claims
- Error
- Handles errors for the
re_authcrate. - Token
Error
Constants§
- ERROR_
MESSAGE_ INVALID_ CREDENTIALS - The error message in Tonic’s gRPC status when a valid token did not have the required permissions.
- ERROR_
MESSAGE_ MALFORMED_ CREDENTIALS - The error message in Tonic’s gRPC status when the token is malformed or invalid in some way.
- ERROR_
MESSAGE_ MISSING_ CREDENTIALS - The error message in Tonic’s gRPC status when no token was found.