proxytoken

package
v0.83.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: BSD-3-Clause, AGPL-3.0 Imports: 14 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterEndpoints

func RegisterEndpoints(s store.Store, permissionsManager permissions.Manager, revocationGuard RevocationGuard, router *mux.Router)

RegisterEndpoints registers the proxy token endpoints. revocationGuard is optional; pass nil for no revocation policy.

Types

type RevocationGuard added in v0.81.0

type RevocationGuard interface {
	CheckProxyAccessTokenRevocation(ctx context.Context, token *types.ProxyAccessToken) error
}

RevocationGuard vetoes the tenant-facing revocation of a proxy access token. Implementations are supplied by integrations; none is installed by default, so every token the caller's account owns may be revoked. It is consulted after the ownership check and before the token is revoked. A returned status error is written with util.WriteError: its type selects the HTTP status and its message is shown to the caller, so it must not carry internal detail. Any other error is reported as a generic internal error.

Jump to

Keyboard shortcuts

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