Documentation ¶
Index ¶
- Constants
- type MongoStorage
- func (store *MongoStorage) GetClient(id string) (*osin.Client, error)
- func (store *MongoStorage) LoadAccess(token string) (*osin.AccessData, error)
- func (store *MongoStorage) LoadAuthorize(code string) (*osin.AuthorizeData, error)
- func (store *MongoStorage) LoadRefresh(token string) (*osin.AccessData, error)
- func (store *MongoStorage) RemoveAccess(token string) error
- func (store *MongoStorage) RemoveAuthorize(code string) error
- func (store *MongoStorage) RemoveRefresh(token string) error
- func (store *MongoStorage) SaveAccess(data *osin.AccessData) error
- func (store *MongoStorage) SaveAuthorize(data *osin.AuthorizeData) error
- func (store *MongoStorage) SetClient(id string, client *osin.Client) error
Constants ¶
View Source
const ( CLIENT_COL = "clients" AUTHORIZE_COL = "authorizations" ACCESS_COL = "accesses" )
collection names for the entities
View Source
const REFRESHTOKEN = "refreshtoken"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoStorage ¶
type MongoStorage struct {
// contains filtered or unexported fields
}
func (*MongoStorage) GetClient ¶
func (store *MongoStorage) GetClient(id string) (*osin.Client, error)
func (*MongoStorage) LoadAccess ¶
func (store *MongoStorage) LoadAccess(token string) (*osin.AccessData, error)
func (*MongoStorage) LoadAuthorize ¶
func (store *MongoStorage) LoadAuthorize(code string) (*osin.AuthorizeData, error)
func (*MongoStorage) LoadRefresh ¶
func (store *MongoStorage) LoadRefresh(token string) (*osin.AccessData, error)
func (*MongoStorage) RemoveAccess ¶
func (store *MongoStorage) RemoveAccess(token string) error
func (*MongoStorage) RemoveAuthorize ¶
func (store *MongoStorage) RemoveAuthorize(code string) error
func (*MongoStorage) RemoveRefresh ¶
func (store *MongoStorage) RemoveRefresh(token string) error
func (*MongoStorage) SaveAccess ¶
func (store *MongoStorage) SaveAccess(data *osin.AccessData) error
func (*MongoStorage) SaveAuthorize ¶
func (store *MongoStorage) SaveAuthorize(data *osin.AuthorizeData) error
Click to show internal directories.
Click to hide internal directories.