Documentation ¶
Index ¶
- func AuthInfoWriter(s Session, outerValues [][]string, key string) runtime.ClientAuthInfoWriter
- func Basic(username, password string) runtime.ClientAuthInfoWriter
- func Bearer(token string) runtime.ClientAuthInfoWriter
- func ConfigRepo(s Session) runtime.ClientAuthInfoWriter
- func Cookie(s Session, key string) runtime.ClientAuthInfoWriter
- func CookieValue(key, value string) runtime.ClientAuthInfoWriter
- func Error(err error) runtime.ClientAuthInfoWriter
- func TokenRepo(s Session) runtime.ClientAuthInfoWriter
- type ConfigRepositoryImpl
- type ExtendedDefaultConfigRepositoryImpl
- type ObservableTokenRepositoryImpl
- func (o *ObservableTokenRepositoryImpl) GetAccessToken() (string, error)
- func (o *ObservableTokenRepositoryImpl) RegisterObserver(observer repository.TokenRepositoryObserver) bool
- func (o *ObservableTokenRepositoryImpl) SetAccessToken(token interface{}) error
- func (o *ObservableTokenRepositoryImpl) UnregisterObserver(observer repository.TokenRepositoryObserver) bool
- type RefreshTokenImpl
- type RefreshTokenScheduler
- type Session
- type TokenRepositoryImpl
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 ConfigRepo ¶
func ConfigRepo(s Session) runtime.ClientAuthInfoWriter
func CookieValue ¶
func CookieValue(key, value string) runtime.ClientAuthInfoWriter
func Error ¶
func Error(err error) runtime.ClientAuthInfoWriter
func TokenRepo ¶
func TokenRepo(s Session) runtime.ClientAuthInfoWriter
Types ¶
type ConfigRepositoryImpl ¶
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 (o *ObservableTokenRepositoryImpl) RegisterObserver(observer repository.TokenRepositoryObserver) bool
func (*ObservableTokenRepositoryImpl) SetAccessToken ¶
func (o *ObservableTokenRepositoryImpl) SetAccessToken(token interface{}) error
func (*ObservableTokenRepositoryImpl) UnregisterObserver ¶
func (o *ObservableTokenRepositoryImpl) UnregisterObserver(observer repository.TokenRepositoryObserver) bool
type RefreshTokenImpl ¶
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 Session ¶
type Session struct { Token repository.TokenRepository Config repository.ConfigRepository Refresh repository.RefreshTokenRepository }
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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.