auth

package
v0.1.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: MIT Imports: 12 Imported by: 28

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthInfoWriter

func AuthInfoWriter(s Session, outerValues [][]string, key string) runtime.ClientAuthInfoWriter

AuthInfoWriter called by the existing security from the wrapper

func Basic

func Basic(username, password string) runtime.ClientAuthInfoWriter

func Bearer

func Bearer(token string) runtime.ClientAuthInfoWriter

func CookieValue

func CookieValue(key, value string) runtime.ClientAuthInfoWriter

func Error

Types

type ConfigRepositoryImpl

type ConfigRepositoryImpl struct {
	ClientId     string
	ClientSecret string
	BaseUrl      string
}

func DefaultConfigRepositoryImpl

func DefaultConfigRepositoryImpl() *ConfigRepositoryImpl

func (*ConfigRepositoryImpl) GetClientId

func (c *ConfigRepositoryImpl) GetClientId() string

func (*ConfigRepositoryImpl) GetClientSecret

func (c *ConfigRepositoryImpl) GetClientSecret() string

func (*ConfigRepositoryImpl) GetJusticeBaseUrl

func (c *ConfigRepositoryImpl) GetJusticeBaseUrl() string

type RefreshTokenImpl

type RefreshTokenImpl struct {
	RefreshRate         float64
	AutoRefresh         bool
	IsRefreshInProgress bool
}

func DefaultRefreshTokenImpl

func DefaultRefreshTokenImpl() *RefreshTokenImpl

func (*RefreshTokenImpl) DisableAutoRefresh

func (r *RefreshTokenImpl) DisableAutoRefresh() bool

func (*RefreshTokenImpl) GetRefreshRate

func (r *RefreshTokenImpl) GetRefreshRate() float64

func (*RefreshTokenImpl) SetRefreshIsRunningInBackground

func (r *RefreshTokenImpl) SetRefreshIsRunningInBackground(b bool)

type RefreshTokenScheduler

type RefreshTokenScheduler interface {
	Start(session Session, loginType string)
}

type TokenRepositoryImpl

type TokenRepositoryImpl struct {
	IssuedTime  *time.Time
	AccessToken *iamclientmodels.OauthmodelTokenResponseV3
	// contains filtered or unexported fields
}

func DefaultTokenRepositoryImpl

func DefaultTokenRepositoryImpl() *TokenRepositoryImpl

func (*TokenRepositoryImpl) GetToken

func (*TokenRepositoryImpl) RemoveToken

func (t *TokenRepositoryImpl) RemoveToken() error

func (*TokenRepositoryImpl) Store

func (t *TokenRepositoryImpl) Store(accessToken interface{}) error

func (*TokenRepositoryImpl) TokenIssuedTimeUTC

func (t *TokenRepositoryImpl) TokenIssuedTimeUTC() time.Time

Directories

Path Synopsis
validator module

Jump to

Keyboard shortcuts

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