auth

package
v0.1.0-alpha.5 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: MIT Imports: 11 Imported by: 33

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 ExtendedDefaultConfigRepositoryImpl

type ExtendedDefaultConfigRepositoryImpl struct {
	ConfigRepositoryImpl
	// contains filtered or unexported fields
}

func ExtendedDefaultConfigRepository

func ExtendedDefaultConfigRepository() *ExtendedDefaultConfigRepositoryImpl

func (*ExtendedDefaultConfigRepositoryImpl) GetCustomBasePath

func (c *ExtendedDefaultConfigRepositoryImpl) GetCustomBasePath(servicePath string) string

type ObservableTokenRepositoryImpl

type ObservableTokenRepositoryImpl struct {
	Observers []repository.TokenRepositoryObserver
	TokenRepo repository.TokenRepository
}

func DefaultObservableTokenRepositoryImpl

func DefaultObservableTokenRepositoryImpl(tokenRepo repository.TokenRepository) *ObservableTokenRepositoryImpl

DefaultObservableTokenRepositoryImpl initializes a new ObservableTokenRepositoryImpl instance

func (*ObservableTokenRepositoryImpl) GetAccessToken

func (o *ObservableTokenRepositoryImpl) GetAccessToken() (string, error)

Implement TokenRepository methods for ObservableTokenRepositoryImpl

func (*ObservableTokenRepositoryImpl) RegisterObserver

func (*ObservableTokenRepositoryImpl) SetAccessToken

func (o *ObservableTokenRepositoryImpl) SetAccessToken(token interface{}) error

func (*ObservableTokenRepositoryImpl) UnregisterObserver

func (o *ObservableTokenRepositoryImpl) UnregisterObserver(observer repository.TokenRepositoryObserver) bool

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 *repository.Token
	// contains filtered or unexported fields
}

func DefaultTokenRepositoryImpl

func DefaultTokenRepositoryImpl() *TokenRepositoryImpl

func (*TokenRepositoryImpl) GetToken

func (t *TokenRepositoryImpl) GetToken() (*repository.Token, error)

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