handler

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package handler implements the TokenEngine gRPC service handlers. All RPC handlers are Unimplemented stubs in v0.1 — real implementations begin in v0.2. It does not own observability wiring or interceptor chain assembly. Primary dependency: gen/v1 for the generated TokenEngineServer interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TokenHandler

type TokenHandler struct {
	tokenv1.UnimplementedTokenEngineServer
	// contains filtered or unexported fields
}

TokenHandler implements the TokenEngine gRPC service.

func NewTokenHandler

func NewTokenHandler(
	registry registry.TenantRegistry,
	logger observability.Logger,
	tracer observability.Tracer,
	metrics observability.Metrics,
) *TokenHandler

NewTokenHandler returns a new TokenHandler wired with the given dependencies.

func (*TokenHandler) IssueToken

IssueToken issues a new access/refresh token pair for the requesting tenant.

func (*TokenHandler) RefreshToken

RefreshToken issues a new access token using a valid refresh token.

func (*TokenHandler) RevokeAllForAudience

RevokeAllForAudience revokes all tokens for an audience. Unimplemented in v0.2.

func (*TokenHandler) RevokeAllUserTokens

func (h *TokenHandler) RevokeAllUserTokens(ctx context.Context, req *tokenv1.RevokeUserRequest) (*tokenv1.RevokeTokenResponse, error)

RevokeAllUserTokens revokes all tokens for a user. Unimplemented in v0.2.

func (*TokenHandler) RevokeToken

RevokeToken revokes a specific token. Unimplemented in v0.2.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL