Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessToken ¶
type AccessToken struct { Id primitive.ObjectID `bson:"_id,omitempty"` Signature string `bson:"signature,omitempty"` ProviderName string `bson:"provider_name,omitempty"` ProviderVersion string `bson:"provider_version,omitempty"` Scope primitive.ObjectID `bson:"scope_id,omitempty"` Identities []string `bson:"identities,omitempty"` EndAt time.Time `bson:"end_at,omitempty"` Params map[string]interface{} `bson:"params"` CreatedAt time.Time `bson:"created_at,omitempty"` UpdatedAt time.Time `bson:"updated_at,omitempty"` }
type AccessTokensRepository ¶
type AccessTokensRepository interface { CreateAccessToken(accessToken *AccessToken) (string, error) GetAccessToken(token string) (*AccessToken, error) GetAccessTokenFromScope(scopeIdHex string) *[]AccessToken ListExpiredAccessToken() *[]AccessToken DeleteAccessToken(accessToken *AccessToken) }
func GetAccessTokensRepository ¶
func GetAccessTokensRepository() AccessTokensRepository
Click to show internal directories.
Click to hide internal directories.