repository

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: 2 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigRepository

type ConfigRepository interface {
	GetClientId() string
	GetClientSecret() string
	GetJusticeBaseUrl() string
}

type RefreshTokenRepository added in v0.21.0

type RefreshTokenRepository interface {
	DisableAutoRefresh() bool
	GetExpiresIn(accessToken iamclientmodels.OauthmodelTokenResponseV3) *int32
	GetRefreshExpiresIn(accessToken iamclientmodels.OauthmodelTokenResponseV3) (*int32, error)
	StoreRefreshToken(accessToken iamclientmodels.OauthmodelTokenResponseV3) error
	GetRefreshToken() (string, error)
	GetRefreshRate() float64
	GetSecondsTillExpiry(accessToken iamclientmodels.OauthmodelTokenResponseV3) time.Duration
	HasToken(accessToken iamclientmodels.OauthmodelTokenResponseV3) bool
	HasTokenExpired(accessToken iamclientmodels.OauthmodelTokenResponseV3) bool
	HasRefreshTokenExpired(accessToken iamclientmodels.OauthmodelTokenResponseV3) bool
	RemoveRefreshToken() error
}

type TokenRepository

type TokenRepository interface {
	Store(accessToken iamclientmodels.OauthmodelTokenResponseV3) error
	GetToken() (*iamclientmodels.OauthmodelTokenResponseV3, error)
	RemoveToken() error
}

Jump to

Keyboard shortcuts

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