sdk

package
v0.0.0-...-61ee99d Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2020 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ValidAdminRoles = []string{"SUPER_ADMIN", "ORG_ADMIN", "API_ACCESS_MANAGEMENT_ADMIN", "APP_ADMIN", "USER_ADMIN", "MOBILE_ADMIN", "READ_ONLY_ADMIN", "HELP_DESK_ADMIN", "REPORT_ADMIN", "GROUP_MEMBERSHIP_ADMIN"}

Functions

func GetAfterParam

func GetAfterParam(res *okta.Response) string

GetAfterParam grabs after link from link headers if it exists

Types

type ACSSSO

type ACSSSO struct {
	Binding string `json:"binding,omitempty"`
	Type    string `json:"type,omitempty"`
}
type AccountLink struct {
	Action string  `json:"action,omitempty"`
	Filter *Filter `json:"filter,omitempty"`
}

type AddressObj

type AddressObj struct {
	Type  string `json:"type,omitempty"`
	Value string `json:"value,omitempty"`
}

type Algorithms

type Algorithms struct {
	Request  *IDPSignature `json:"request,omitempty"`
	Response *IDPSignature `json:"response,omitempty"`
}

type ApiSupplement

type ApiSupplement struct {
	BaseURL         string
	Client          *http.Client
	Token           string
	RequestExecutor *okta.RequestExecutor
}

ApiSupplement not all APIs are supported by okta-sdk-golang, this will act as a supplement to the Okta SDK

func (*ApiSupplement) ActivateAuthorizationServer

func (m *ApiSupplement) ActivateAuthorizationServer(id string) (*okta.Response, error)

func (*ApiSupplement) ActivateEventHook

func (m *ApiSupplement) ActivateEventHook(id string) (*okta.Response, error)

func (*ApiSupplement) ActivateIdentityProvider

func (m *ApiSupplement) ActivateIdentityProvider(id string) (*okta.Response, error)

func (*ApiSupplement) ActivateInlineHook

func (m *ApiSupplement) ActivateInlineHook(id string) (*okta.Response, error)

func (*ApiSupplement) ActivateRule

func (m *ApiSupplement) ActivateRule(policyId, id string) (*okta.Response, error)

func (*ApiSupplement) AddCustomUserSchemaProperty

func (m *ApiSupplement) AddCustomUserSchemaProperty(schema *UserSubSchema) (*UserSchema, *okta.Response, error)

func (*ApiSupplement) AddIdentityProviderCertificate

func (m *ApiSupplement) AddIdentityProviderCertificate(cert *Certificate) (*SigningKey, *okta.Response, error)

func (*ApiSupplement) AddPropertyMapping

func (m *ApiSupplement) AddPropertyMapping(mappingId string, body Mapping, qp *query.Params) (*Mapping, *okta.Response, error)

func (*ApiSupplement) CreateAdminRole

func (m *ApiSupplement) CreateAdminRole(groupId string, body *Role, qp *query.Params) (*Role, *okta.Response, error)

func (*ApiSupplement) CreateAuthorizationServer

func (m *ApiSupplement) CreateAuthorizationServer(body AuthorizationServer, qp *query.Params) (*AuthorizationServer, *okta.Response, error)

func (*ApiSupplement) CreateAuthorizationServerClaim

func (m *ApiSupplement) CreateAuthorizationServerClaim(authServerId string, body AuthorizationServerClaim, qp *query.Params) (*AuthorizationServerClaim, *okta.Response, error)

func (*ApiSupplement) CreateAuthorizationServerPolicy

func (m *ApiSupplement) CreateAuthorizationServerPolicy(authServerId string, body AuthorizationServerPolicy, qp *query.Params) (*AuthorizationServerPolicy, *okta.Response, error)

func (*ApiSupplement) CreateAuthorizationServerPolicyRule

func (m *ApiSupplement) CreateAuthorizationServerPolicyRule(authServerId, policyId string, body AuthorizationServerPolicyRule, qp *query.Params) (*AuthorizationServerPolicyRule, *okta.Response, error)

func (*ApiSupplement) CreateAuthorizationServerScope

func (m *ApiSupplement) CreateAuthorizationServerScope(authServerId string, body AuthorizationServerScope, qp *query.Params) (*AuthorizationServerScope, *okta.Response, error)

func (*ApiSupplement) CreateEmailTemplate

func (m *ApiSupplement) CreateEmailTemplate(id string, body EmailTemplate, qp *query.Params) (*EmailTemplate, *okta.Response, error)

func (*ApiSupplement) CreateEventHook

func (m *ApiSupplement) CreateEventHook(body EventHook, qp *query.Params) (*EventHook, *okta.Response, error)

func (*ApiSupplement) CreateIdentityProvider

func (m *ApiSupplement) CreateIdentityProvider(body IdentityProvider, qp *query.Params) (IdentityProvider, *okta.Response, error)

func (*ApiSupplement) CreateIdpDiscoveryRule

func (m *ApiSupplement) CreateIdpDiscoveryRule(policyId string, body IdpDiscoveryRule, qp *query.Params) (*IdpDiscoveryRule, *okta.Response, error)

func (*ApiSupplement) CreateInlineHook

func (m *ApiSupplement) CreateInlineHook(body InlineHook, qp *query.Params) (*InlineHook, *okta.Response, error)

func (*ApiSupplement) CreateNetworkZone

func (m *ApiSupplement) CreateNetworkZone(body NetworkZone, qp *query.Params) (*NetworkZone, *okta.Response, error)

func (*ApiSupplement) CreateSmsTemplate

func (m *ApiSupplement) CreateSmsTemplate(body SmsTemplate, qp *query.Params) (*SmsTemplate, *okta.Response, error)

