authclaims

package
v1.22.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: Apache-2.0 Imports: 1 Imported by: ? modules, 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 ContextWithAuthClaims

func ContextWithAuthClaims(parent context.Context, claims *AuthClaims) context.Context

ContextWithAuthClaims creates a copy of the parent context with the provided AuthClaims.

func ContextWithSkipAuthzCheck

func ContextWithSkipAuthzCheck(parent context.Context, skipAuthzCheck bool) context.Context

ContextWithSkipAuthzCheck creates a copy of the parent context and attaches whether to skip authz check to.

func SkipAuthzCheckFromContext

func SkipAuthzCheckFromContext(ctx context.Context) bool

SkipAuthzCheckFromContext returns whether the authorize check can be skipped.

Types

type AuthClaims

type AuthClaims struct {
	Subject  string
	Scopes   map[string]bool
	ClientID string
}

AuthClaims contains claims that are included in OIDC standard claims. https://openid.net/specs/openid-connect-core-1_0.html#IDToken

func AuthClaimsFromContext

func AuthClaimsFromContext(ctx context.Context) (*AuthClaims, bool)

AuthClaimsFromContext extracts the AuthClaims from the provided ctx (if any).

Jump to

Keyboard shortcuts

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