Versions in this module Expand all Collapse all v4 v4.0.0 May 22, 2020 Changes in this version + func NewFileTokenStore(filename string) (oauth2.TokenStore, error) + func NewMemoryTokenStore() (oauth2.TokenStore, error) + type ClientStore struct + func NewClientStore() *ClientStore + func (cs *ClientStore) GetByID(ctx context.Context, id string) (oauth2.ClientInfo, error) + func (cs *ClientStore) Set(id string, cli oauth2.ClientInfo) (err error) + type TokenStore struct + func (ts *TokenStore) Create(ctx context.Context, info oauth2.TokenInfo) error + func (ts *TokenStore) GetByAccess(ctx context.Context, access string) (oauth2.TokenInfo, error) + func (ts *TokenStore) GetByCode(ctx context.Context, code string) (oauth2.TokenInfo, error) + func (ts *TokenStore) GetByRefresh(ctx context.Context, refresh string) (oauth2.TokenInfo, error) + func (ts *TokenStore) RemoveByAccess(ctx context.Context, access string) error + func (ts *TokenStore) RemoveByCode(ctx context.Context, code string) error + func (ts *TokenStore) RemoveByRefresh(ctx context.Context, refresh string) error Other modules containing this package gopkg.in/oauth2.v2 gopkg.in/oauth2.v3