oidc

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2025 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTool

func NewTool(c Client, opts contract.ToolOptions[Client]) *defaultTool

Types

type Blackbox

type Blackbox interface {
	// contains filtered or unexported methods
}

type Client

type Client interface {
	Blackbox
	AuthenticateOIDCToken(ctx context.Context, r *http.Request, headerKey, expectedAudience, expectedIssuer string) (*structcup.AuthResponse, error)
	AuthenticateOIDCTokenWithPrefix(ctx context.Context, r *http.Request, headerKey, prefix, expectedAudience, expectedIssuer string) (*structcup.AuthResponse, error)
	CreateOIDCToken(ctx context.Context, fsys fs.ReadFileFS, credentialsPath string, audience string) (*oauth2.Token, error)
}

func NewClient

func NewClient(fr contract.FSysFileReader) (Client, error)

Jump to

Keyboard shortcuts

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