okta

package
v0.0.0-...-39de395 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUserManager

func NewUserManager(opts CreationOptions) (gimlet.UserManager, error)

NewUserManager creates a manager that connects to Okta for user management services.

Types

type CreationOptions

type CreationOptions struct {
	ClientID     string
	ClientSecret string
	RedirectURI  string
	Issuer       string

	UserGroup string
	// If set, user can be reauthorized without needing to authenticate.
	AllowReauthorization bool
	// If set, authentication and reauthorization will validate the group for
	// the user matches UserGroup. Otherwise, it simply checks that the user
	// attempting to reauthorize has the same name as that returned by the ID
	// token.
	ValidateGroups bool

	CookiePath   string
	CookieDomain string
	CookieTTL    time.Duration

	LoginCookieName string
	LoginCookieTTL  time.Duration

	UserCache     usercache.Cache
	ExternalCache *usercache.ExternalOptions

	GetHTTPClient func() *http.Client
	PutHTTPClient func(*http.Client)

	// ReconciliateID is only used for the purposes of reconciliating existing
	// user IDs with their Okta IDs.
	ReconciliateID func(id string) (newID string)
}

CreationOptions specify the options to create the manager.

func (*CreationOptions) Validate

func (opts *CreationOptions) Validate() error

Jump to

Keyboard shortcuts

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