func (*ApiSupplement) DeactivateAuthorizationServer

func (m *ApiSupplement) DeactivateAuthorizationServer(id string) (*okta.Response, error)

func (*ApiSupplement) DeactivateEventHook

func (m *ApiSupplement) DeactivateEventHook(id string) (*okta.Response, error)

func (*ApiSupplement) DeactivateIdentityProvider

func (m *ApiSupplement) DeactivateIdentityProvider(id string) (*okta.Response, error)

func (*ApiSupplement) DeactivateInlineHook

func (m *ApiSupplement) DeactivateInlineHook(id string) (*okta.Response, error)

func (*ApiSupplement) DeactivateRule

func (m *ApiSupplement) DeactivateRule(policyId, id string) (*okta.Response, error)

func (*ApiSupplement) DeleteAdminRole

func (m *ApiSupplement) DeleteAdminRole(id, roleId string) (*okta.Response, error)

func (*ApiSupplement) DeleteAppUserSchemaProperty

func (m *ApiSupplement) DeleteAppUserSchemaProperty(id, appId string) (*okta.Response, error)

func (*ApiSupplement) DeleteAuthorizationServer

func (m *ApiSupplement) DeleteAuthorizationServer(id string) (*okta.Response, error)

func (*ApiSupplement) DeleteAuthorizationServerClaim

func (m *ApiSupplement) DeleteAuthorizationServerClaim(authServerId, id string) (*okta.Response, error)

func (*ApiSupplement) DeleteAuthorizationServerPolicy

func (m *ApiSupplement) DeleteAuthorizationServerPolicy(authServerId, id string) (*okta.Response, error)

func (*ApiSupplement) DeleteAuthorizationServerPolicyRule

func (m *ApiSupplement) DeleteAuthorizationServerPolicyRule(authServerId, policyId, id string) (*okta.Response, error)

func (*ApiSupplement) DeleteAuthorizationServerScope

func (m *ApiSupplement) DeleteAuthorizationServerScope(authServerId, id string) (*okta.Response, error)

func (*ApiSupplement) DeleteEmailTemplate

func (m *ApiSupplement) DeleteEmailTemplate(id string) (*okta.Response, error)

func (*ApiSupplement) DeleteEventHook

func (m *ApiSupplement) DeleteEventHook(id string) (*okta.Response, error)

func (*ApiSupplement) DeleteIdentityProvider

func (m *ApiSupplement) DeleteIdentityProvider(id string) (*okta.Response, error)

func (*ApiSupplement) DeleteIdentityProviderCertificate

func (m *ApiSupplement) DeleteIdentityProviderCertificate(kid string) (*okta.Response, error)

func (*ApiSupplement) DeleteIdentityProviderSigningKey

func (m *ApiSupplement) DeleteIdentityProviderSigningKey(kid string) (*okta.Response, error)

func (*ApiSupplement) DeleteIdpDiscoveryRule

func (m *ApiSupplement) DeleteIdpDiscoveryRule(policyId, id string) (*okta.Response, error)

func (*ApiSupplement) DeleteInlineHook

func (m *ApiSupplement) DeleteInlineHook(id string) (*okta.Response, error)

func (*ApiSupplement) DeleteNetworkZone

func (m *ApiSupplement) DeleteNetworkZone(id string) (*okta.Response, error)

func (*ApiSupplement) DeleteSmsTemplate

func (m *ApiSupplement) DeleteSmsTemplate(id string) (*okta.Response, error)

func (*ApiSupplement) DeleteUserSchemaProperty

func (m *ApiSupplement) DeleteUserSchemaProperty(id string) (*okta.Response, error)

func (*ApiSupplement) FilterAuthServers

func (c *ApiSupplement) FilterAuthServers(qp *query.Params, arr []*AuthorizationServer, compare func(string) bool) ([]*AuthorizationServer, error)

func (*ApiSupplement) FindAuthServer

func (c *ApiSupplement) FindAuthServer(name string, qp *query.Params) (*AuthorizationServer, error)

func (*ApiSupplement) FindProfileMappingSource

func (m *ApiSupplement) FindProfileMappingSource(name, typ string, qp *query.Params) (*MappingSource, *okta.Response, error)

FindProfileMappingSource retrieves profile mapping source/target via name

func (*ApiSupplement) GenerateIdentityProviderSigningKey

func (m *ApiSupplement) GenerateIdentityProviderSigningKey(idpId string, yearsValid int) (*SigningKey, *okta.Response, error)

func (*ApiSupplement) GetAppUserSchema

func (m *ApiSupplement) GetAppUserSchema(appId string) (*UserSchema, *okta.Response, error)

func (*ApiSupplement) GetAuthorizationServer

func (m *ApiSupplement) GetAuthorizationServer(id string) (*AuthorizationServer, *okta.Response, error)

func (*ApiSupplement) GetAuthorizationServerClaim

func (m *ApiSupplement) GetAuthorizationServerClaim(authServerId, id string, authorizationServerInstance AuthorizationServerClaim) (*AuthorizationServerClaim, *okta.Response, error)

func (*ApiSupplement) GetAuthorizationServerPolicy

func (m *ApiSupplement) GetAuthorizationServerPolicy(authServerId, id string, authorizationServerInstance AuthorizationServerPolicy) (*AuthorizationServerPolicy, *okta.Response, error)

func (*ApiSupplement) GetAuthorizationServerPolicyRule

func (m *ApiSupplement) GetAuthorizationServerPolicyRule(authServerId, policyId, id string, authorizationServerInstance AuthorizationServerPolicyRule) (*AuthorizationServerPolicyRule, *okta.Response, error)

func (*ApiSupplement) GetAuthorizationServerScope

