Versions in this module Expand all Collapse all v0 v0.1.0 Aug 1, 2026 Changes in this version + func FromContext(ctx context.Context) (*output.ValidateOutputBody, bool) + func GetToken() (*output.CreateTokenOutputBody, error) + func Init(opts ...Option) error + func Middleware(next http.Handler) http.Handler + func VerifyToken(token string) (*output.ValidateOutputBody, error) + type ClientCredentialsDecorator struct + func NewClientCredentialsDecorator(clientID, clientSecret string) *ClientCredentialsDecorator + func (decorator *ClientCredentialsDecorator) Decorate(r *http.Request) error + type Config struct + BaseURL string + CredLoader Loader + Credentials *Credentials + Logger *slog.Logger + type Credentials struct + ClientID string + ClientSecret string + func NewCredentials(clientID, clientSecret string) *Credentials + type Decorator interface + Decorate func(r *http.Request) error + type ErrMissingRequiredConfig struct + Field string + func (err *ErrMissingRequiredConfig) Error() string + type Loader interface + Load func() (*Credentials, error) + type Option func(*Config) + func WithBaseURL(url string) Option + func WithLoader(l Loader) Option + func WithLogger(logger *slog.Logger) Option