okta

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyfuncProvider

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

KeyfuncProvider implements the keyfunc.KeyfuncProvider and generates JWT validating functions for Okta tokens.

func NewKeyfuncProvider

func NewKeyfuncProvider(mp metadata.Provider, options ...Option) *KeyfuncProvider

NewKeyfuncProvider creates a new KeyfuncProvider.

func (*KeyfuncProvider) GetKeyfunc

func (kp *KeyfuncProvider) GetKeyfunc(ctx context.Context) (jwt.Keyfunc, error)

GetKeyfunc gets a jwt.Keyfunc based on the OIDC metadata.

type Option

type Option func(*Options)

Option for the KeyfuncProvider

func WithCacheTtl

func WithCacheTtl(ttl time.Duration) Option

WithCacheTtl specifies the TTL on the Okta JWK set.

func WithHttpClient

func WithHttpClient(httpClient *http.Client) Option

WithHttpClient allows for a configurable http client.

type Options

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

Options are configurable options for the KeyfuncProvider.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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