Documentation ¶
Index ¶
- type SQLStorage
- func (store *SQLStorage) Clone() osin.Storage
- func (store *SQLStorage) Close()
- func (store *SQLStorage) GetClient(id string) (osin.Client, error)
- func (store *SQLStorage) LoadAccess(token string) (*osin.AccessData, error)
- func (store *SQLStorage) LoadAuthorize(code string) (*osin.AuthorizeData, error)
- func (store *SQLStorage) LoadRefresh(token string) (*osin.AccessData, error)
- func (store *SQLStorage) RemoveAccess(token string) error
- func (store *SQLStorage) RemoveAuthorize(code string) error
- func (store *SQLStorage) RemoveClient(id string) error
- func (store *SQLStorage) RemoveRefresh(token string) error
- func (store *SQLStorage) SaveAccess(accessData *osin.AccessData) error
- func (store *SQLStorage) SaveAuthorize(authorizeData *osin.AuthorizeData) error
- func (store *SQLStorage) SetClient(client osin.Client) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SQLStorage ¶
type SQLStorage struct {
// contains filtered or unexported fields
}
func NewSQLStorage ¶
func NewSQLStorage(authDB *sql.DB) *SQLStorage
func (*SQLStorage) Clone ¶
func (store *SQLStorage) Clone() osin.Storage
func (*SQLStorage) Close ¶
func (store *SQLStorage) Close()
func (*SQLStorage) LoadAccess ¶
func (store *SQLStorage) LoadAccess(token string) (*osin.AccessData, error)
func (*SQLStorage) LoadAuthorize ¶
func (store *SQLStorage) LoadAuthorize(code string) (*osin.AuthorizeData, error)
func (*SQLStorage) LoadRefresh ¶
func (store *SQLStorage) LoadRefresh(token string) (*osin.AccessData, error)
func (*SQLStorage) RemoveAccess ¶
func (store *SQLStorage) RemoveAccess(token string) error
func (*SQLStorage) RemoveAuthorize ¶
func (store *SQLStorage) RemoveAuthorize(code string) error
func (*SQLStorage) RemoveClient ¶
func (store *SQLStorage) RemoveClient(id string) error
func (*SQLStorage) RemoveRefresh ¶
func (store *SQLStorage) RemoveRefresh(token string) error
func (*SQLStorage) SaveAccess ¶
func (store *SQLStorage) SaveAccess(accessData *osin.AccessData) error
func (*SQLStorage) SaveAuthorize ¶
func (store *SQLStorage) SaveAuthorize(authorizeData *osin.AuthorizeData) error
Click to show internal directories.
Click to hide internal directories.