auth

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: MIT Imports: 11 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 OAuth20RefreshService added in v0.21.0

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

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

Jump to

Keyboard shortcuts

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