oidc

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider interface {
	Sign(subject string, duration time.Duration) (string, error)
	PublicJWKs() []PublicJWK
}

func NewProviderFromKeyDir

func NewProviderFromKeyDir(keysPath string) (Provider, error)

type PublicJWK

type PublicJWK struct {
	Kty string `json:"kty"`
	Use string `json:"use"`
	Alg string `json:"alg"`
	Kid string `json:"kid"`
	N   string `json:"n"`
	E   string `json:"e"`
}

type RSAProvider

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

func (*RSAProvider) PublicJWKs

func (s *RSAProvider) PublicJWKs() []PublicJWK

func (*RSAProvider) Sign

func (s *RSAProvider) Sign(subject string, duration time.Duration) (string, error)

Jump to

Keyboard shortcuts

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