Documentation ¶
Index ¶
- Variables
- 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 Refresher(s Session) (*iamclientmodels.OauthmodelTokenResponseV3, error)
- func TokenRepo(s Session) runtime.ClientAuthInfoWriter
- type OAuth20RefreshService
- type RefreshTokenImpl
- func (r *RefreshTokenImpl) DisableAutoRefresh() bool
- func (r *RefreshTokenImpl) GetExpiresIn(accessToken iamclientmodels.OauthmodelTokenResponseV3) *int32
- func (r *RefreshTokenImpl) GetRefreshExpiresIn(accessToken iamclientmodels.OauthmodelTokenResponseV3) (*int32, error)
- func (r *RefreshTokenImpl) GetRefreshRate() float64
- func (r *RefreshTokenImpl) GetRefreshToken() (string, error)
- func (r *RefreshTokenImpl) GetSecondsTillExpiry(token iamclientmodels.OauthmodelTokenResponseV3) time.Duration
- func (r *RefreshTokenImpl) HasRefreshTokenExpired(accessToken iamclientmodels.OauthmodelTokenResponseV3) bool
- func (r *RefreshTokenImpl) HasToken(accessToken iamclientmodels.OauthmodelTokenResponseV3) bool
- func (r *RefreshTokenImpl) HasTokenExpired(accessToken iamclientmodels.OauthmodelTokenResponseV3) bool
- func (r *RefreshTokenImpl) RemoveRefreshToken() error
- func (r *RefreshTokenImpl) StoreRefreshToken(accessToken iamclientmodels.OauthmodelTokenResponseV3) error
- type Session
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 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 Refresher ¶ added in v0.21.0
func Refresher(s Session) (*iamclientmodels.OauthmodelTokenResponseV3, error)
func TokenRepo ¶
func TokenRepo(s Session) runtime.ClientAuthInfoWriter
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
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 (r *RefreshTokenImpl) GetSecondsTillExpiry(token iamclientmodels.OauthmodelTokenResponseV3) time.Duration
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 (r *RefreshTokenImpl) HasToken(accessToken iamclientmodels.OauthmodelTokenResponseV3) bool
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
type Session struct { Token repository.TokenRepository Config repository.ConfigRepository Refresh repository.RefreshTokenRepository }
Click to show internal directories.
Click to hide internal directories.