auth

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2025 License: Apache-2.0 Imports: 21 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotLoggedIn = errors.New("not logged in")

Functions

func LoadDefaults

func LoadDefaults() (api.TokenSource, error)

func LoadUserToken

func LoadUserToken() (api.TokenSource, error)

func LoadWorkloadToken

func LoadWorkloadToken() (api.TokenSource, error)

func TenantCertificateSource added in v0.0.4

func TenantCertificateSource(client iam.Client, tenantId string) api.TokenAndCertificateSource

func TenantTokenSource added in v0.0.4

func TenantTokenSource(client iam.Client, tenantId string) api.TokenAndCertificateSource

Types

type TokenClaims

type TokenClaims struct {
	jwt.RegisteredClaims

	TenantID      string `json:"tenant_id"`
	InstanceID    string `json:"instance_id"`
	OwnerID       string `json:"owner_id"`
	PrimaryRegion string `json:"primary_region"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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