Help us shape the future of Go! Take the 2026 Go Developer Survey

consentpolicy

package
v0.56.0 Latest Latest
Warning

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

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

Documentation

Overview

Package consentpolicy validates the syntax, registration eligibility predicates, and deployment prerequisites for administrator consent preauthorization.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsBackChannelOnlyClient

func IsBackChannelOnlyClient(client fosite.Client) bool

IsBackChannelOnlyClient reports whether client has no interactive /authorize flow, using the same explicit marker and metadata-shape exclusions at startup and runtime.

func IsEligibleClient

func IsEligibleClient(client fosite.Client) bool

IsEligibleClient reports whether client supports ToolHive's interactive authorization-code flow and can be preauthorized to skip its consent page.

func Validate

func Validate(clientIDs []string, authorizationBase, issuer string, upstreamCount int) error

Validate checks the configured client IDs and the prerequisites for enabling consent preauthorization. An empty list preserves existing behavior.

Types

This section is empty.

Jump to

Keyboard shortcuts

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