func (m *ApiSupplement) GetAuthorizationServerScope(authServerId, id string, authorizationServerInstance AuthorizationServerScope) (*AuthorizationServerScope, *okta.Response, error)

func (*ApiSupplement) GetEmailTemplate

func (m *ApiSupplement) GetEmailTemplate(id string) (*EmailTemplate, *okta.Response, error)

func (*ApiSupplement) GetEventHook

func (m *ApiSupplement) GetEventHook(id string) (*EventHook, *okta.Response, error)

func (*ApiSupplement) GetIdentityProvider

func (m *ApiSupplement) GetIdentityProvider(id string, idp IdentityProvider) (IdentityProvider, *okta.Response, error)

func (*ApiSupplement) GetIdentityProviderCertificate

func (m *ApiSupplement) GetIdentityProviderCertificate(kid string) (*SigningKey, *okta.Response, error)

func (*ApiSupplement) GetIdentityProviderSigningKey

func (m *ApiSupplement) GetIdentityProviderSigningKey(idpId, kid string) (*SigningKey, *okta.Response, error)

func (*ApiSupplement) GetIdpDiscoveryRule

func (m *ApiSupplement) GetIdpDiscoveryRule(policyId, id string) (*IdpDiscoveryRule, *okta.Response, error)

func (*ApiSupplement) GetInlineHook

func (m *ApiSupplement) GetInlineHook(id string) (*InlineHook, *okta.Response, error)

func (*ApiSupplement) GetNetworkZone

func (m *ApiSupplement) GetNetworkZone(id string) (*NetworkZone, *okta.Response, error)

func (*ApiSupplement) GetProfileMapping

func (m *ApiSupplement) GetProfileMapping(mappingId string) (*Mapping, *okta.Response, error)

func (*ApiSupplement) GetProfileMappingBySourceId

func (m *ApiSupplement) GetProfileMappingBySourceId(sourceId, targetId string) (*Mapping, *okta.Response, error)

func (*ApiSupplement) GetSAMLIdpMetdata

func (m *ApiSupplement) GetSAMLIdpMetdata(id string) ([]byte, *http.Response, error)

func (*ApiSupplement) GetSAMLMetdata

func (m *ApiSupplement) GetSAMLMetdata(id, keyID string) ([]byte, *http.Response, error)

func (*ApiSupplement) GetSmsTemplate

func (m *ApiSupplement) GetSmsTemplate(id string) (*SmsTemplate, *okta.Response, error)

func (*ApiSupplement) GetUserSchema

func (m *ApiSupplement) GetUserSchema() (*UserSchema, *okta.Response, error)

func (*ApiSupplement) GetXml

func (m *ApiSupplement) GetXml(url string) ([]byte, *http.Response, error)

func (*ApiSupplement) ListAdminRoles

func (m *ApiSupplement) ListAdminRoles(groupId string, qp *query.Params) (roles []*Role, resp *okta.Response, err error)

func (*ApiSupplement) ListAuthorizationServerClaims

func (m *ApiSupplement) ListAuthorizationServerClaims(authServerId string) ([]*AuthorizationServerClaim, *okta.Response, error)

func (*ApiSupplement) ListAuthorizationServerPolicies

func (m *ApiSupplement) ListAuthorizationServerPolicies(authServerId string) ([]*AuthorizationServerPolicy, *okta.Response, error)

func (*ApiSupplement) ListAuthorizationServerPolicyRules

func (m *ApiSupplement) ListAuthorizationServerPolicyRules(authServerId, policyId string) ([]*AuthorizationServerPolicyRule, *okta.Response, error)

func (*ApiSupplement) ListAuthorizationServerScopes

func (m *ApiSupplement) ListAuthorizationServerScopes(authServerId string) ([]*AuthorizationServerScope, *okta.Response, error)

func (*ApiSupplement) ListAuthorizationServers

func (m *ApiSupplement) ListAuthorizationServers() ([]*AuthorizationServer, *okta.Response, error)

func (*ApiSupplement) ListEmailTemplates

func (m *ApiSupplement) ListEmailTemplates() ([]*EmailTemplate, *okta.Response, error)

func (*ApiSupplement) ListEventHooks

func (m *ApiSupplement) ListEventHooks() ([]*EventHook, *okta.Response, error)

func (*ApiSupplement) ListIdentityProviders

func (m *ApiSupplement) ListIdentityProviders(idps interface{}, qp *query.Params) (interface{}, *okta.Response, error)

func (*ApiSupplement) ListIdpDiscoveryRules

func (m *ApiSupplement) ListIdpDiscoveryRules(policyId string) ([]*IdpDiscoveryRule, *okta.Response, error)

func (*ApiSupplement) ListInlineHooks

func (m *ApiSupplement) ListInlineHooks() ([]*InlineHook, *okta.Response, error)

func (*ApiSupplement) ListSmsTemplates

func (m *ApiSupplement) ListSmsTemplates() ([]*SmsTemplate, *okta.Response, error)

func (*ApiSupplement) RemovePropertyMapping

func (m *ApiSupplement) RemovePropertyMapping(mappingId, id string) (*okta.Response, error)

func (*ApiSupplement) UpdateAppUserSchema

func (m *ApiSupplement) UpdateAppUserSchema(appId string, schema *UserSchema) (*UserSchema, *okta.Response, error)

func (*ApiSupplement) UpdateAuthorizationServer

func (m *ApiSupplement) UpdateAuthorizationServer(id string, body AuthorizationServer, qp *query.Params) (*AuthorizationServer, *okta.Response, error)

func (*ApiSupplement) UpdateAuthorizationServerClaim

func (m *ApiSupplement) UpdateAuthorizationServerClaim(authServerId, id string, body AuthorizationServerClaim, qp *query.Params) (*AuthorizationServerClaim, *okta.Response, error)

