auth

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TokenIssuedTime time.Time
)

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

func Refresher added in v0.21.0

Types

type OAuth20RefreshService added in v0.21.0

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

type RefreshTokenImpl added in v0.21.0

type RefreshTokenImpl struct {
	RefreshRate float64
	AutoRefresh 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) GetExpiresIn added in v0.21.0

func (r *RefreshTokenImpl) GetExpiresIn(accessToken iamclientmodels.OauthmodelTokenResponseV3) *int32

func (*RefreshTokenImpl) GetRefreshExpiresIn added in v0.21.0

func (r *RefreshTokenImpl) GetRefreshExpiresIn(accessToken iamclientmodels.OauthmodelTokenResponseV3) (*int32, error)

func (*RefreshTokenImpl) GetRefreshRate added in v0.21.0

func (r *RefreshTokenImpl) GetRefreshRate() float64

func (*RefreshTokenImpl) GetRefreshToken added in v0.21.0

func (r *RefreshTokenImpl) GetRefreshToken() (string, error)

func (*RefreshTokenImpl) GetSecondsTillExpiry added in v0.21.0

func (*RefreshTokenImpl) HasRefreshTokenExpired added in v0.21.0

func (r *RefreshTokenImpl) HasRefreshTokenExpired(accessToken iamclientmodels.OauthmodelTokenResponseV3) bool

func (*RefreshTokenImpl) HasToken added in v0.21.0

func (*RefreshTokenImpl) HasTokenExpired added in v0.21.0

func (r *RefreshTokenImpl) HasTokenExpired(accessToken iamclientmodels.OauthmodelTokenResponseV3) bool

func (*RefreshTokenImpl) RemoveRefreshToken added in v0.21.0

func (r *RefreshTokenImpl) RemoveRefreshToken() error

func (*RefreshTokenImpl) StoreRefreshToken added in v0.21.0

func (r *RefreshTokenImpl) StoreRefreshToken(accessToken iamclientmodels.OauthmodelTokenResponseV3) error

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