oidc

package
v0.0.0-...-10f63a9 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2025 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadAuthenticationConfiguration

func LoadAuthenticationConfiguration(
	ctx context.Context,
	scheme *runtime.Scheme,
	configuration []byte,
	signer *Signer,
	certificateAuthority string,
) (authenticator.Token, string, error)

Types

type Signer

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

func NewSigner

func NewSigner(privateKey *ecdsa.PrivateKey, issuer, audience string) *Signer

func NewSignerFromSeed

func NewSignerFromSeed(seed []byte, issuer, audience string) (*Signer, error)

func (*Signer) Algorithm

func (k *Signer) Algorithm() jose.SignatureAlgorithm

func (*Signer) Audience

func (k *Signer) Audience() string

func (*Signer) ID

func (k *Signer) ID() string

func (*Signer) Issuer

func (k *Signer) Issuer() string

func (*Signer) Key

func (k *Signer) Key() any

func (*Signer) KeySet

func (k *Signer) KeySet(context.Context) ([]op.Key, error)

func (*Signer) Register

func (k *Signer) Register(group gin.IRoutes)

func (*Signer) Token

func (k *Signer) Token(
	subject string,
) (string, error)

func (*Signer) Use

func (k *Signer) Use() string

func (*Signer) Validate

func (k *Signer) Validate(token string) error

Jump to

Keyboard shortcuts

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