func (*ApiSupplement) UpdateAuthorizationServerPolicy

func (m *ApiSupplement) UpdateAuthorizationServerPolicy(authServerId, id string, body AuthorizationServerPolicy, qp *query.Params) (*AuthorizationServerPolicy, *okta.Response, error)

func (*ApiSupplement) UpdateAuthorizationServerPolicyRule

func (m *ApiSupplement) UpdateAuthorizationServerPolicyRule(authServerId, policyId, id string, body AuthorizationServerPolicyRule, qp *query.Params) (*AuthorizationServerPolicyRule, *okta.Response, error)

func (*ApiSupplement) UpdateAuthorizationServerScope

func (m *ApiSupplement) UpdateAuthorizationServerScope(authServerId, id string, body AuthorizationServerScope, qp *query.Params) (*AuthorizationServerScope, *okta.Response, error)

func (*ApiSupplement) UpdateBaseAppUserSchemaProperty

func (m *ApiSupplement) UpdateBaseAppUserSchemaProperty(id, appId string, schema *UserSubSchema) (*UserSchema, *okta.Response, error)

func (*ApiSupplement) UpdateBaseUserSchemaProperty

func (m *ApiSupplement) UpdateBaseUserSchemaProperty(id string, schema *UserSubSchema) (*UserSchema, *okta.Response, error)

func (*ApiSupplement) UpdateCustomAppUserSchemaProperty

func (m *ApiSupplement) UpdateCustomAppUserSchemaProperty(id, appId string, schema *UserSubSchema) (*UserSchema, *okta.Response, error)

func (*ApiSupplement) UpdateCustomUserSchemaProperty

func (m *ApiSupplement) UpdateCustomUserSchemaProperty(id string, schema *UserSubSchema) (*UserSchema, *okta.Response, error)

func (*ApiSupplement) UpdateEmailTemplate

func (m *ApiSupplement) UpdateEmailTemplate(id string, body EmailTemplate, qp *query.Params) (*EmailTemplate, *okta.Response, error)

func (*ApiSupplement) UpdateEventHook

func (m *ApiSupplement) UpdateEventHook(id string, body EventHook, qp *query.Params) (*EventHook, *okta.Response, error)

func (*ApiSupplement) UpdateIdentityProvider

func (m *ApiSupplement) UpdateIdentityProvider(id string, body IdentityProvider, qp *query.Params) (IdentityProvider, *okta.Response, error)

func (*ApiSupplement) UpdateIdpDiscoveryRule

func (m *ApiSupplement) UpdateIdpDiscoveryRule(policyId, id string, body IdpDiscoveryRule, qp *query.Params) (*IdpDiscoveryRule, *okta.Response, error)

func (*ApiSupplement) UpdateInlineHook

func (m *ApiSupplement) UpdateInlineHook(id string, body InlineHook, qp *query.Params) (*InlineHook, *okta.Response, error)

func (*ApiSupplement) UpdateMapping

func (m *ApiSupplement) UpdateMapping(mappingId string, body Mapping, qp *query.Params) (*Mapping, *okta.Response, error)

func (*ApiSupplement) UpdateNetworkZone

func (m *ApiSupplement) UpdateNetworkZone(id string, body NetworkZone, qp *query.Params) (*NetworkZone, *okta.Response, error)

func (*ApiSupplement) UpdateSmsTemplate

func (m *ApiSupplement) UpdateSmsTemplate(id string, body SmsTemplate, qp *query.Params) (*SmsTemplate, *okta.Response, error)

func (*ApiSupplement) UpdateUserSchemaProperty

func (m *ApiSupplement) UpdateUserSchemaProperty(schema *UserSchema) (*UserSchema, *okta.Response, error)

type AuthServerCredentials

type AuthServerCredentials struct {
	Signing *okta.ApplicationCredentialsSigning `json:"signing,omitempty"`
}

type AuthServerInlineHook

type AuthServerInlineHook struct {
	Id string `json:"id,omitempty"`
}

type AuthorizationServer

type AuthorizationServer struct {
	Audiences   []string               `json:"audiences,omitempty"`
	Credentials *AuthServerCredentials `json:"credentials,omitempty"`
	Description string                 `json:"description,omitempty"`
	Name        string                 `json:"name,omitempty"`
	Id          string                 `json:"id,omitempty"`
	Status      string                 `json:"status,omitempty"`
	Issuer      string                 `json:"issuer,omitempty"`
	IssuerMode  string                 `json:"issuerMode,omitempty"`
}

type AuthorizationServerClaim

type AuthorizationServerClaim struct {
	Status               string           `json:"status,omitempty"`
	ClaimType            string           `json:"claimType,omitempty"`
	ValueType            string           `json:"valueType,omitempty"`
	Value                string           `json:"value,omitempty"`
	AlwaysIncludeInToken bool             `json:"alwaysIncludeInToken,omitempty"`
	Name                 string           `json:"name,omitempty"`
	Id                   string           `json:"id,omitempty"`
	Conditions           *ClaimConditions `json:"conditions,omitempty"`
	GroupFilterType      string           `json:"group_filter_type,omitempty"`
}

type AuthorizationServerPolicy

type AuthorizationServerPolicy struct {
	Status      string            `json:"status,omitempty"`
	Priority    int               `json:"priority,omitempty"`
	Type        string            `json:"type,omitempty"`
	Description string            `json:"description,omitempty"`
	Name        string            `json:"name,omitempty"`
	Id          string            `json:"id,omitempty"`
	Conditions  *PolicyConditions `json:"conditions,omitempty"`
}

type AuthorizationServerPolicyRule

