Crate re_auth

Crate re_auth 

Source
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§

client
credentials
server

Structs§

Jwt
A JWT that is used to authenticate the client.
RedapProvider
A secret key that is used to generate and verify tokens.
SecretKey
VerificationOptions

Enums§

Claims
Error
Handles errors for the re_auth crate.
TokenError

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.