jwt

package
v0.0.0-...-92dd6e1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Package jwt provides JWT token authentication for Bifrost. It supports JWKS-based key discovery and static key configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

type Authenticator struct {
	// contains filtered or unexported fields
}

Authenticator provides JWT token authentication.

func (*Authenticator) Authenticate

func (a *Authenticator) Authenticate(ctx context.Context, username, password string) (*auth.UserInfo, error)

Authenticate validates a JWT token. The username parameter is ignored; the password parameter should contain the JWT.

func (*Authenticator) Close

func (a *Authenticator) Close() error

Close stops background tasks. Safe to call multiple times.

func (*Authenticator) Name

func (a *Authenticator) Name() string

Name returns the authenticator name.

func (*Authenticator) Type

func (a *Authenticator) Type() string

Type returns the authenticator type.

Jump to

Keyboard shortcuts

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