type AuthorizationServerPolicyRule struct {
	Status     string                `json:"status,omitempty"`
	Priority   int                   `json:"priority,omitempty"`
	Type       string                `json:"type,omitempty"`
	Name       string                `json:"name,omitempty"`
	Id         string                `json:"id,omitempty"`
	Conditions *PolicyRuleConditions `json:"conditions,omitempty"`
	Actions    *PolicyRuleActions    `json:"actions,omitempty"`
}

type AuthorizationServerScope

type AuthorizationServerScope struct {
	Name            string `json:"name,omitempty"`
	Id              string `json:"id,omitempty"`
	Description     string `json:"description,omitempty"`
	Consent         string `json:"consent,omitempty"`
	MetadataPublish string `json:"metadataPublish,omitempty"`
	Default         bool   `json:"default"`
}

type BasicIdp

type BasicIdp struct {
	IdentityProvider
	Id       string        `json:"id"`
	Name     string        `json:"name"`
	Type     string        `json:"type,omitempty"`
	Status   string        `json:"status,omitempty"`
	Protocol *SAMLProtocol `json:"protocol,omitempty"`
}

func (*BasicIdp) IsIDP

func (i *BasicIdp) IsIDP() bool

type Certificate

type Certificate struct {
	X5C []string `json:"x5c"`
}

type ClaimConditions

type ClaimConditions struct {
	Scopes []string `json:"scopes,omitempty"`
}

type EmailTemplate

type EmailTemplate struct {
	Id              string                       `json:"id,omitempty"`
	Name            string                       `json:"name,omitempty"`
	Type            string                       `json:"type,omitempty"`
	DefaultLanguage string                       `json:"defaultLanguage,omitempty"`
	Subject         string                       `json:"subject,omitempty"`
	Template        string                       `json:"template,omitempty"`
	Translations    map[string]*EmailTranslation `json:"translations,omitempty"`
}

type EmailTranslation

type EmailTranslation struct {
	Subject  string `json:"subject,omitempty"`
	Template string `json:"template,omitempty"`
}

type Endpoint

type Endpoint struct {
	Binding string `json:"binding,omitempty"`
	URL     string `json:"url,omitempty"`
}

func GetEndpoint

func GetEndpoint(d *schema.ResourceData, key string) *Endpoint

type EventHook

type EventHook struct {
	Channel *EventHookChannel `json:"channel"`
	ID      string            `json:"id,omitempty"`
	Name    string            `json:"name,omitempty"`
	Status  string            `json:"status,omitempty"`
	Events  *EventHookEvents  `json:"events,omitempty"`
}

type EventHookAuthScheme

type EventHookAuthScheme struct {
	Key   string `json:"key,omitempty"`
	Type  string `json:"type,omitempty"`
	Value string `json:"value,omitempty"`
}

type EventHookChannel

type EventHookChannel struct {
	Config  *EventHookChannelConfig `json:"config"`
	Type    string                  `json:"type,omitempty"`
	Version string                  `json:"version,omitempty"`
}

type EventHookChannelConfig

type EventHookChannelConfig struct {
	AuthScheme *EventHookAuthScheme `json:"authScheme,omitempty"`
	Headers    []*EventHookHeader   `json:"headers,omitempty"`
	URI        string               `json:"uri,omitempty"`
}

type EventHookEvents

type EventHookEvents struct {
	Type  string   `json:"type"`
	Items []string `json:"items"`
}

type EventHookHeader

type EventHookHeader struct {
	Key   string `json:"key,omitempty"`
	Value string `json:"value,omitempty"`
}

type Filter

type Filter struct {
	Groups *Included `json:"groups"`
}

type IDPAction

type IDPAction struct {
	Action string `json:"action,omitempty"`
}

type IDPConditions

type IDPConditions struct {
	Deprovisioned *IDPAction `json:"deprovisioned,omitempty"`
	Suspended     *IDPAction `json:"suspended,omitempty"`
}

type IDPGroupsAction

type IDPGroupsAction struct {
	Action              string   `json:"action,omitempty"`
	Assignments         []string `json:"assignments,omitempty"`
	Filter              []string `json:"filter,omitempty"`
	SourceAttributeName string   `json:"sourceAttributeName,omitempty"`
}

type IDPProvisioning

type IDPProvisioning struct {
	Action        string           `json:"action,omitempty"`
	Conditions    *IDPConditions   `json:"conditions,omitempty"`
	Groups        *IDPGroupsAction `json:"groups,omitempty"`
	ProfileMaster bool             `json:"profileMaster,omitempty"`
}

type IDPSSO

type IDPSSO struct {
	Binding     string `json:"binding,omitempty"`
	Destination string `json:"destination,omitempty"`
	URL         string `json:"url,omitempty"`
}

type IDPSignature

type IDPSignature struct {
	Signature *Signature `json:"signature,omitempty"`
}

type IDPTrust

type IDPTrust struct {
	Audience string `json:"audience,omitempty"`
	Issuer   string `json:"issuer,omitempty"`
	Kid      string `json:"kid,omitempty"`
}

type IdentityProvider

type IdentityProvider interface {
	IsIDP() bool
}

type IdpDiscoveryRule

type IdpDiscoveryRule struct {
	Actions     *IdpDiscoveryRuleActions    `json:"actions"`
	Conditions  *IdpDiscoveryRuleConditions `json:"conditions"`
	Created     string                      `json:"created"`
	ID          string                      `json:"id"`
	LastUpdated string                      `json:"lastUpdated"`
	Name        string                      `json:"name"`
	Priority    int                         `json:"priority"`
	Status      string                      `json:"status"`
	System      bool                        `json:"system"`
	Type        string                      `json:"type"`
}

type IdpDiscoveryRuleActions

type IdpDiscoveryRuleActions struct {
	IDP *IdpDiscoveryRuleIdp `json:"idp"`
}

