Documentation
¶
Index ¶
- Variables
- type Config
- type Manager
- func (m *Manager) IsRevoked(ctx context.Context, tokenOrID string) (bool, error)
- func (m *Manager) NewState(ctx context.Context, subject string) (string, error)
- func (m *Manager) RevokeToken(ctx context.Context, tokenOrID string, ttl time.Duration) error
- func (m *Manager) VerifyState(ctx context.Context, state string) (string, error)
- type Option
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrStateMismatch = errors.New("oauth state mismatch")
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager(rdb redis.UniversalClient, cfg Config, opts ...Option) *Manager
func (*Manager) RevokeToken ¶
Click to show internal directories.
Click to hide internal directories.