Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GCIPAuthenticator ¶
type GCIPAuthenticator struct {
UserAuthClient
}
GCIPAuthenticator is a struct that authenticates users using Firebase Auth, which is part of Google Cloud Identity Platform (GCIP). It implements the UserAuthClient interface.
func NewGCIPAuthenticator ¶
func NewGCIPAuthenticator(client UserAuthClient) *GCIPAuthenticator
NewGCIPAuthenticator creates a new GCIPAuthenticator instance.
func (GCIPAuthenticator) Authenticate ¶
Authenticate authenticates a user using the provided ID token.
type GCPTokenGenerator ¶
type GCPTokenGenerator struct{}
GCPTokenGenerator generates an authentication token for processes running inside GCP.
func (GCPTokenGenerator) Generate ¶
Taken from https://cloud.google.com/docs/authentication/get-id-token#metadata-server
type UserAuthClient ¶
type UserAuthClient interface {
VerifyIDToken(context.Context, string) (*firebaseauth.Token, error)
}
UserAuthClient is an interface that defines the methods for interacting with a user authentication provider.
Click to show internal directories.
Click to hide internal directories.