Documentation ¶
Overview ¶
Copyright (c) 2021 AccelByte Inc. All Rights Reserved. This is licensed software from AccelByte Inc, for limitations and restrictions contact your company contract manager.
Index ¶
- func ConvertInterfaceToModel(tokenInterface interface{}) (*iamclientmodels.OauthmodelTokenResponseV3, error)
- func GetExpiresIn(repository TokenRepository) (*int32, error)
- func GetRefreshExpiresIn(repository TokenRepository) (int32, error)
- func GetRefreshToken(repository TokenRepository) (string, error)
- func GetSecondsTillExpiry(repository TokenRepository, refreshRate float64) time.Duration
- func GetSecondsTillExpiryRefresh(repository TokenRepository, refreshRate float64) time.Duration
- func HasRefreshTokenExpired(repository TokenRepository, refreshRate float64) bool
- func HasToken(repository TokenRepository) bool
- func HasTokenExpired(repository TokenRepository, refreshRate float64) bool
- type ConfigRepository
- type ObservableTokenRepository
- type RefreshTokenRepository
- type TokenRepository
- type TokenRepositoryObserver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertInterfaceToModel ¶ added in v0.26.0
func ConvertInterfaceToModel(tokenInterface interface{}) (*iamclientmodels.OauthmodelTokenResponseV3, error)
func GetExpiresIn ¶ added in v0.23.0
func GetExpiresIn(repository TokenRepository) (*int32, error)
func GetRefreshExpiresIn ¶ added in v0.23.0
func GetRefreshExpiresIn(repository TokenRepository) (int32, error)
func GetRefreshToken ¶ added in v0.23.0
func GetRefreshToken(repository TokenRepository) (string, error)
func GetSecondsTillExpiry ¶ added in v0.23.0
func GetSecondsTillExpiry(repository TokenRepository, refreshRate float64) time.Duration
func GetSecondsTillExpiryRefresh ¶ added in v0.23.0
func GetSecondsTillExpiryRefresh(repository TokenRepository, refreshRate float64) time.Duration
func HasRefreshTokenExpired ¶ added in v0.23.0
func HasRefreshTokenExpired(repository TokenRepository, refreshRate float64) bool
func HasToken ¶ added in v0.23.0
func HasToken(repository TokenRepository) bool
func HasTokenExpired ¶ added in v0.23.0
func HasTokenExpired(repository TokenRepository, refreshRate float64) bool
Types ¶
type ConfigRepository ¶
type ObservableTokenRepository ¶ added in v0.67.0
type ObservableTokenRepository interface { TokenRepository RegisterObserver(observer *TokenRepositoryObserver) bool UnregisterObserver(observer *TokenRepositoryObserver) bool }
type RefreshTokenRepository ¶ added in v0.21.0
type TokenRepository ¶
type TokenRepository interface { Store(accessToken interface{}) error GetToken() (*iamclientmodels.OauthmodelTokenResponseV3, error) RemoveToken() error TokenIssuedTimeUTC() time.Time }
type TokenRepositoryObserver ¶ added in v0.67.0
Click to show internal directories.
Click to hide internal directories.