sts

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Signer

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

func NewSigner

func NewSigner(issuer, keyPEM string, logger *slog.Logger) (*Signer, error)

func (*Signer) Issuer

func (s *Signer) Issuer() string

func (*Signer) JWKS

func (s *Signer) JWKS() map[string]any

func (*Signer) MintClaims

func (s *Signer) MintClaims(claims jwt.MapClaims, ttl time.Duration) (string, error)

type TokenClient

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

func NewTokenClient

func NewTokenClient(client *http.Client) *TokenClient

func (*TokenClient) Call

func (c *TokenClient) Call(ctx context.Context, issuer string, form url.Values) (*appsts.Token, error)

Jump to

Keyboard shortcuts

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