auth

package
v1.19.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHostname

func GetHostname() string

func NewNoAuthMethod

func NewNoAuthMethod(l *logrus.Logger, authMethodName string, msg string) authMethod

func NewOidcAuthMethod

func NewOidcAuthMethod(l *logrus.Logger, cfg *util.Config) authMethod

func NewTokenAuthMethod

func NewTokenAuthMethod(l *logrus.Logger, cfg *util.Config) authMethod

Types

type IDTokenClaims

type IDTokenClaims struct {
	Sub           string `json:"sub"`
	EmailVerified bool   `json:"email_verified"`
	Mail          string `json:"mail"`
	Iss           string `json:"iss"`
	LastName      string `json:"last_name"`
	GivenName     string `json:"access_token"`
	Aud           string `json:"aud"`
	UserUuid      string `json:"user_uuid"`
	Exp           int    `json:"exp"`
	IAT           int    `json:"iat"`
	FirstName     string `json:"first_name"`
	FamilyName    string `json:"family_name"`
	JTI           string `json:"jti"`
	Email         string `json:"email"`
}

type NoAuthMethod

type NoAuthMethod struct {
	// contains filtered or unexported fields
}

func (NoAuthMethod) Verify

func (nam NoAuthMethod) Verify(*gin.Context) error

type OidcAuthMethod

type OidcAuthMethod struct {
	// contains filtered or unexported fields
}

func (OidcAuthMethod) Verify

func (oam OidcAuthMethod) Verify(c *gin.Context) error

type OidcTokenClaims

type OidcTokenClaims struct {
	Version       string `json:"version"`
	Sub           string `json:"sub"`
	EmailVerified bool   `json:"email_verified"`
	Mail          string `json:"mail"`
	LastName      string `json:"last_name"`
	GivenName     string `json:"access_token"`
	Aud           string `json:"aud"`
	UserUuid      string `json:"user_uuid"`
	FirstName     string `json:"first_name"`
	FamilyName    string `json:"family_name"`
	JTI           string `json:"jti"`
	Email         string `json:"email"`
	jwt.RegisteredClaims
}

type TokenAuthMethod

type TokenAuthMethod struct {
	// contains filtered or unexported fields
}

func (TokenAuthMethod) Verify

func (tam TokenAuthMethod) Verify(c *gin.Context) error

type TokenClaims

type TokenClaims struct {
	Version string `json:"version"`
	jwt.RegisteredClaims
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL