auth

package
v0.68.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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 ClientTokenRefresher added in v0.23.0

func ClientTokenRefresher(s Session)

func CookieValue

func CookieValue(key, value string) runtime.ClientAuthInfoWriter

func Error

func RefreshTokenScheduler added in v0.23.0

func RefreshTokenScheduler(session Session, loginType string)

func UserTokenRefresher added in v0.23.0

func UserTokenRefresher(s Session)

Types

type ConfigRepositoryImpl added in v0.26.0

type ConfigRepositoryImpl struct {
	ClientId     string
	ClientSecret string
	BaseUrl      string
}

func DefaultConfigRepositoryImpl added in v0.26.0

func DefaultConfigRepositoryImpl() *ConfigRepositoryImpl

func (*ConfigRepositoryImpl) GetClientId added in v0.26.0

func (c *ConfigRepositoryImpl) GetClientId() string

func (*ConfigRepositoryImpl) GetClientSecret added in v0.26.0

func (c *ConfigRepositoryImpl) GetClientSecret() string

func (*ConfigRepositoryImpl) GetJusticeBaseUrl added in v0.26.0

func (c *ConfigRepositoryImpl) GetJusticeBaseUrl() string

type OAuth20RefreshService added in v0.21.0

type OAuth20RefreshService struct {
	Client           *iamclient.JusticeIamService
	ConfigRepository repository.ConfigRepository
	Token            repository.TokenRepository
}

type ObservableTokenRepositoryImpl added in v0.67.0

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

func DefaultObservableTokenRepositoryImpl added in v0.67.0

func DefaultObservableTokenRepositoryImpl(tokenRepo repository.TokenRepository) *ObservableTokenRepositoryImpl

DefaultObservableTokenRepositoryImpl initializes a new ObservableTokenRepositoryImpl instance

func (*ObservableTokenRepositoryImpl) GetAccessToken added in v0.67.0

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

Implement TokenRepository methods for ObservableTokenRepositoryImpl

func (*ObservableTokenRepositoryImpl) RegisterObserver added in v0.67.0

func (*ObservableTokenRepositoryImpl) SetAccessToken added in v0.67.0

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

func (*ObservableTokenRepositoryImpl) UnregisterObserver added in v0.67.0

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

type RefreshTokenImpl added in v0.21.0

type RefreshTokenImpl struct {
	RefreshRate         float64
	AutoRefresh         bool
	IsRefreshInProgress bool
}

func DefaultRefreshTokenImpl added in v0.21.0

func DefaultRefreshTokenImpl() *RefreshTokenImpl

func (*RefreshTokenImpl) DisableAutoRefresh added in v0.21.0

func (r *RefreshTokenImpl) DisableAutoRefresh() bool

func (*RefreshTokenImpl) GetRefreshRate added in v0.21.0

func (r *RefreshTokenImpl) GetRefreshRate() float64

func (*RefreshTokenImpl) SetRefreshIsRunningInBackground added in v0.23.0

func (r *RefreshTokenImpl) SetRefreshIsRunningInBackground(b bool)

type Session added in v0.21.0

type TokenRepositoryImpl added in v0.26.0

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

func DefaultTokenRepositoryImpl added in v0.26.0

func DefaultTokenRepositoryImpl() *TokenRepositoryImpl

func (*TokenRepositoryImpl) GetToken added in v0.26.0

func (*TokenRepositoryImpl) RemoveToken added in v0.26.0

func (t *TokenRepositoryImpl) RemoveToken() error

func (*TokenRepositoryImpl) Store added in v0.26.0

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

func (*TokenRepositoryImpl) TokenIssuedTimeUTC added in v0.26.0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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