okta

package
v0.18.2-0...-57123b4 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package okta contains the Okta directory provider.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAPIKeyRequired = errors.New("okta: api key is required")
)

Errors

View Source
var (
	ErrInvalidURL = errors.New("okta: invalid URL")
)

errors

Functions

This section is empty.

Types

type Option

type Option func(cfg *config)

An Option configures the Okta Provider.

func WithAPIKey

func WithAPIKey(apiKey string) Option

WithAPIKey sets the api key in the config.

func WithBatchSize

func WithBatchSize(batchSize int) Option

WithBatchSize sets the batch size option.

func WithHTTPClient

func WithHTTPClient(httpClient *http.Client) Option

WithHTTPClient sets the http client option.

func WithLogger

func WithLogger(logger zerolog.Logger) Option

WithLogger sets the logger in the config.

func WithOktaOptions

func WithOktaOptions(oktaOptions ...okta.ConfigSetter) Option

WithOktaOptions sets the okta options in the config.

func WithURL

func WithURL(url string) Option

WithURL sets the URL option.

type Provider

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

A Provider is an Okta user group directory provider.

func New

func New(options ...Option) *Provider

New creates a new Provider.

func (*Provider) GetDirectory

func (p *Provider) GetDirectory(ctx context.Context) ([]directory.Group, []directory.User, error)

GetDirectory gets the full directory information for Okta.

Jump to

Keyboard shortcuts

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