Documentation ¶
Overview ¶
Package okta contains the Okta directory provider.
Index ¶
Constants ¶
View Source
const Name = "okta"
Name is the provider name.
Variables ¶
View Source
var ( ErrAPIKeyRequired = errors.New("okta: api_key is required") ErrServiceAccountNotDefined = errors.New("okta: service account not defined") ErrProviderURLNotDefined = errors.New("okta: provider url not defined") )
Errors.
Functions ¶
This section is empty.
Types ¶
type APIError ¶ added in v0.11.0
type APIError struct { HTTPStatusCode int Body string ErrorCode string `json:"errorCode"` ErrorSummary string `json:"errorSummary"` ErrorLink string `json:"errorLink"` ErrorID string `json:"errorId"` ErrorCauses []string `json:"errorCauses"` }
An APIError is an error from the okta API.
type Option ¶
type Option func(cfg *config)
An Option configures the Okta Provider.
func WithBatchSize ¶
WithBatchSize sets the batch size option.
func WithHTTPClient ¶
WithHTTPClient sets the http client option.
func WithProviderURL ¶
WithProviderURL sets the provider URL option.
func WithServiceAccount ¶
func WithServiceAccount(serviceAccount *ServiceAccount) Option
WithServiceAccount sets the service account option.
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
A Provider is an Okta user group directory provider.
type ServiceAccount ¶
type ServiceAccount struct {
APIKey string `json:"api_key"`
}
A ServiceAccount is used by the Okta provider to query the API.
func ParseServiceAccount ¶
func ParseServiceAccount(rawServiceAccount string) (*ServiceAccount, error)
ParseServiceAccount parses the service account in the config options.
Click to show internal directories.
Click to hide internal directories.