Documentation
¶
Index ¶
Constants ¶
View Source
const AuthSourceKind string = "google"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthSource ¶
type AuthSource struct {
Name string `yaml:"name"`
Kind string `yaml:"kind"`
ClientID string `yaml:"clientId"`
}
struct used to store auth source info
func (AuthSource) AuthSourceKind ¶
func (a AuthSource) AuthSourceKind() string
Returns the auth source kind
func (AuthSource) GetClaimsFromHeader ¶
Verifies Google ID token and return claims
func (AuthSource) GetName ¶
func (a AuthSource) GetName() string
Returns the name of the auth source
type Config ¶
type Config struct {
Name string `yaml:"name"`
Kind string `yaml:"kind"`
ClientID string `yaml:"clientId"`
}
Auth source configuration
func (Config) AuthSourceConfigKind ¶
Returns the auth source kind
func (Config) Initialize ¶
func (cfg Config) Initialize() (auth.AuthSource, error)
Initialize a Google auth source
Click to show internal directories.
Click to hide internal directories.