Documentation
¶
Overview ¶
Package revocation implements the OAuth 2.0 Token Revocation endpoint plugin.
It handles POST /revoke (RFC 7009 §2), allowing clients to invalidate access tokens and refresh tokens.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidRefreshToken = errors.New("invalid refresh token")
ErrInvalidRefreshToken is a sentinel error for invalid refresh tokens.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Store storm.RevocationStore
ClientStore storm.ClientStore
Crypto storm.UniCrypto
KeyStore protocol.KeyStore
}
Config holds the dependencies for the Revocation plugin.
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin implements the Token Revocation endpoint.
func New ¶
func New(ctx *storm.PluginContext) *Plugin
New creates a new Revocation plugin from a PluginContext.
func NewWithConfig ¶
NewWithConfig creates a new Revocation plugin with explicit config.
func (*Plugin) Category ¶
func (p *Plugin) Category() storm.PluginCategory
Category returns CategoryStandard — revocation is optional but enabled by default.
func (*Plugin) Contribute ¶
func (p *Plugin) Contribute(ctx context.Context, cfg *protocol.DiscoveryConfiguration)
Contribute returns the discovery fields for the revocation endpoint.
Click to show internal directories.
Click to hide internal directories.