package
0.9.0
Repository: https://github.com/gazebo-web/auth.git
Documentation: pkg.go.dev

# Functions

GCPIamServiceAccountAccessToken is a higher order function that returns an AccessTokenAuthentication func.
NewAuth0 initializes a new Authentication implementation using auth0 and JWT as an authentication system.
NewFirebase initializes a new FirebaseTokenVerifier implementation using a Firebase application, and it's in charge of refreshing the public key used to verify tokens every time a new key rotation happens.
NewFirebaseClaims initializes a new set of claims from the given firebase token.
NewFirebaseTestToken creates a new auth.Token for testing purposes.
NewFirebaseWithTokenVerifier initializes a new Authentication implementation using Firebase.

# Variables

ErrTokenInvalid is returned when a certain token is invalid.
ErrTokenNotProvided is returned when no token is provided.

# Interfaces

Authentication contains a set of methods to authenticate users through different authentication providers such as Auth0, Google Identity Platform, and such.
CustomClaimer allows getting custom claims from JWTs.
EmailClaimer allows to get an email from a custom JWT claim.
FirebaseTokenVerifier verifies a Token signed by Firebase.

# Type aliases

AccessTokenAuthentication defines the function signature for access token validators.
JsonWebTokenAuthentication is the signature that a function should fulfill in order to verify a JWT token.