type IdpDiscoveryRuleApp

type IdpDiscoveryRuleApp struct {
	Exclude []*IdpDiscoveryRuleAppObj `json:"exclude"`
	Include []*IdpDiscoveryRuleAppObj `json:"include"`
}

type IdpDiscoveryRuleAppObj

type IdpDiscoveryRuleAppObj struct {
	Type string `json:"type,omitempty"`
	ID   string `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
}

type IdpDiscoveryRuleConditions

type IdpDiscoveryRuleConditions struct {
	App            *IdpDiscoveryRuleApp            `json:"app"`
	Network        *IdpDiscoveryRuleNetwork        `json:"network"`
	Platform       *IdpDiscoveryRulePlatform       `json:"platform,omitempty"`
	UserIdentifier *IdpDiscoveryRuleUserIdentifier `json:"userIdentifier,omitempty"`
}

type IdpDiscoveryRuleIdp

type IdpDiscoveryRuleIdp struct {
	Providers []*IdpDiscoveryRuleProvider `json:"providers"`
}

type IdpDiscoveryRuleNetwork

type IdpDiscoveryRuleNetwork struct {
	Connection string   `json:"connection,omitempty"`
	Include    []string `json:"include,omitempty"`
	Exclude    []string `json:"exclude,omitempty"`
}

type IdpDiscoveryRulePattern

type IdpDiscoveryRulePattern struct {
	MatchType string `json:"matchType,omitempty"`
	Value     string `json:"value,omitempty"`
}

type IdpDiscoveryRulePlatform

type IdpDiscoveryRulePlatform struct {
	Exclude []interface{}                      `json:"exclude,omitempty"`
	Include []*IdpDiscoveryRulePlatformInclude `json:"include,omitempty"`
}

type IdpDiscoveryRulePlatformInclude

type IdpDiscoveryRulePlatformInclude struct {
	Os   *IdpDiscoveryRulePlatformOS `json:"os"`
	Type string                      `json:"type,omitempty"`
}

type IdpDiscoveryRulePlatformOS

type IdpDiscoveryRulePlatformOS struct {
	Type       string `json:"type,omitempty"`
	Expression string `json:"expression,omitempty"`
}

type IdpDiscoveryRulePolicy

type IdpDiscoveryRulePolicy struct {
	Conditions  interface{} `json:"conditions"`
	Created     string      `json:"created"`
	Description string      `json:"description"`
	ID          string      `json:"id"`
	LastUpdated string      `json:"lastUpdated"`
	Name        string      `json:"name"`
	Priority    int64       `json:"priority"`
	Status      string      `json:"status"`
	System      bool        `json:"system"`
	Type        string      `json:"type"`
}

type IdpDiscoveryRuleProvider

type IdpDiscoveryRuleProvider struct {
	Type string `json:"type,omitempty"`
	ID   string `json:"id,omitempty"`
}

type IdpDiscoveryRuleUserIdentifier

type IdpDiscoveryRuleUserIdentifier struct {
	Attribute string                     `json:"attribute,omitempty"`
	Patterns  []*IdpDiscoveryRulePattern `json:"patterns,omitempty"`
	Type      string                     `json:"type,omitempty"`
}

type Included

type Included struct {
	Include []string `json:"include"`
}

type InlineHook

type InlineHook struct {
	Channel *InlineHookChannel `json:"channel"`
	ID      string             `json:"id,omitempty"`
	Name    string             `json:"name,omitempty"`
	Status  string             `json:"status,omitempty"`
	Type    string             `json:"type,omitempty"`
	Version string             `json:"version,omitempty"`
}

type InlineHookAuthScheme

type InlineHookAuthScheme struct {
	Key   string `json:"key,omitempty"`
	Type  string `json:"type,omitempty"`
	Value string `json:"value,omitempty"`
}

type InlineHookChannel

type InlineHookChannel struct {
	Config  *InlineHookChannelConfig `json:"config"`
	Type    string                   `json:"type,omitempty"`
	Version string                   `json:"version,omitempty"`
}

type InlineHookChannelConfig

type InlineHookChannelConfig struct {
	AuthScheme *InlineHookAuthScheme `json:"authScheme,omitempty"`
	Headers    []*InlineHookHeader   `json:"headers,omitempty"`
	URI        string                `json:"uri,omitempty"`
	Method     string                `json:"method,omitempty"`
}

type InlineHookHeader

type InlineHookHeader struct {
	Key   string `json:"key,omitempty"`
	Value string `json:"value,omitempty"`
}

type Issuer

type Issuer struct {
	URL string `json:"url,omitempty"`
}

type JWK

type JWK struct {
	Type     string `json:"kty,omitempty"`
	ID       string `json:"kid,omitempty"`
	Exponent string `json:"e,omitempty"`
	Modulus  string `json:"n,omitempty"`
}

type JWKS

type JWKS struct {
	Keys []*JWK `json:"keys,omitempty"`
}

type Location

type Location struct {
	Country string `json:"country,omitempty"`
	Region  string `json:"region,omitempty"`
}

type Mapping

type Mapping struct {
	ID         string                      `json:"id"`
	Source     *MappingSource              `json:"source,omitempty"`
	Target     *MappingSource              `json:"target,omitempty"`
	Properties map[string]*MappingProperty `json:"properties,omitempty"`
}

type MappingProperty

type MappingProperty struct {
	Expression string `json:"expression"`
	PushStatus string `json:"pushStatus"`
}

type MappingSource

type MappingSource struct {
	ID   string `json:"id"`
	Name string `json:"name"`
	Type string `json:"type"`
}

type NetworkZone

type NetworkZone struct {
	Gateways  []*AddressObj `json:"gateways,omitempty"`
	ID        string        `json:"id,omitempty"`
	Locations []*Location   `json:"locations,omitempty"`
	Name      string        `json:"name,omitempty"`
	Proxies   []*AddressObj `json:"proxies,omitempty"`
	System    bool          `json:"system,omitempty"`
	Type      string        `json:"type,omitempty"`
}

type OIDCClient

type OIDCClient struct {
	ClientID     string `json:"client_id,omitempty"`
	ClientSecret string `json:"client_secret,omitempty"`
}

type OIDCCredentials

type OIDCCredentials struct {
	Client *OIDCClient `json:"client,omitempty"`
}

type OIDCEndpoints

type OIDCEndpoints struct {
	Acs           *ACSSSO   `json:"acs,omitempty"`
	Authorization *Endpoint `json:"authorization,omitempty"`
	Jwks          *Endpoint `json:"jwks,omitempty"`
	Token         *Endpoint `json:"token,omitempty"`
	UserInfo      *Endpoint `json:"userInfo,omitempty"`
}

type OIDCIdentityProvider

type OIDCIdentityProvider struct {
	ID         string        `json:"id,omitempty"`
	IssuerMode string        `json:"issuerMode,omitempty"`
	Name       string        `json:"name,omitempty"`
	Policy     *OIDCPolicy   `json:"policy,omitempty"`
	Protocol   *OIDCProtocol `json:"protocol,omitempty"`
	Type       string        `json:"type,omitempty"`
	Status     string        `json:"status,omitempty"`
}

func (*OIDCIdentityProvider) IsIDP

func (i *OIDCIdentityProvider) IsIDP() bool

type OIDCPolicy

type OIDCPolicy struct {
	AccountLink  *AccountLink     `json:"accountLink,omitempty"`
	MaxClockSkew int64            `json:"maxClockSkew"`
	Provisioning *IDPProvisioning `json:"provisioning,omitempty"`
	Subject      *OIDCSubject     `json:"subject,omitempty"`
}

type OIDCProtocol

type OIDCProtocol struct {
	Algorithms  *Algorithms      `json:"algorithms,omitempty"`
	Credentials *OIDCCredentials `json:"credentials,omitempty"`
	Endpoints   *OIDCEndpoints   `json:"endpoints,omitempty"`
	Issuer      *Issuer          `json:"issuer,omitempty"`
	Scopes      []string         `json:"scopes,omitempty"`
	Type        string           `json:"type,omitempty"`
}

type OIDCSubject

type OIDCSubject struct {
	MatchType        string                                       `json:"matchType,omitempty"`
	MatchAttribute   string                                       `json:"matchAttribute,omitempty"`
	UserNameTemplate *okta.ApplicationCredentialsUsernameTemplate `json:"userNameTemplate,omitempty"`
}

type OpenIdConnectApplication

type OpenIdConnectApplication struct {
	okta.OpenIdConnectApplication
	Settings *OpenIdConnectApplicationSettings `json:"settings,omitempty"`
}

func NewOpenIdConnectApplication

func NewOpenIdConnectApplication() *OpenIdConnectApplication

func (*OpenIdConnectApplication) IsApplicationInstance

func (a *OpenIdConnectApplication) IsApplicationInstance() bool

type OpenIdConnectApplicationSettings

type OpenIdConnectApplicationSettings struct {
	okta.OpenIdConnectApplicationSettingsClient
	OauthClient *OpenIdConnectApplicationSettingsClient `json:"oauthClient,omitempty"`
}

type OpenIdConnectApplicationSettingsClient

type OpenIdConnectApplicationSettingsClient struct {
	okta.OpenIdConnectApplicationSettingsClient
	JWKS *JWKS `json:"jwks,omitempty"`
}

type PolicyConditions

type PolicyConditions struct {
	Clients *Whitelist `json:"clients,omitempty"`
}

type PolicyRuleActions

type PolicyRuleActions struct {
	Token *TokenActions `json:"token,omitempty"`
}

type PolicyRuleConditions

type PolicyRuleConditions struct {
	GrantTypes *Whitelist                     `json:"grantTypes,omitempty"`
	People     *okta.GroupRulePeopleCondition `json:"people,omitempty"`
	Scopes     *Whitelist                     `json:"scopes,omitempty"`
}

type Role

type Role struct {
	AssignmentType string `json:"assignmentType,omitempty"`
	Id             string `json:"id,omitempty"`
	Status         string `json:"status,omitempty"`
	Type           string `json:"type,omitempty"`
}

type SAMLCredentials

type SAMLCredentials struct {
	Trust *IDPTrust `json:"trust,omitempty"`
}

type SAMLEndpoints

type SAMLEndpoints struct {
	Acs *ACSSSO `json:"acs,omitempty"`
	Sso *IDPSSO `json:"sso,omitempty"`
}

type SAMLIdentityProvider

type SAMLIdentityProvider struct {
	ID         string        `json:"id,omitempty"`
	IssuerMode string        `json:"issuerMode,omitempty"`
	Name       string        `json:"name,omitempty"`
	Policy     *SAMLPolicy   `json:"policy,omitempty"`
	Protocol   *SAMLProtocol `json:"protocol,omitempty"`
	Type       string        `json:"type,omitempty"`
	Status     string        `json:"status,omitempty"`
}

func (*SAMLIdentityProvider) IsIDP

func (i *SAMLIdentityProvider) IsIDP() bool

type SAMLPolicy

type SAMLPolicy struct {
	AccountLink  *AccountLink     `json:"accountLink,omitempty"`
	Provisioning *IDPProvisioning `json:"provisioning,omitempty"`
	Subject      *SAMLSubject     `json:"subject,omitempty"`
	Type         string           `json:"type,omitempty"`
}

type SAMLProtocol

type SAMLProtocol struct {
	Algorithms  *Algorithms      `json:"algorithms,omitempty"`
	Credentials *SAMLCredentials `json:"credentials,omitempty"`
	Endpoints   *SAMLEndpoints   `json:"endpoints,omitempty"`
	Type        string           `json:"type,omitempty"`
}

type SAMLSubject

type SAMLSubject struct {
	Filter           string                                       `json:"filter,omitempty"`
	Format           []string                                     `json:"format,omitempty"`
	MatchType        string                                       `json:"matchType,omitempty"`
	UserNameTemplate *okta.ApplicationCredentialsUsernameTemplate `json:"userNameTemplate,omitempty"`
}

type Signature

type Signature struct {
	Algorithm string `json:"algorithm,omitempty"`
	Scope     string `json:"scope,omitempty"`
}

type SigningKey

type SigningKey struct {
	Created   string   `json:"created,omitempty"`
	ExpiresAt string   `json:"expiresAt,omitempty"`
	X5C       []string `json:"x5c"`
	Kid       string   `json:"kid"`
	Kty       string   `json:"kty"`
	Use       string   `json:"use"`
	X5T256    string   `json:"x5t#S256"`
	E         string   `json:"e,omitempty"`
	N         string   `json:"n,omitempty"`
}

type SmsTemplate

type SmsTemplate struct {
	Id           string            `json:"id,omitempty"`
	Name         string            `json:"name,omitempty"`
	Type         string            `json:"type,omitempty"`
	Template     string            `json:"template,omitempty"`
	Created      string            `json:"created,omitempty"`
	LastUpdated  string            `json:"lastUpdated,omitempty"`
	Translations map[string]string `json:"translations,omitempty"`
}

type TokenActions

type TokenActions struct {
	AccessTokenLifetimeMinutes  int                   `json:"accessTokenLifetimeMinutes,omitempty"`
	RefreshTokenLifetimeMinutes int                   `json:"refreshTokenLifetimeMinutes,omitempty"`
	RefreshTokenWindowMinutes   int                   `json:"refreshTokenWindowMinutes,omitempty"`
	InlineHook                  *AuthServerInlineHook `json:"inlineHook,omitempty"`
}

type UserSchema

type UserSchema struct {
	Schema      string                 `json:"$schema,omitempty"`
	Created     string                 `json:"created,omitempty"`
	Definitions *UserSchemaDefinitions `json:"definitions,omitempty"`
	ID          string                 `json:"id,omitempty"`
	LastUpdated string                 `json:"lastUpdated,omitempty"`
	Name        string                 `json:"name,omitempty"`
	Properties  *UserSchemaProperties  `json:"properties,omitempty"`
	Title       string                 `json:"title,omitempty"`
	Type        string                 `json:"type,omitempty"`
}

type UserSchemaDefinitions

type UserSchemaDefinitions struct {
	Base   *UserSubSchemaProperties `json:"base,omitempty"`
	Custom *UserSubSchemaProperties `json:"custom,omitempty"`
}

type UserSchemaEnum

type UserSchemaEnum struct {
	Const string `json:"const,omitempty"`
	Title string `json:"title,omitempty"`
}

type UserSchemaItem

type UserSchemaItem struct {
	Enum  []string          `json:"enum,omitempty"`
	OneOf []*UserSchemaEnum `json:"oneOf,omitempty"`
	Type  string            `json:"type,omitempty"`
}

type UserSchemaMaster

type UserSchemaMaster struct {
	Type string `json:"type,omitempty"`
}

type UserSchemaPermission

type UserSchemaPermission struct {
	Action    string `json:"action,omitempty"`
	Principal string `json:"principal,omitempty"`
}

type UserSchemaProperties

type UserSchemaProperties struct {
	Profile *UserSchemaPropertyProfile `json:"profile,omitempty"`
}

type UserSchemaPropertyProfile

type UserSchemaPropertyProfile struct {
	AllOf []*UserSchemaRef `json:"allOf,omitempty"`
}

type UserSchemaRef

type UserSchemaRef struct {
	Ref string `json:"$ref,omitempty"`
}

type UserSubSchema

type UserSubSchema struct {
	Description  string                  `json:"description,omitempty"`
	Enum         []string                `json:"enum,omitempty"`
	Format       string                  `json:"format,omitempty"`
	Items        *UserSchemaItem         `json:"items,omitempty"`
	Master       *UserSchemaMaster       `json:"master,omitempty"`
	MaxLength    *int                    `json:"maxLength,omitempty"`
	MinLength    *int                    `json:"minLength,omitempty"`
	Mutability   string                  `json:"mutability,omitempty"`
	OneOf        []*UserSchemaEnum       `json:"oneOf,omitempty"`
	Permissions  []*UserSchemaPermission `json:"permissions,omitempty"`
	Required     *bool                   `json:"required,omitempty"`
	Scope        string                  `json:"scope,omitempty"`
	Title        string                  `json:"title,omitempty"`
	Type         string                  `json:"type,omitempty"`
	Union        string                  `json:"union,omitempty"`
	Unique       string                  `json:"unique,omitempty"`
	ExternalName string                  `json:"externalName,omitempty"`
}

type UserSubSchemaProperties

type UserSubSchemaProperties struct {
	ID         string                    `json:"id,omitempty"`
	Properties map[string]*UserSubSchema `json:"properties,omitempty"`
	Required   []interface{}             `json:"required,omitempty"`
	Type       string                    `json:"type,omitempty"`
}

func GetUserSchemaProp

func GetUserSchemaProp(id, index string, schema *UserSubSchema) *UserSubSchemaProperties

type Whitelist

type Whitelist struct {
	Include []string `json:"include,omitempty"`
}

Jump to

Keyboard shortcuts

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