okta

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: Apache-2.0 Imports: 31 Imported by: 58

Documentation

Index

Constants

View Source
const Version = "2.3.0"

Variables

This section is empty.

Functions

func CheckResponseForError

func CheckResponseForError(resp *http.Response) error

func Get429BackoffTime

func Get429BackoffTime(resp *http.Response) (int64, error)

Types

type AcsEndpoint added in v2.1.0

type AcsEndpoint struct {
	Index int64  `json:"index,omitempty"`
	Url   string `json:"url,omitempty"`
}

type ActivateFactorRequest

type ActivateFactorRequest struct {
	Attestation      string `json:"attestation,omitempty"`
	ClientData       string `json:"clientData,omitempty"`
	PassCode         string `json:"passCode,omitempty"`
	RegistrationData string `json:"registrationData,omitempty"`
	StateToken       string `json:"stateToken,omitempty"`
}

func NewActivateFactorRequest

func NewActivateFactorRequest() *ActivateFactorRequest

func (*ActivateFactorRequest) IsUserFactorInstance

func (a *ActivateFactorRequest) IsUserFactorInstance() bool

type App

type App interface {
	IsApplicationInstance() bool
}

type AppAndInstanceConditionEvaluatorAppOrInstance

type AppAndInstanceConditionEvaluatorAppOrInstance struct {
	Id   string `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
	Type string `json:"type,omitempty"`
}

type AppAndInstancePolicyRuleCondition

type AppAndInstancePolicyRuleCondition struct {
	Exclude []*AppAndInstanceConditionEvaluatorAppOrInstance `json:"exclude,omitempty"`
	Include []*AppAndInstanceConditionEvaluatorAppOrInstance `json:"include,omitempty"`
}

type AppInstancePolicyRuleCondition

type AppInstancePolicyRuleCondition struct {
	Exclude []string `json:"exclude,omitempty"`
	Include []string `json:"include,omitempty"`
}
type AppLink struct {
	AppAssignmentId  string `json:"appAssignmentId,omitempty"`
	AppInstanceId    string `json:"appInstanceId,omitempty"`
	AppName          string `json:"appName,omitempty"`
	CredentialsSetup *bool  `json:"credentialsSetup,omitempty"`
	Hidden           *bool  `json:"hidden,omitempty"`
	Id               string `json:"id,omitempty"`
	Label            string `json:"label,omitempty"`
	LinkUrl          string `json:"linkUrl,omitempty"`
	LogoUrl          string `json:"logoUrl,omitempty"`
	SortOrder        int64  `json:"sortOrder,omitempty"`
}

type AppUser

type AppUser struct {
	Embedded        interface{}         `json:"_embedded,omitempty"`
	Links           interface{}         `json:"_links,omitempty"`
	Created         *time.Time          `json:"created,omitempty"`
	Credentials     *AppUserCredentials `json:"credentials,omitempty"`
	ExternalId      string              `json:"externalId,omitempty"`
	Id              string              `json:"id,omitempty"`
	LastSync        *time.Time          `json:"lastSync,omitempty"`
	LastUpdated     *time.Time          `json:"lastUpdated,omitempty"`
	PasswordChanged *time.Time          `json:"passwordChanged,omitempty"`
	Profile         interface{}         `json:"profile,omitempty"`
	Scope           string              `json:"scope,omitempty"`
	Status          string              `json:"status,omitempty"`
	StatusChanged   *time.Time          `json:"statusChanged,omitempty"`
	SyncState       string              `json:"syncState,omitempty"`
}

func NewAppUser

func NewAppUser() *AppUser

func (*AppUser) IsApplicationInstance

func (a *AppUser) IsApplicationInstance() bool

type AppUserCredentials

type AppUserCredentials struct {
	Password *AppUserPasswordCredential `json:"password,omitempty"`
	UserName string                     `json:"userName,omitempty"`
}

func NewAppUserCredentials

func NewAppUserCredentials() *AppUserCredentials

func (*AppUserCredentials) IsApplicationInstance

func (a *AppUserCredentials) IsApplicationInstance() bool

type AppUserPasswordCredential

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

func NewAppUserPasswordCredential

func NewAppUserPasswordCredential() *AppUserPasswordCredential

func (*AppUserPasswordCredential) IsApplicationInstance

func (a *AppUserPasswordCredential) IsApplicationInstance() bool

type AppUserResource

type AppUserResource resource

func (*AppUserResource) DeleteApplicationUser

func (m *AppUserResource) DeleteApplicationUser(ctx context.Context, appId string, userId string, qp *query.Params) (*Response, error)

Removes an assignment for a user from an application.

func (*AppUserResource) UpdateApplicationUser

func (m *AppUserResource) UpdateApplicationUser(ctx context.Context, appId string, userId string, body AppUser) (*AppUser, *Response, error)

Updates a user's profile for an application

type Application

type Application struct {
	Embedded      interface{}               `json:"_embedded,omitempty"`
	Links         interface{}               `json:"_links,omitempty"`
	Accessibility *ApplicationAccessibility `json:"accessibility,omitempty"`
	Created       *time.Time                `json:"created,omitempty"`
	Credentials   *ApplicationCredentials   `json:"credentials,omitempty"`
	Features      []string                  `json:"features,omitempty"`
	Id            string                    `json:"id,omitempty"`
	Label         string                    `json:"label,omitempty"`
	LastUpdated   *time.Time                `json:"lastUpdated,omitempty"`
	Licensing     *ApplicationLicensing     `json:"licensing,omitempty"`
	Name          string                    `json:"name,omitempty"`
	Profile       interface{}               `json:"profile,omitempty"`
	Settings      *ApplicationSettings      `json:"settings,omitempty"`
	SignOnMode    string                    `json:"signOnMode,omitempty"`
	Status        string                    `json:"status,omitempty"`
	Visibility    *ApplicationVisibility    `json:"visibility,omitempty"`
}

func NewApplication

func NewApplication() *Application

func (*Application) IsApplicationInstance

func (a *Application) IsApplicationInstance() bool

type ApplicationAccessibility

type ApplicationAccessibility struct {
	ErrorRedirectUrl string `json:"errorRedirectUrl,omitempty"`
	LoginRedirectUrl string `json:"loginRedirectUrl,omitempty"`
	SelfService      *bool  `json:"selfService,omitempty"`
}

func NewApplicationAccessibility

func NewApplicationAccessibility() *ApplicationAccessibility

func (*ApplicationAccessibility) IsApplicationInstance

func (a *ApplicationAccessibility) IsApplicationInstance() bool

type ApplicationCredentials

type ApplicationCredentials struct {
	Signing          *ApplicationCredentialsSigning          `json:"signing,omitempty"`
	UserNameTemplate *ApplicationCredentialsUsernameTemplate `json:"userNameTemplate,omitempty"`
}

func NewApplicationCredentials

func NewApplicationCredentials() *ApplicationCredentials

func (*ApplicationCredentials) IsApplicationInstance

func (a *ApplicationCredentials) IsApplicationInstance() bool

type ApplicationCredentialsOAuthClient

type ApplicationCredentialsOAuthClient struct {
	AutoKeyRotation         *bool  `json:"autoKeyRotation,omitempty"`
	ClientId                string `json:"client_id,omitempty"`
	ClientSecret            string `json:"client_secret,omitempty"`
	TokenEndpointAuthMethod string `json:"token_endpoint_auth_method,omitempty"`
}

func NewApplicationCredentialsOAuthClient

func NewApplicationCredentialsOAuthClient() *ApplicationCredentialsOAuthClient

func (*ApplicationCredentialsOAuthClient) IsApplicationInstance

func (a *ApplicationCredentialsOAuthClient) IsApplicationInstance() bool

type ApplicationCredentialsScheme

type ApplicationCredentialsScheme string

type ApplicationCredentialsSigning

type ApplicationCredentialsSigning struct {
	Kid          string     `json:"kid,omitempty"`
	LastRotated  *time.Time `json:"lastRotated,omitempty"`
	NextRotation *time.Time `json:"nextRotation,omitempty"`
	RotationMode string     `json:"rotationMode,omitempty"`
	Use          string     `json:"use,omitempty"`
}

func NewApplicationCredentialsSigning

func NewApplicationCredentialsSigning() *ApplicationCredentialsSigning

func (*ApplicationCredentialsSigning) IsApplicationInstance

func (a *ApplicationCredentialsSigning) IsApplicationInstance() bool

type ApplicationCredentialsSigningUse

type ApplicationCredentialsSigningUse string

type ApplicationCredentialsUsernameTemplate

type ApplicationCredentialsUsernameTemplate struct {
	Suffix   string `json:"suffix,omitempty"`
	Template string `json:"template,omitempty"`
	Type     string `json:"type,omitempty"`
}

func NewApplicationCredentialsUsernameTemplate

func NewApplicationCredentialsUsernameTemplate() *ApplicationCredentialsUsernameTemplate

func (*ApplicationCredentialsUsernameTemplate) IsApplicationInstance

func (a *ApplicationCredentialsUsernameTemplate) IsApplicationInstance() bool

type ApplicationGroupAssignment

type ApplicationGroupAssignment struct {
	Embedded    interface{} `json:"_embedded,omitempty"`
	Links       interface{} `json:"_links,omitempty"`
	Id          string      `json:"id,omitempty"`
	LastUpdated *time.Time  `json:"lastUpdated,omitempty"`
	Priority    int64       `json:"priority,omitempty"`
	Profile     interface{} `json:"profile,omitempty"`
}

func NewApplicationGroupAssignment

func NewApplicationGroupAssignment() *ApplicationGroupAssignment

func (*ApplicationGroupAssignment) IsApplicationInstance

func (a *ApplicationGroupAssignment) IsApplicationInstance() bool

type ApplicationGroupAssignmentResource

type ApplicationGroupAssignmentResource resource

func (*ApplicationGroupAssignmentResource) DeleteApplicationGroupAssignment

func (m *ApplicationGroupAssignmentResource) DeleteApplicationGroupAssignment(ctx context.Context, appId string, groupId string) (*Response, error)

Removes a group assignment from an application.

type ApplicationLicensing

type ApplicationLicensing struct {
	SeatCount int64 `json:"seatCount,omitempty"`
}

func NewApplicationLicensing

func NewApplicationLicensing() *ApplicationLicensing

func (*ApplicationLicensing) IsApplicationInstance

func (a *ApplicationLicensing) IsApplicationInstance() bool

type ApplicationResource

type ApplicationResource resource

func (*ApplicationResource) ActivateApplication

func (m *ApplicationResource) ActivateApplication(ctx context.Context, appId string) (*Response, error)

Activates an inactive application.

func (*ApplicationResource) AssignUserToApplication

func (m *ApplicationResource) AssignUserToApplication(ctx context.Context, appId string, body AppUser) (*AppUser, *Response, error)

Assigns an user to an application with [credentials](#application-user-credentials-object) and an app-specific [profile](#application-user-profile-object). Profile mappings defined for the application are first applied before applying any profile properties specified in the request.

func (*ApplicationResource) CloneApplicationKey

func (m *ApplicationResource) CloneApplicationKey(ctx context.Context, appId string, keyId string, qp *query.Params) (*JsonWebKey, *Response, error)

Clones a X.509 certificate for an application key credential from a source application to target application.

func (*ApplicationResource) CreateApplication

func (m *ApplicationResource) CreateApplication(ctx context.Context, body App, qp *query.Params) (App, *Response, error)

Adds a new application to your Okta organization.

func (*ApplicationResource) CreateApplicationGroupAssignment

func (m *ApplicationResource) CreateApplicationGroupAssignment(ctx context.Context, appId string, groupId string, body ApplicationGroupAssignment) (*ApplicationGroupAssignment, *Response, error)

Assigns a group to an application

func (*ApplicationResource) DeactivateApplication

func (m *ApplicationResource) DeactivateApplication(ctx context.Context, appId string) (*Response, error)

Deactivates an active application.

func (*ApplicationResource) DeleteApplication

func (m *ApplicationResource) DeleteApplication(ctx context.Context, appId string) (*Response, error)

Removes an inactive application.

func (*ApplicationResource) DeleteApplicationGroupAssignment

func (m *ApplicationResource) DeleteApplicationGroupAssignment(ctx context.Context, appId string, groupId string) (*Response, error)

Removes a group assignment from an application.

func (*ApplicationResource) DeleteApplicationUser

func (m *ApplicationResource) DeleteApplicationUser(ctx context.Context, appId string, userId string, qp *query.Params) (*Response, error)

Removes an assignment for a user from an application.

func (*ApplicationResource) GenerateApplicationKey

func (m *ApplicationResource) GenerateApplicationKey(ctx context.Context, appId string, qp *query.Params) (*JsonWebKey, *Response, error)

Generates a new X.509 certificate for an application key credential

func (*ApplicationResource) GenerateCsrForApplication

func (m *ApplicationResource) GenerateCsrForApplication(ctx context.Context, appId string, body CsrMetadata) (*Csr, *Response, error)

Generates a new key pair and returns the Certificate Signing Request for it.

func (*ApplicationResource) GetApplication

func (m *ApplicationResource) GetApplication(ctx context.Context, appId string, appInstance App, qp *query.Params) (App, *Response, error)

Fetches an application from your Okta organization by `id`.

func (*ApplicationResource) GetApplicationGroupAssignment

func (m *ApplicationResource) GetApplicationGroupAssignment(ctx context.Context, appId string, groupId string, qp *query.Params) (*ApplicationGroupAssignment, *Response, error)

Fetches an application group assignment

func (*ApplicationResource) GetApplicationKey

func (m *ApplicationResource) GetApplicationKey(ctx context.Context, appId string, keyId string) (*JsonWebKey, *Response, error)

Gets a specific application key credential by kid

func (*ApplicationResource) GetApplicationUser

func (m *ApplicationResource) GetApplicationUser(ctx context.Context, appId string, userId string, qp *query.Params) (*AppUser, *Response, error)

Fetches a specific user assignment for application by `id`.

func (*ApplicationResource) GetCsrForApplication

func (m *ApplicationResource) GetCsrForApplication(ctx context.Context, appId string, csrId string) (*Csr, *Response, error)

func (*ApplicationResource) GetOAuth2TokenForApplication

func (m *ApplicationResource) GetOAuth2TokenForApplication(ctx context.Context, appId string, tokenId string, qp *query.Params) (*OAuth2Token, *Response, error)

Gets a token for the specified application

func (*ApplicationResource) GetScopeConsentGrant

func (m *ApplicationResource) GetScopeConsentGrant(ctx context.Context, appId string, grantId string, qp *query.Params) (*OAuth2ScopeConsentGrant, *Response, error)

Fetches a single scope consent grant for the application

func (*ApplicationResource) GrantConsentToScope

Grants consent for the application to request an OAuth 2.0 Okta scope

func (*ApplicationResource) ListApplicationGroupAssignments

func (m *ApplicationResource) ListApplicationGroupAssignments(ctx context.Context, appId string, qp *query.Params) ([]*ApplicationGroupAssignment, *Response, error)

Enumerates group assignments for an application.

func (*ApplicationResource) ListApplicationKeys

func (m *ApplicationResource) ListApplicationKeys(ctx context.Context, appId string) ([]*JsonWebKey, *Response, error)

Enumerates key credentials for an application

func (*ApplicationResource) ListApplicationUsers

func (m *ApplicationResource) ListApplicationUsers(ctx context.Context, appId string, qp *query.Params) ([]*AppUser, *Response, error)

Enumerates all assigned [application users](#application-user-model) for an application.

func (*ApplicationResource) ListApplications

func (m *ApplicationResource) ListApplications(ctx context.Context, qp *query.Params) ([]App, *Response, error)

Enumerates apps added to your organization with pagination. A subset of apps can be returned that match a supported filter expression or query.

func (*ApplicationResource) ListCsrsForApplication

func (m *ApplicationResource) ListCsrsForApplication(ctx context.Context, appId string) ([]*Csr, *Response, error)

Enumerates Certificate Signing Requests for an application

func (*ApplicationResource) ListOAuth2TokensForApplication

func (m *ApplicationResource) ListOAuth2TokensForApplication(ctx context.Context, appId string, qp *query.Params) ([]*OAuth2Token, *Response, error)

Lists all tokens for the application

func (*ApplicationResource) ListScopeConsentGrants

func (m *ApplicationResource) ListScopeConsentGrants(ctx context.Context, appId string, qp *query.Params) ([]*OAuth2ScopeConsentGrant, *Response, error)

Lists all scope consent grants for the application

func (*ApplicationResource) PublishBinaryCerCert

func (m *ApplicationResource) PublishBinaryCerCert(ctx context.Context, appId string, csrId string, body string) (*JsonWebKey, *Response, error)

func (*ApplicationResource) PublishBinaryDerCert

func (m *ApplicationResource) PublishBinaryDerCert(ctx context.Context, appId string, csrId string, body string) (*JsonWebKey, *Response, error)

func (*ApplicationResource) PublishBinaryPemCert

func (m *ApplicationResource) PublishBinaryPemCert(ctx context.Context, appId string, csrId string, body string) (*JsonWebKey, *Response, error)

func (*ApplicationResource) PublishCerCert

func (m *ApplicationResource) PublishCerCert(ctx context.Context, appId string, csrId string, body string) (*JsonWebKey, *Response, error)

func (*ApplicationResource) PublishDerCert

func (m *ApplicationResource) PublishDerCert(ctx context.Context, appId string, csrId string, body string) (*JsonWebKey, *Response, error)

func (*ApplicationResource) RevokeCsrFromApplication

func (m *ApplicationResource) RevokeCsrFromApplication(ctx context.Context, appId string, csrId string) (*Response, error)

func (*ApplicationResource) RevokeOAuth2TokenForApplication

func (m *ApplicationResource) RevokeOAuth2TokenForApplication(ctx context.Context, appId string, tokenId string) (*Response, error)

Revokes the specified token for the specified application

func (*ApplicationResource) RevokeOAuth2TokensForApplication

func (m *ApplicationResource) RevokeOAuth2TokensForApplication(ctx context.Context, appId string) (*Response, error)

Revokes all tokens for the specified application

func (*ApplicationResource) RevokeScopeConsentGrant

func (m *ApplicationResource) RevokeScopeConsentGrant(ctx context.Context, appId string, grantId string) (*Response, error)

Revokes permission for the application to request the given scope

func (*ApplicationResource) UpdateApplication

func (m *ApplicationResource) UpdateApplication(ctx context.Context, appId string, body App) (App, *Response, error)

Updates an application in your organization.

func (*ApplicationResource) UpdateApplicationUser

func (m *ApplicationResource) UpdateApplicationUser(ctx context.Context, appId string, userId string, body AppUser) (*AppUser, *Response, error)

Updates a user's profile for an application

type ApplicationSettings

type ApplicationSettings struct {
	App                *ApplicationSettingsApplication   `json:"app,omitempty"`
	ImplicitAssignment *bool                             `json:"implicitAssignment,omitempty"`
	InlineHookId       string                            `json:"inlineHookId,omitempty"`
	Notifications      *ApplicationSettingsNotifications `json:"notifications,omitempty"`
}

func NewApplicationSettings

func NewApplicationSettings() *ApplicationSettings

func (*ApplicationSettings) IsApplicationInstance

func (a *ApplicationSettings) IsApplicationInstance() bool

type ApplicationSettingsApplication

type ApplicationSettingsApplication map[string]interface{}

func NewApplicationSettingsApplication

func NewApplicationSettingsApplication() *ApplicationSettingsApplication

func (*ApplicationSettingsApplication) IsApplicationInstance

func (a *ApplicationSettingsApplication) IsApplicationInstance() bool

type ApplicationSettingsNotifications

type ApplicationSettingsNotifications struct {
	Vpn *ApplicationSettingsNotificationsVpn `json:"vpn,omitempty"`
}

func NewApplicationSettingsNotifications

func NewApplicationSettingsNotifications() *ApplicationSettingsNotifications

func (*ApplicationSettingsNotifications) IsApplicationInstance

func (a *ApplicationSettingsNotifications) IsApplicationInstance() bool

type ApplicationSettingsNotificationsVpn

type ApplicationSettingsNotificationsVpn struct {
	HelpUrl string                                      `json:"helpUrl,omitempty"`
	Message string                                      `json:"message,omitempty"`
	Network *ApplicationSettingsNotificationsVpnNetwork `json:"network,omitempty"`
}

func NewApplicationSettingsNotificationsVpn

func NewApplicationSettingsNotificationsVpn() *ApplicationSettingsNotificationsVpn

func (*ApplicationSettingsNotificationsVpn) IsApplicationInstance

func (a *ApplicationSettingsNotificationsVpn) IsApplicationInstance() bool

type ApplicationSettingsNotificationsVpnNetwork

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

func NewApplicationSettingsNotificationsVpnNetwork

func NewApplicationSettingsNotificationsVpnNetwork() *ApplicationSettingsNotificationsVpnNetwork

func (*ApplicationSettingsNotificationsVpnNetwork) IsApplicationInstance

func (a *ApplicationSettingsNotificationsVpnNetwork) IsApplicationInstance() bool

type ApplicationSignOnMode

type ApplicationSignOnMode string

type ApplicationVisibility

type ApplicationVisibility struct {
	AppLinks          interface{}                `json:"appLinks,omitempty"`
	AutoSubmitToolbar *bool                      `json:"autoSubmitToolbar,omitempty"`
	Hide              *ApplicationVisibilityHide `json:"hide,omitempty"`
}

func NewApplicationVisibility

func NewApplicationVisibility() *ApplicationVisibility

func (*ApplicationVisibility) IsApplicationInstance

func (a *ApplicationVisibility) IsApplicationInstance() bool

type ApplicationVisibilityHide

type ApplicationVisibilityHide struct {
	IOS *bool `json:"iOS,omitempty"`
	Web *bool `json:"web,omitempty"`
}

func NewApplicationVisibilityHide

func NewApplicationVisibilityHide() *ApplicationVisibilityHide

func (*ApplicationVisibilityHide) IsApplicationInstance

func (a *ApplicationVisibilityHide) IsApplicationInstance() bool

type AssignRoleRequest

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

type AuthenticationProvider

type AuthenticationProvider struct {
	Name string `json:"name,omitempty"`
	Type string `json:"type,omitempty"`
}

type AuthenticationProviderType

type AuthenticationProviderType string

type AuthorizationServer

type AuthorizationServer struct {
	Links       interface{}                     `json:"_links,omitempty"`
	Audiences   []string                        `json:"audiences,omitempty"`
	Created     *time.Time                      `json:"created,omitempty"`
	Credentials *AuthorizationServerCredentials `json:"credentials,omitempty"`
	Description string                          `json:"description,omitempty"`
	Id          string                          `json:"id,omitempty"`
	Issuer      string                          `json:"issuer,omitempty"`
	IssuerMode  string                          `json:"issuerMode,omitempty"`
	LastUpdated *time.Time                      `json:"lastUpdated,omitempty"`
	Name        string                          `json:"name,omitempty"`
	Status      string                          `json:"status,omitempty"`
}

type AuthorizationServerCredentials

type AuthorizationServerCredentials struct {
	Signing *AuthorizationServerCredentialsSigningConfig `json:"signing,omitempty"`
}

func NewAuthorizationServerCredentials

func NewAuthorizationServerCredentials() *AuthorizationServerCredentials

func (*AuthorizationServerCredentials) IsApplicationInstance

func (a *AuthorizationServerCredentials) IsApplicationInstance() bool

type AuthorizationServerCredentialsRotationMode

type AuthorizationServerCredentialsRotationMode string

type AuthorizationServerCredentialsSigningConfig

type AuthorizationServerCredentialsSigningConfig struct {
	Kid          string     `json:"kid,omitempty"`
	LastRotated  *time.Time `json:"lastRotated,omitempty"`
	NextRotation *time.Time `json:"nextRotation,omitempty"`
	RotationMode string     `json:"rotationMode,omitempty"`
	Use          string     `json:"use,omitempty"`
}

type AuthorizationServerCredentialsUse

type AuthorizationServerCredentialsUse string

type AuthorizationServerPolicy added in v2.3.0

type AuthorizationServerPolicy struct {
	Embedded    interface{}           `json:"_embedded,omitempty"`
	Links       interface{}           `json:"_links,omitempty"`
	Conditions  *PolicyRuleConditions `json:"conditions,omitempty"`
	Created     *time.Time            `json:"created,omitempty"`
	Description string                `json:"description,omitempty"`
	Id          string                `json:"id,omitempty"`
	LastUpdated *time.Time            `json:"lastUpdated,omitempty"`
	Name        string                `json:"name,omitempty"`
	Priority    int64                 `json:"priority,omitempty"`
	Status      string                `json:"status,omitempty"`
	System      *bool                 `json:"system,omitempty"`
	Type        string                `json:"type,omitempty"`
}

type AuthorizationServerPolicyResource added in v2.3.0

type AuthorizationServerPolicyResource resource

func (*AuthorizationServerPolicyResource) DeleteAuthorizationServerPolicy added in v2.3.0

func (m *AuthorizationServerPolicyResource) DeleteAuthorizationServerPolicy(ctx context.Context, authServerId string, policyId string) (*Response, error)

func (*AuthorizationServerPolicyResource) GetAuthorizationServerPolicy added in v2.3.0

func (m *AuthorizationServerPolicyResource) GetAuthorizationServerPolicy(ctx context.Context, authServerId string, policyId string) (*AuthorizationServerPolicy, *Response, error)

func (*AuthorizationServerPolicyResource) UpdateAuthorizationServerPolicy added in v2.3.0

func (m *AuthorizationServerPolicyResource) UpdateAuthorizationServerPolicy(ctx context.Context, authServerId string, policyId string, body AuthorizationServerPolicy) (*AuthorizationServerPolicy, *Response, error)

type AuthorizationServerPolicyRule added in v2.3.0

type AuthorizationServerPolicyRule struct {
	Actions     *AuthorizationServerPolicyRuleActions    `json:"actions,omitempty"`
	Conditions  *AuthorizationServerPolicyRuleConditions `json:"conditions,omitempty"`
	Created     *time.Time                               `json:"created,omitempty"`
	Id          string                                   `json:"id,omitempty"`
	LastUpdated *time.Time                               `json:"lastUpdated,omitempty"`
	Name        string                                   `json:"name,omitempty"`
	Priority    int64                                    `json:"priority,omitempty"`
	Status      string                                   `json:"status,omitempty"`
	System      *bool                                    `json:"system,omitempty"`
	Type        string                                   `json:"type,omitempty"`
}

type AuthorizationServerPolicyRuleActions added in v2.3.0

type AuthorizationServerPolicyRuleActions struct {
	Token *TokenAuthorizationServerPolicyRuleAction `json:"token,omitempty"`
}

type AuthorizationServerPolicyRuleConditions added in v2.3.0

type AuthorizationServerPolicyRuleConditions struct {
	Clients    *ClientPolicyCondition                    `json:"clients,omitempty"`
	GrantTypes *GrantTypePolicyRuleCondition             `json:"grantTypes,omitempty"`
	People     *PolicyPeopleCondition                    `json:"people,omitempty"`
	Scopes     *OAuth2ScopesMediationPolicyRuleCondition `json:"scopes,omitempty"`
}

type AuthorizationServerPolicyRuleResource added in v2.3.0

type AuthorizationServerPolicyRuleResource resource

func (*AuthorizationServerPolicyRuleResource) DeleteAuthorizationServerPolicyRule added in v2.3.0

func (m *AuthorizationServerPolicyRuleResource) DeleteAuthorizationServerPolicyRule(ctx context.Context, policyId string, authServerId string, ruleId string) (*Response, error)

Deletes a Policy Rule defined in the specified Custom Authorization Server and Policy.

func (*AuthorizationServerPolicyRuleResource) UpdateAuthorizationServerPolicyRule added in v2.3.0

func (m *AuthorizationServerPolicyRuleResource) UpdateAuthorizationServerPolicyRule(ctx context.Context, policyId string, authServerId string, ruleId string, body AuthorizationServerPolicyRule) (*AuthorizationServerPolicyRule, *Response, error)

Updates the configuration of the Policy Rule defined in the specified Custom Authorization Server and Policy.

type AuthorizationServerResource

type AuthorizationServerResource resource

func (*AuthorizationServerResource) ActivateAuthorizationServer

func (m *AuthorizationServerResource) ActivateAuthorizationServer(ctx context.Context, authServerId string) (*Response, error)

func (*AuthorizationServerResource) CreateAuthorizationServer

func (*AuthorizationServerResource) CreateAuthorizationServerPolicy

func (m *AuthorizationServerResource) CreateAuthorizationServerPolicy(ctx context.Context, authServerId string, body Policy) (*Policy, *Response, error)

func (*AuthorizationServerResource) CreateOAuth2Claim

func (m *AuthorizationServerResource) CreateOAuth2Claim(ctx context.Context, authServerId string, body OAuth2Claim) (*OAuth2Claim, *Response, error)

func (*AuthorizationServerResource) CreateOAuth2Scope

func (m *AuthorizationServerResource) CreateOAuth2Scope(ctx context.Context, authServerId string, body OAuth2Scope) (*OAuth2Scope, *Response, error)

func (*AuthorizationServerResource) DeactivateAuthorizationServer

func (m *AuthorizationServerResource) DeactivateAuthorizationServer(ctx context.Context, authServerId string) (*Response, error)

func (*AuthorizationServerResource) DeleteAuthorizationServer

func (m *AuthorizationServerResource) DeleteAuthorizationServer(ctx context.Context, authServerId string) (*Response, error)

func (*AuthorizationServerResource) DeleteAuthorizationServerPolicy

func (m *AuthorizationServerResource) DeleteAuthorizationServerPolicy(ctx context.Context, authServerId string, policyId string) (*Response, error)

func (*AuthorizationServerResource) DeleteOAuth2Claim

func (m *AuthorizationServerResource) DeleteOAuth2Claim(ctx context.Context, authServerId string, claimId string) (*Response, error)

func (*AuthorizationServerResource) DeleteOAuth2Scope

func (m *AuthorizationServerResource) DeleteOAuth2Scope(ctx context.Context, authServerId string, scopeId string) (*Response, error)

func (*AuthorizationServerResource) GetAuthorizationServer

func (m *AuthorizationServerResource) GetAuthorizationServer(ctx context.Context, authServerId string) (*AuthorizationServer, *Response, error)

func (*AuthorizationServerResource) GetAuthorizationServerPolicy

func (m *AuthorizationServerResource) GetAuthorizationServerPolicy(ctx context.Context, authServerId string, policyId string) (*Policy, *Response, error)

func (*AuthorizationServerResource) GetOAuth2Claim

func (m *AuthorizationServerResource) GetOAuth2Claim(ctx context.Context, authServerId string, claimId string) (*OAuth2Claim, *Response, error)

func (*AuthorizationServerResource) GetOAuth2Scope

func (m *AuthorizationServerResource) GetOAuth2Scope(ctx context.Context, authServerId string, scopeId string) (*OAuth2Scope, *Response, error)

func (*AuthorizationServerResource) GetRefreshTokenForAuthorizationServerAndClient

func (m *AuthorizationServerResource) GetRefreshTokenForAuthorizationServerAndClient(ctx context.Context, authServerId string, clientId string, tokenId string, qp *query.Params) (*OAuth2RefreshToken, *Response, error)

func (*AuthorizationServerResource) ListAuthorizationServerKeys

func (m *AuthorizationServerResource) ListAuthorizationServerKeys(ctx context.Context, authServerId string) ([]*JsonWebKey, *Response, error)

func (*AuthorizationServerResource) ListAuthorizationServerPolicies

func (m *AuthorizationServerResource) ListAuthorizationServerPolicies(ctx context.Context, authServerId string) ([]*Policy, *Response, error)

func (*AuthorizationServerResource) ListAuthorizationServers

func (m *AuthorizationServerResource) ListAuthorizationServers(ctx context.Context, qp *query.Params) ([]*AuthorizationServer, *Response, error)

func (*AuthorizationServerResource) ListOAuth2Claims

func (m *AuthorizationServerResource) ListOAuth2Claims(ctx context.Context, authServerId string) ([]*OAuth2Claim, *Response, error)

func (*AuthorizationServerResource) ListOAuth2ClientsForAuthorizationServer

func (m *AuthorizationServerResource) ListOAuth2ClientsForAuthorizationServer(ctx context.Context, authServerId string) ([]*OAuth2Client, *Response, error)

func (*AuthorizationServerResource) ListOAuth2Scopes

func (m *AuthorizationServerResource) ListOAuth2Scopes(ctx context.Context, authServerId string, qp *query.Params) ([]*OAuth2Scope, *Response, error)

func (*AuthorizationServerResource) ListRefreshTokensForAuthorizationServerAndClient

func (m *AuthorizationServerResource) ListRefreshTokensForAuthorizationServerAndClient(ctx context.Context, authServerId string, clientId string, qp *query.Params) ([]*OAuth2RefreshToken, *Response, error)

func (*AuthorizationServerResource) RevokeRefreshTokenForAuthorizationServerAndClient

func (m *AuthorizationServerResource) RevokeRefreshTokenForAuthorizationServerAndClient(ctx context.Context, authServerId string, clientId string, tokenId string) (*Response, error)

func (*AuthorizationServerResource) RevokeRefreshTokensForAuthorizationServerAndClient

func (m *AuthorizationServerResource) RevokeRefreshTokensForAuthorizationServerAndClient(ctx context.Context, authServerId string, clientId string) (*Response, error)

func (*AuthorizationServerResource) RotateAuthorizationServerKeys

func (m *AuthorizationServerResource) RotateAuthorizationServerKeys(ctx context.Context, authServerId string, body JwkUse) ([]*JsonWebKey, *Response, error)

func (*AuthorizationServerResource) UpdateAuthorizationServer

func (m *AuthorizationServerResource) UpdateAuthorizationServer(ctx context.Context, authServerId string, body AuthorizationServer) (*AuthorizationServer, *Response, error)

func (*AuthorizationServerResource) UpdateAuthorizationServerPolicy

func (m *AuthorizationServerResource) UpdateAuthorizationServerPolicy(ctx context.Context, authServerId string, policyId string, body Policy) (*Policy, *Response, error)

func (*AuthorizationServerResource) UpdateOAuth2Claim

func (m *AuthorizationServerResource) UpdateOAuth2Claim(ctx context.Context, authServerId string, claimId string, body OAuth2Claim) (*OAuth2Claim, *Response, error)

func (*AuthorizationServerResource) UpdateOAuth2Scope

func (m *AuthorizationServerResource) UpdateOAuth2Scope(ctx context.Context, authServerId string, scopeId string, body OAuth2Scope) (*OAuth2Scope, *Response, error)

type AutoLoginApplication

type AutoLoginApplication struct {
	Embedded      interface{}                   `json:"_embedded,omitempty"`
	Links         interface{}                   `json:"_links,omitempty"`
	Accessibility *ApplicationAccessibility     `json:"accessibility,omitempty"`
	Created       *time.Time                    `json:"created,omitempty"`
	Credentials   *SchemeApplicationCredentials `json:"credentials,omitempty"`
	Features      []string                      `json:"features,omitempty"`
	Id            string                        `json:"id,omitempty"`
	Label         string                        `json:"label,omitempty"`
	LastUpdated   *time.Time                    `json:"lastUpdated,omitempty"`
	Licensing     *ApplicationLicensing         `json:"licensing,omitempty"`
	Name          string                        `json:"name,omitempty"`
	Profile       interface{}                   `json:"profile,omitempty"`
	Settings      *AutoLoginApplicationSettings `json:"settings,omitempty"`
	SignOnMode    string                        `json:"signOnMode,omitempty"`
	Status        string                        `json:"status,omitempty"`
	Visibility    *ApplicationVisibility        `json:"visibility,omitempty"`
}

func NewAutoLoginApplication

func NewAutoLoginApplication() *AutoLoginApplication

func (*AutoLoginApplication) IsApplicationInstance

func (a *AutoLoginApplication) IsApplicationInstance() bool

type AutoLoginApplicationSettings

type AutoLoginApplicationSettings struct {
	App                *ApplicationSettingsApplication     `json:"app,omitempty"`
	ImplicitAssignment *bool                               `json:"implicitAssignment,omitempty"`
	InlineHookId       string                              `json:"inlineHookId,omitempty"`
	Notifications      *ApplicationSettingsNotifications   `json:"notifications,omitempty"`
	SignOn             *AutoLoginApplicationSettingsSignOn `json:"signOn,omitempty"`
}

func NewAutoLoginApplicationSettings

func NewAutoLoginApplicationSettings() *AutoLoginApplicationSettings

func (*AutoLoginApplicationSettings) IsApplicationInstance

func (a *AutoLoginApplicationSettings) IsApplicationInstance() bool

type AutoLoginApplicationSettingsSignOn

type AutoLoginApplicationSettingsSignOn struct {
	LoginUrl    string `json:"loginUrl,omitempty"`
	RedirectUrl string `json:"redirectUrl,omitempty"`
}

func NewAutoLoginApplicationSettingsSignOn

func NewAutoLoginApplicationSettingsSignOn() *AutoLoginApplicationSettingsSignOn

func (*AutoLoginApplicationSettingsSignOn) IsApplicationInstance

func (a *AutoLoginApplicationSettingsSignOn) IsApplicationInstance() bool

type BasicApplicationSettings

type BasicApplicationSettings struct {
	App                *BasicApplicationSettingsApplication `json:"app,omitempty"`
	ImplicitAssignment *bool                                `json:"implicitAssignment,omitempty"`
	InlineHookId       string                               `json:"inlineHookId,omitempty"`
	Notifications      *ApplicationSettingsNotifications    `json:"notifications,omitempty"`
}

func NewBasicApplicationSettings

func NewBasicApplicationSettings() *BasicApplicationSettings

func (*BasicApplicationSettings) IsApplicationInstance

func (a *BasicApplicationSettings) IsApplicationInstance() bool

type BasicApplicationSettingsApplication

type BasicApplicationSettingsApplication struct {
	AuthURL string `json:"authURL,omitempty"`
	Url     string `json:"url,omitempty"`
}

func NewBasicApplicationSettingsApplication

func NewBasicApplicationSettingsApplication() *BasicApplicationSettingsApplication

func (*BasicApplicationSettingsApplication) IsApplicationInstance

func (a *BasicApplicationSettingsApplication) IsApplicationInstance() bool

type BasicAuthApplication

type BasicAuthApplication struct {
	Embedded      interface{}                   `json:"_embedded,omitempty"`
	Links         interface{}                   `json:"_links,omitempty"`
	Accessibility *ApplicationAccessibility     `json:"accessibility,omitempty"`
	Created       *time.Time                    `json:"created,omitempty"`
	Credentials   *SchemeApplicationCredentials `json:"credentials,omitempty"`
	Features      []string                      `json:"features,omitempty"`
	Id            string                        `json:"id,omitempty"`
	Label         string                        `json:"label,omitempty"`
	LastUpdated   *time.Time                    `json:"lastUpdated,omitempty"`
	Licensing     *ApplicationLicensing         `json:"licensing,omitempty"`
	Name          string                        `json:"name,omitempty"`
	Profile       interface{}                   `json:"profile,omitempty"`
	Settings      *BasicApplicationSettings     `json:"settings,omitempty"`
	SignOnMode    string                        `json:"signOnMode,omitempty"`
	Status        string                        `json:"status,omitempty"`
	Visibility    *ApplicationVisibility        `json:"visibility,omitempty"`
}

func NewBasicAuthApplication

func NewBasicAuthApplication() *BasicAuthApplication

func (*BasicAuthApplication) IsApplicationInstance

func (a *BasicAuthApplication) IsApplicationInstance() bool

type BeforeScheduledActionPolicyRuleCondition

type BeforeScheduledActionPolicyRuleCondition struct {
	Duration        *Duration                     `json:"duration,omitempty"`
	LifecycleAction *ScheduledUserLifecycleAction `json:"lifecycleAction,omitempty"`
}

type BookmarkApplication

type BookmarkApplication struct {
	Embedded      interface{}                  `json:"_embedded,omitempty"`
	Links         interface{}                  `json:"_links,omitempty"`
	Accessibility *ApplicationAccessibility    `json:"accessibility,omitempty"`
	Created       *time.Time                   `json:"created,omitempty"`
	Credentials   *ApplicationCredentials      `json:"credentials,omitempty"`
	Features      []string                     `json:"features,omitempty"`
	Id            string                       `json:"id,omitempty"`
	Label         string                       `json:"label,omitempty"`
	LastUpdated   *time.Time                   `json:"lastUpdated,omitempty"`
	Licensing     *ApplicationLicensing        `json:"licensing,omitempty"`
	Name          string                       `json:"name,omitempty"`
	Profile       interface{}                  `json:"profile,omitempty"`
	Settings      *BookmarkApplicationSettings `json:"settings,omitempty"`
	SignOnMode    string                       `json:"signOnMode,omitempty"`
	Status        string                       `json:"status,omitempty"`
	Visibility    *ApplicationVisibility       `json:"visibility,omitempty"`
}

func NewBookmarkApplication

func NewBookmarkApplication() *BookmarkApplication

func (*BookmarkApplication) IsApplicationInstance

func (a *BookmarkApplication) IsApplicationInstance() bool

type BookmarkApplicationSettings

type BookmarkApplicationSettings struct {
	App                *BookmarkApplicationSettingsApplication `json:"app,omitempty"`
	ImplicitAssignment *bool                                   `json:"implicitAssignment,omitempty"`
	InlineHookId       string                                  `json:"inlineHookId,omitempty"`
	Notifications      *ApplicationSettingsNotifications       `json:"notifications,omitempty"`
}

func NewBookmarkApplicationSettings

func NewBookmarkApplicationSettings() *BookmarkApplicationSettings

func (*BookmarkApplicationSettings) IsApplicationInstance

func (a *BookmarkApplicationSettings) IsApplicationInstance() bool

type BookmarkApplicationSettingsApplication

type BookmarkApplicationSettingsApplication struct {
	RequestIntegration *bool  `json:"requestIntegration,omitempty"`
	Url                string `json:"url,omitempty"`
}

func NewBookmarkApplicationSettingsApplication

func NewBookmarkApplicationSettingsApplication() *BookmarkApplicationSettingsApplication

func (*BookmarkApplicationSettingsApplication) IsApplicationInstance

func (a *BookmarkApplicationSettingsApplication) IsApplicationInstance() bool

type BrowserPluginApplication

type BrowserPluginApplication struct {
	Embedded      interface{}                   `json:"_embedded,omitempty"`
	Links         interface{}                   `json:"_links,omitempty"`
	Accessibility *ApplicationAccessibility     `json:"accessibility,omitempty"`
	Created       *time.Time                    `json:"created,omitempty"`
	Credentials   *SchemeApplicationCredentials `json:"credentials,omitempty"`
	Features      []string                      `json:"features,omitempty"`
	Id            string                        `json:"id,omitempty"`
	Label         string                        `json:"label,omitempty"`
	LastUpdated   *time.Time                    `json:"lastUpdated,omitempty"`
	Licensing     *ApplicationLicensing         `json:"licensing,omitempty"`
	Name          string                        `json:"name,omitempty"`
	Profile       interface{}                   `json:"profile,omitempty"`
	Settings      *ApplicationSettings          `json:"settings,omitempty"`
	SignOnMode    string                        `json:"signOnMode,omitempty"`
	Status        string                        `json:"status,omitempty"`
	Visibility    *ApplicationVisibility        `json:"visibility,omitempty"`
}

func NewBrowserPluginApplication

func NewBrowserPluginApplication() *BrowserPluginApplication

func (*BrowserPluginApplication) IsApplicationInstance

func (a *BrowserPluginApplication) IsApplicationInstance() bool

type CallUserFactor

type CallUserFactor struct {
	Embedded    interface{}            `json:"_embedded,omitempty"`
	Links       interface{}            `json:"_links,omitempty"`
	Created     *time.Time             `json:"created,omitempty"`
	FactorType  string                 `json:"factorType,omitempty"`
	Id          string                 `json:"id,omitempty"`
	LastUpdated *time.Time             `json:"lastUpdated,omitempty"`
	Provider    string                 `json:"provider,omitempty"`
	Status      string                 `json:"status,omitempty"`
	Verify      *VerifyFactorRequest   `json:"verify,omitempty"`
	Profile     *CallUserFactorProfile `json:"profile,omitempty"`
}

func NewCallUserFactor

func NewCallUserFactor() *CallUserFactor

func (*CallUserFactor) IsUserFactorInstance

func (a *CallUserFactor) IsUserFactorInstance() bool

type CallUserFactorProfile

type CallUserFactorProfile struct {
	PhoneExtension string `json:"phoneExtension,omitempty"`
	PhoneNumber    string `json:"phoneNumber,omitempty"`
}

func NewCallUserFactorProfile

func NewCallUserFactorProfile() *CallUserFactorProfile

func (*CallUserFactorProfile) IsUserFactorInstance

func (a *CallUserFactorProfile) IsUserFactorInstance() bool

type CatalogApplication added in v2.1.0

type CatalogApplication struct {
	Links              interface{} `json:"_links,omitempty"`
	Category           string      `json:"category,omitempty"`
	Description        string      `json:"description,omitempty"`
	DisplayName        string      `json:"displayName,omitempty"`
	Features           []string    `json:"features,omitempty"`
	Id                 string      `json:"id,omitempty"`
	LastUpdated        *time.Time  `json:"lastUpdated,omitempty"`
	Name               string      `json:"name,omitempty"`
	SignOnModes        []string    `json:"signOnModes,omitempty"`
	Status             string      `json:"status,omitempty"`
	VerificationStatus string      `json:"verificationStatus,omitempty"`
	Website            string      `json:"website,omitempty"`
}

type CatalogApplicationStatus added in v2.1.0

type CatalogApplicationStatus string

type ChangePasswordRequest

type ChangePasswordRequest struct {
	NewPassword *PasswordCredential `json:"newPassword,omitempty"`
	OldPassword *PasswordCredential `json:"oldPassword,omitempty"`
}

type Client

type Client struct {
	Application         *ApplicationResource
	AuthorizationServer *AuthorizationServerResource
	EventHook           *EventHookResource
	Feature             *FeatureResource
	Group               *GroupResource
	IdentityProvider    *IdentityProviderResource
	InlineHook          *InlineHookResource
	LogEvent            *LogEventResource
	LinkedObject        *LinkedObjectResource
	UserType            *UserTypeResource
	Policy              *PolicyResource
	Session             *SessionResource
	SmsTemplate         *SmsTemplateResource
	TrustedOrigin       *TrustedOriginResource
	User                *UserResource
	UserFactor          *UserFactorResource
	// contains filtered or unexported fields
}

func ClientFromContext

func ClientFromContext(ctx context.Context) (*Client, bool)

func NewClient

func NewClient(ctx context.Context, conf ...ConfigSetter) (context.Context, *Client, error)

func (*Client) GetConfig

func (c *Client) GetConfig() *config

func (*Client) GetRequestExecutor

func (c *Client) GetRequestExecutor() *RequestExecutor

type ClientAssertionClaims

type ClientAssertionClaims struct {
	Issuer   string           `json:"iss,omitempty"`
	Subject  string           `json:"sub,omitempty"`
	Audience string           `json:"aud,omitempty"`
	Expiry   *jwt.NumericDate `json:"exp,omitempty"`
	IssuedAt *jwt.NumericDate `json:"iat,omitempty"`
	ID       string           `json:"jti,omitempty"`
}

type ClientPolicyCondition

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

type ConfigSetter

type ConfigSetter func(*config)

func WithAuthorizationMode

func WithAuthorizationMode(authzMode string) ConfigSetter

func WithCache

func WithCache(cache bool) ConfigSetter

func WithCacheManager

func WithCacheManager(cacheManager cache.Cache) ConfigSetter

func WithCacheTti

func WithCacheTti(i int32) ConfigSetter

func WithCacheTtl

func WithCacheTtl(i int32) ConfigSetter

func WithClientId

func WithClientId(clientId string) ConfigSetter

func WithConnectionTimeout

func WithConnectionTimeout(i int64) ConfigSetter

func WithHttpClient

func WithHttpClient(httpClient http.Client) ConfigSetter

func WithOrgUrl

func WithOrgUrl(url string) ConfigSetter

func WithPrivateKey

func WithPrivateKey(privateKey string) ConfigSetter

WithPrivateKey sets private key key. Can be either a path to a private key or private key itself.

func WithProxyHost

func WithProxyHost(host string) ConfigSetter

func WithProxyPassword

func WithProxyPassword(pass string) ConfigSetter

func WithProxyPort

func WithProxyPort(i int32) ConfigSetter

func WithProxyUsername

func WithProxyUsername(username string) ConfigSetter

func WithRateLimitMaxBackOff added in v2.2.0

func WithRateLimitMaxBackOff(maxBackoff int64) ConfigSetter

func WithRateLimitMaxRetries

func WithRateLimitMaxRetries(maxRetries int32) ConfigSetter

func WithRequestTimeout

func WithRequestTimeout(requestTimeout int64) ConfigSetter

func WithScopes

func WithScopes(scopes []string) ConfigSetter

func WithTestingDisableHttpsCheck

func WithTestingDisableHttpsCheck(httpsCheck bool) ConfigSetter

func WithToken

func WithToken(token string) ConfigSetter

func WithUserAgentExtra

func WithUserAgentExtra(userAgent string) ConfigSetter

type ContextPolicyRuleCondition

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

type CreateSessionRequest

type CreateSessionRequest struct {
	SessionToken string `json:"sessionToken,omitempty"`
}

type CreateUserRequest

type CreateUserRequest struct {
	Credentials *UserCredentials `json:"credentials,omitempty"`
	GroupIds    []string         `json:"groupIds,omitempty"`
	Profile     *UserProfile     `json:"profile,omitempty"`
	Type        *UserType        `json:"type,omitempty"`
}

type Csr

type Csr struct {
	Created *time.Time `json:"created,omitempty"`
	Csr     string     `json:"csr,omitempty"`
	Id      string     `json:"id,omitempty"`
	Kty     string     `json:"kty,omitempty"`
}

type CsrMetadata

type CsrMetadata struct {
	Subject         *CsrMetadataSubject         `json:"subject,omitempty"`
	SubjectAltNames *CsrMetadataSubjectAltNames `json:"subjectAltNames,omitempty"`
}

type CsrMetadataSubject

type CsrMetadataSubject struct {
	CommonName             string `json:"commonName,omitempty"`
	CountryName            string `json:"countryName,omitempty"`
	LocalityName           string `json:"localityName,omitempty"`
	OrganizationName       string `json:"organizationName,omitempty"`
	OrganizationalUnitName string `json:"organizationalUnitName,omitempty"`
	StateOrProvinceName    string `json:"stateOrProvinceName,omitempty"`
}

type CsrMetadataSubjectAltNames

type CsrMetadataSubjectAltNames struct {
	DnsNames []string `json:"dnsNames,omitempty"`
}

type CustomHotpUserFactor added in v2.1.0

type CustomHotpUserFactor struct {
	Embedded        interface{}                  `json:"_embedded,omitempty"`
	Links           interface{}                  `json:"_links,omitempty"`
	Created         *time.Time                   `json:"created,omitempty"`
	FactorType      string                       `json:"factorType,omitempty"`
	Id              string                       `json:"id,omitempty"`
	LastUpdated     *time.Time                   `json:"lastUpdated,omitempty"`
	Provider        string                       `json:"provider,omitempty"`
	Status          string                       `json:"status,omitempty"`
	Verify          *VerifyFactorRequest         `json:"verify,omitempty"`
	FactorProfileId string                       `json:"factorProfileId,omitempty"`
	Profile         *CustomHotpUserFactorProfile `json:"profile,omitempty"`
}

func NewCustomHotpUserFactor added in v2.1.0

func NewCustomHotpUserFactor() *CustomHotpUserFactor

func (*CustomHotpUserFactor) IsUserFactorInstance added in v2.1.0

func (a *CustomHotpUserFactor) IsUserFactorInstance() bool

type CustomHotpUserFactorProfile added in v2.1.0

type CustomHotpUserFactorProfile struct {
	SharedSecret string `json:"sharedSecret,omitempty"`
}

func NewCustomHotpUserFactorProfile added in v2.1.0

func NewCustomHotpUserFactorProfile() *CustomHotpUserFactorProfile

func (*CustomHotpUserFactorProfile) IsUserFactorInstance added in v2.1.0

func (a *CustomHotpUserFactorProfile) IsUserFactorInstance() bool

type DevicePolicyRuleCondition

type DevicePolicyRuleCondition struct {
	Migrated   *bool                              `json:"migrated,omitempty"`
	Platform   *DevicePolicyRuleConditionPlatform `json:"platform,omitempty"`
	Rooted     *bool                              `json:"rooted,omitempty"`
	TrustLevel string                             `json:"trustLevel,omitempty"`
}

type DevicePolicyRuleConditionPlatform

type DevicePolicyRuleConditionPlatform struct {
	SupportedMDMFrameworks []string `json:"supportedMDMFrameworks,omitempty"`
	Types                  []string `json:"types,omitempty"`
}

type Duration

type Duration struct {
	Number int64  `json:"number,omitempty"`
	Unit   string `json:"unit,omitempty"`
}

type EmailUserFactor

type EmailUserFactor struct {
	Embedded    interface{}             `json:"_embedded,omitempty"`
	Links       interface{}             `json:"_links,omitempty"`
	Created     *time.Time              `json:"created,omitempty"`
	FactorType  string                  `json:"factorType,omitempty"`
	Id          string                  `json:"id,omitempty"`
	LastUpdated *time.Time              `json:"lastUpdated,omitempty"`
	Provider    string                  `json:"provider,omitempty"`
	Status      string                  `json:"status,omitempty"`
	Verify      *VerifyFactorRequest    `json:"verify,omitempty"`
	Profile     *EmailUserFactorProfile `json:"profile,omitempty"`
}

func NewEmailUserFactor

func NewEmailUserFactor() *EmailUserFactor

func (*EmailUserFactor) IsUserFactorInstance

func (a *EmailUserFactor) IsUserFactorInstance() bool

type EmailUserFactorProfile

type EmailUserFactorProfile struct {
	Email string `json:"email,omitempty"`
}

func NewEmailUserFactorProfile

func NewEmailUserFactorProfile() *EmailUserFactorProfile

func (*EmailUserFactorProfile) IsUserFactorInstance

func (a *EmailUserFactorProfile) IsUserFactorInstance() bool

type EnabledStatus

type EnabledStatus string

type Error

type Error struct {
	ErrorCode    string                   `json:"errorCode,omitempty"`
	ErrorSummary string                   `json:"errorSummary,omitempty" toml:"error_description"`
	ErrorLink    string                   `json:"errorLink,omitempty"`
	ErrorId      string                   `json:"errorId,omitempty"`
	ErrorCauses  []map[string]interface{} `json:"errorCauses,omitempty"`
}

func (*Error) Error

func (e *Error) Error() string

type EventHook

type EventHook struct {
	Links              interface{}         `json:"_links,omitempty"`
	Channel            *EventHookChannel   `json:"channel,omitempty"`
	Created            *time.Time          `json:"created,omitempty"`
	CreatedBy          string              `json:"createdBy,omitempty"`
	Events             *EventSubscriptions `json:"events,omitempty"`
	Id                 string              `json:"id,omitempty"`
	LastUpdated        *time.Time          `json:"lastUpdated,omitempty"`
	Name               string              `json:"name,omitempty"`
	Status             string              `json:"status,omitempty"`
	VerificationStatus string              `json:"verificationStatus,omitempty"`
}

type EventHookChannel

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

type EventHookChannelConfig

type EventHookChannelConfig struct {
	AuthScheme *EventHookChannelConfigAuthScheme `json:"authScheme,omitempty"`
	Headers    []*EventHookChannelConfigHeader   `json:"headers,omitempty"`
	Uri        string                            `json:"uri,omitempty"`
}

type EventHookChannelConfigAuthScheme

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

type EventHookChannelConfigAuthSchemeType

type EventHookChannelConfigAuthSchemeType string

type EventHookChannelConfigHeader

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

type EventHookResource

type EventHookResource resource

func (*EventHookResource) ActivateEventHook

func (m *EventHookResource) ActivateEventHook(ctx context.Context, eventHookId string) (*EventHook, *Response, error)

func (*EventHookResource) CreateEventHook

func (m *EventHookResource) CreateEventHook(ctx context.Context, body EventHook) (*EventHook, *Response, error)

func (*EventHookResource) DeactivateEventHook

func (m *EventHookResource) DeactivateEventHook(ctx context.Context, eventHookId string) (*EventHook, *Response, error)

func (*EventHookResource) DeleteEventHook

func (m *EventHookResource) DeleteEventHook(ctx context.Context, eventHookId string) (*Response, error)

func (*EventHookResource) GetEventHook

func (m *EventHookResource) GetEventHook(ctx context.Context, eventHookId string) (*EventHook, *Response, error)

func (*EventHookResource) ListEventHooks

func (m *EventHookResource) ListEventHooks(ctx context.Context) ([]*EventHook, *Response, error)

func (*EventHookResource) UpdateEventHook

func (m *EventHookResource) UpdateEventHook(ctx context.Context, eventHookId string, body EventHook) (*EventHook, *Response, error)

func (*EventHookResource) VerifyEventHook

func (m *EventHookResource) VerifyEventHook(ctx context.Context, eventHookId string) (*EventHook, *Response, error)

type EventSubscriptions

type EventSubscriptions struct {
	Items []string `json:"items,omitempty"`
	Type  string   `json:"type,omitempty"`
}

type Factor

type Factor interface {
	IsUserFactorInstance() bool
}

type FactorProvider

type FactorProvider string

type FactorResultType

type FactorResultType string

type FactorStatus

type FactorStatus string

type FactorType

type FactorType string

type Feature

type Feature struct {
	Links       interface{}   `json:"_links,omitempty"`
	Description string        `json:"description,omitempty"`
	Id          string        `json:"id,omitempty"`
	Name        string        `json:"name,omitempty"`
	Stage       *FeatureStage `json:"stage,omitempty"`
	Status      string        `json:"status,omitempty"`
	Type        string        `json:"type,omitempty"`
}

type FeatureResource

type FeatureResource resource

func (*FeatureResource) GetFeature

func (m *FeatureResource) GetFeature(ctx context.Context, featureId string) (*Feature, *Response, error)

func (*FeatureResource) ListFeatureDependencies

func (m *FeatureResource) ListFeatureDependencies(ctx context.Context, featureId string) ([]*Feature, *Response, error)

func (*FeatureResource) ListFeatureDependents

func (m *FeatureResource) ListFeatureDependents(ctx context.Context, featureId string) ([]*Feature, *Response, error)

func (*FeatureResource) ListFeatures

func (m *FeatureResource) ListFeatures(ctx context.Context) ([]*Feature, *Response, error)

func (*FeatureResource) UpdateFeatureLifecycle

func (m *FeatureResource) UpdateFeatureLifecycle(ctx context.Context, featureId string, lifecycle string, qp *query.Params) (*Feature, *Response, error)

type FeatureStage

type FeatureStage struct {
	State string `json:"state,omitempty"`
	Value string `json:"value,omitempty"`
}

type FeatureStageState

type FeatureStageState string

type FeatureStageValue

type FeatureStageValue string

type FeatureType

type FeatureType string

type ForgotPasswordResponse

type ForgotPasswordResponse struct {
	ResetPasswordUrl string `json:"resetPasswordUrl,omitempty"`
}

type GrantTypePolicyRuleCondition

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

type Group

type Group struct {
	Embedded              interface{}   `json:"_embedded,omitempty"`
	Links                 interface{}   `json:"_links,omitempty"`
	Created               *time.Time    `json:"created,omitempty"`
	Id                    string        `json:"id,omitempty"`
	LastMembershipUpdated *time.Time    `json:"lastMembershipUpdated,omitempty"`
	LastUpdated           *time.Time    `json:"lastUpdated,omitempty"`
	ObjectClass           []string      `json:"objectClass,omitempty"`
	Profile               *GroupProfile `json:"profile,omitempty"`
	Type                  string        `json:"type,omitempty"`
}

type GroupCondition

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

type GroupPolicyRuleCondition

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

type GroupProfile

type GroupProfile struct {
	Description string `json:"description,omitempty"`
	Name        string `json:"name,omitempty"`
}

type GroupResource

type GroupResource resource

func (*GroupResource) ActivateGroupRule

func (m *GroupResource) ActivateGroupRule(ctx context.Context, ruleId string) (*Response, error)

Activates a specific group rule by id from your organization

func (*GroupResource) AddApplicationInstanceTargetToAppAdminRoleGivenToGroup

func (m *GroupResource) AddApplicationInstanceTargetToAppAdminRoleGivenToGroup(ctx context.Context, groupId string, roleId string, appName string, applicationId string) (*Response, error)

Add App Instance Target to App Administrator Role given to a Group

func (*GroupResource) AddApplicationTargetToAdminRoleGivenToGroup

func (m *GroupResource) AddApplicationTargetToAdminRoleGivenToGroup(ctx context.Context, groupId string, roleId string, appName string) (*Response, error)

func (*GroupResource) AddGroupTargetToGroupAdministratorRoleForGroup

func (m *GroupResource) AddGroupTargetToGroupAdministratorRoleForGroup(ctx context.Context, groupId string, roleId string, targetGroupId string) (*Response, error)

func (*GroupResource) AddUserToGroup

func (m *GroupResource) AddUserToGroup(ctx context.Context, groupId string, userId string) (*Response, error)

Adds a user to a group with 'OKTA_GROUP' type.

func (*GroupResource) AssignRoleToGroup

func (m *GroupResource) AssignRoleToGroup(ctx context.Context, groupId string, body AssignRoleRequest, qp *query.Params) (*Role, *Response, error)

Assigns a Role to a Group

func (*GroupResource) CreateGroup

func (m *GroupResource) CreateGroup(ctx context.Context, body Group) (*Group, *Response, error)

Adds a new group with `OKTA_GROUP` type to your organization.

func (*GroupResource) CreateGroupRule

func (m *GroupResource) CreateGroupRule(ctx context.Context, body GroupRule) (*GroupRule, *Response, error)

Creates a group rule to dynamically add users to the specified group if they match the condition

func (*GroupResource) DeactivateGroupRule

func (m *GroupResource) DeactivateGroupRule(ctx context.Context, ruleId string) (*Response, error)

Deactivates a specific group rule by id from your organization

func (*GroupResource) DeleteGroup

func (m *GroupResource) DeleteGroup(ctx context.Context, groupId string) (*Response, error)

Removes a group with `OKTA_GROUP` type from your organization.

func (*GroupResource) DeleteGroupRule

func (m *GroupResource) DeleteGroupRule(ctx context.Context, ruleId string) (*Response, error)

Removes a specific group rule by id from your organization

func (*GroupResource) GetGroup

func (m *GroupResource) GetGroup(ctx context.Context, groupId string) (*Group, *Response, error)

Lists all group rules for your organization.

func (*GroupResource) GetGroupRule

func (m *GroupResource) GetGroupRule(ctx context.Context, ruleId string, qp *query.Params) (*GroupRule, *Response, error)

Fetches a specific group rule by id from your organization

func (*GroupResource) GetRole

func (m *GroupResource) GetRole(ctx context.Context, groupId string, roleId string) (*Role, *Response, error)

func (*GroupResource) ListApplicationTargetsForApplicationAdministratorRoleForGroup

func (m *GroupResource) ListApplicationTargetsForApplicationAdministratorRoleForGroup(ctx context.Context, groupId string, roleId string, qp *query.Params) ([]*CatalogApplication, *Response, error)

Lists all App targets for an `APP_ADMIN` Role assigned to a Group. This methods return list may include full Applications or Instances. The response for an instance will have an `ID` value, while Application will not have an ID.

func (*GroupResource) ListAssignedApplicationsForGroup

func (m *GroupResource) ListAssignedApplicationsForGroup(ctx context.Context, groupId string, qp *query.Params) ([]App, *Response, error)

Enumerates all applications that are assigned to a group.

func (*GroupResource) ListGroupAssignedRoles

func (m *GroupResource) ListGroupAssignedRoles(ctx context.Context, groupId string, qp *query.Params) ([]*Role, *Response, error)

func (*GroupResource) ListGroupRules

func (m *GroupResource) ListGroupRules(ctx context.Context, qp *query.Params) ([]*GroupRule, *Response, error)

Lists all group rules for your organization.

func (*GroupResource) ListGroupTargetsForGroupRole

func (m *GroupResource) ListGroupTargetsForGroupRole(ctx context.Context, groupId string, roleId string, qp *query.Params) ([]*Group, *Response, error)

func (*GroupResource) ListGroupUsers

func (m *GroupResource) ListGroupUsers(ctx context.Context, groupId string, qp *query.Params) ([]*User, *Response, error)

Enumerates all users that are a member of a group.

func (*GroupResource) ListGroups

func (m *GroupResource) ListGroups(ctx context.Context, qp *query.Params) ([]*Group, *Response, error)

Enumerates groups in your organization with pagination. A subset of groups can be returned that match a supported filter expression or query.

func (*GroupResource) RemoveApplicationTargetFromAdministratorRoleGivenToGroup

func (m *GroupResource) RemoveApplicationTargetFromAdministratorRoleGivenToGroup(ctx context.Context, groupId string, roleId string, appName string, applicationId string) (*Response, error)

Remove App Instance Target to App Administrator Role given to a Group

func (*GroupResource) RemoveApplicationTargetFromApplicationAdministratorRoleGivenToGroup

func (m *GroupResource) RemoveApplicationTargetFromApplicationAdministratorRoleGivenToGroup(ctx context.Context, groupId string, roleId string, appName string) (*Response, error)

func (*GroupResource) RemoveGroupTargetFromGroupAdministratorRoleGivenToGroup

func (m *GroupResource) RemoveGroupTargetFromGroupAdministratorRoleGivenToGroup(ctx context.Context, groupId string, roleId string, targetGroupId string) (*Response, error)

func (*GroupResource) RemoveRoleFromGroup

func (m *GroupResource) RemoveRoleFromGroup(ctx context.Context, groupId string, roleId string) (*Response, error)

Unassigns a Role from a Group

func (*GroupResource) RemoveUserFromGroup

func (m *GroupResource) RemoveUserFromGroup(ctx context.Context, groupId string, userId string) (*Response, error)

Removes a user from a group with 'OKTA_GROUP' type.

func (*GroupResource) UpdateGroup

func (m *GroupResource) UpdateGroup(ctx context.Context, groupId string, body Group) (*Group, *Response, error)

Updates the profile for a group with `OKTA_GROUP` type from your organization.

func (*GroupResource) UpdateGroupRule

func (m *GroupResource) UpdateGroupRule(ctx context.Context, ruleId string, body GroupRule) (*GroupRule, *Response, error)

Updates a group rule. Only `INACTIVE` rules can be updated.

type GroupRule

type GroupRule struct {
	Actions     *GroupRuleAction     `json:"actions,omitempty"`
	Conditions  *GroupRuleConditions `json:"conditions,omitempty"`
	Created     *time.Time           `json:"created,omitempty"`
	Id          string               `json:"id,omitempty"`
	LastUpdated *time.Time           `json:"lastUpdated,omitempty"`
	Name        string               `json:"name,omitempty"`
	Status      string               `json:"status,omitempty"`
	Type        string               `json:"type,omitempty"`
}

type GroupRuleAction

type GroupRuleAction struct {
	AssignUserToGroups *GroupRuleGroupAssignment `json:"assignUserToGroups,omitempty"`
}

type GroupRuleConditions

type GroupRuleConditions struct {
	Expression *GroupRuleExpression      `json:"expression,omitempty"`
	People     *GroupRulePeopleCondition `json:"people,omitempty"`
}

type GroupRuleExpression

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

type GroupRuleGroupAssignment

type GroupRuleGroupAssignment struct {
	GroupIds []string `json:"groupIds,omitempty"`
}

type GroupRuleGroupCondition

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

type GroupRulePeopleCondition

type GroupRulePeopleCondition struct {
	Groups *GroupRuleGroupCondition `json:"groups,omitempty"`
	Users  *GroupRuleUserCondition  `json:"users,omitempty"`
}

type GroupRuleResource

type GroupRuleResource resource

func (*GroupRuleResource) DeleteGroupRule

func (m *GroupRuleResource) DeleteGroupRule(ctx context.Context, ruleId string) (*Response, error)

Removes a specific group rule by id from your organization

func (*GroupRuleResource) UpdateGroupRule

func (m *GroupRuleResource) UpdateGroupRule(ctx context.Context, ruleId string, body GroupRule) (*GroupRule, *Response, error)

Updates a group rule. Only `INACTIVE` rules can be updated.

type GroupRuleStatus

type GroupRuleStatus string

type GroupRuleUserCondition

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

type GroupType

type GroupType string

type HardwareUserFactor

type HardwareUserFactor struct {
	Embedded    interface{}                `json:"_embedded,omitempty"`
	Links       interface{}                `json:"_links,omitempty"`
	Created     *time.Time                 `json:"created,omitempty"`
	FactorType  string                     `json:"factorType,omitempty"`
	Id          string                     `json:"id,omitempty"`
	LastUpdated *time.Time                 `json:"lastUpdated,omitempty"`
	Provider    string                     `json:"provider,omitempty"`
	Status      string                     `json:"status,omitempty"`
	Verify      *VerifyFactorRequest       `json:"verify,omitempty"`
	Profile     *HardwareUserFactorProfile `json:"profile,omitempty"`
}

func NewHardwareUserFactor

func NewHardwareUserFactor() *HardwareUserFactor

func (*HardwareUserFactor) IsUserFactorInstance

func (a *HardwareUserFactor) IsUserFactorInstance() bool

type HardwareUserFactorProfile

type HardwareUserFactorProfile struct {
	CredentialId string `json:"credentialId,omitempty"`
}

func NewHardwareUserFactorProfile

func NewHardwareUserFactorProfile() *HardwareUserFactorProfile

func (*HardwareUserFactorProfile) IsUserFactorInstance

func (a *HardwareUserFactorProfile) IsUserFactorInstance() bool

type IdentityProvider

type IdentityProvider struct {
	Links       interface{}             `json:"_links,omitempty"`
	Created     *time.Time              `json:"created,omitempty"`
	Id          string                  `json:"id,omitempty"`
	IssuerMode  string                  `json:"issuerMode,omitempty"`
	LastUpdated *time.Time              `json:"lastUpdated,omitempty"`
	Name        string                  `json:"name,omitempty"`
	Policy      *IdentityProviderPolicy `json:"policy,omitempty"`
	Protocol    *Protocol               `json:"protocol,omitempty"`
	Status      string                  `json:"status,omitempty"`
	Type        string                  `json:"type,omitempty"`
}

type IdentityProviderApplicationUser

type IdentityProviderApplicationUser struct {
	Embedded    interface{} `json:"_embedded,omitempty"`
	Links       interface{} `json:"_links,omitempty"`
	Created     string      `json:"created,omitempty"`
	ExternalId  string      `json:"externalId,omitempty"`
	Id          string      `json:"id,omitempty"`
	LastUpdated string      `json:"lastUpdated,omitempty"`
	Profile     interface{} `json:"profile,omitempty"`
}

type IdentityProviderCredentials

type IdentityProviderCredentials struct {
	Client  *IdentityProviderCredentialsClient  `json:"client,omitempty"`
	Signing *IdentityProviderCredentialsSigning `json:"signing,omitempty"`
	Trust   *IdentityProviderCredentialsTrust   `json:"trust,omitempty"`
}

type IdentityProviderCredentialsClient

type IdentityProviderCredentialsClient struct {
	ClientId     string `json:"client_id,omitempty"`
	ClientSecret string `json:"client_secret,omitempty"`
}

type IdentityProviderCredentialsSigning

type IdentityProviderCredentialsSigning struct {
	Kid string `json:"kid,omitempty"`
}

type IdentityProviderCredentialsTrust

type IdentityProviderCredentialsTrust struct {
	Audience                string `json:"audience,omitempty"`
	Issuer                  string `json:"issuer,omitempty"`
	Kid                     string `json:"kid,omitempty"`
	Revocation              string `json:"revocation,omitempty"`
	RevocationCacheLifetime int64  `json:"revocationCacheLifetime,omitempty"`
}

type IdentityProviderPolicy

type IdentityProviderPolicy struct {
	Embedded     interface{}           `json:"_embedded,omitempty"`
	Links        interface{}           `json:"_links,omitempty"`
	Conditions   *PolicyRuleConditions `json:"conditions,omitempty"`
	Created      *time.Time            `json:"created,omitempty"`
	Description  string                `json:"description,omitempty"`
	Id           string                `json:"id,omitempty"`
	LastUpdated  *time.Time            `json:"lastUpdated,omitempty"`
	Name         string                `json:"name,omitempty"`
	Priority     int64                 `json:"priority,omitempty"`
	Status       string                `json:"status,omitempty"`
	System       *bool                 `json:"system,omitempty"`
	Type         string                `json:"type,omitempty"`
	AccountLink  *PolicyAccountLink    `json:"accountLink,omitempty"`
	MaxClockSkew int64                 `json:"maxClockSkew,omitempty"`
	Provisioning *Provisioning         `json:"provisioning,omitempty"`
	Subject      *PolicySubject        `json:"subject,omitempty"`
}

type IdentityProviderPolicyRuleCondition

type IdentityProviderPolicyRuleCondition struct {
	IdpIds   []string `json:"idpIds,omitempty"`
	Provider string   `json:"provider,omitempty"`
}

type IdentityProviderResource

type IdentityProviderResource resource

func (*IdentityProviderResource) ActivateIdentityProvider

func (m *IdentityProviderResource) ActivateIdentityProvider(ctx context.Context, idpId string) (*IdentityProvider, *Response, error)

Activates an inactive IdP.

func (*IdentityProviderResource) CloneIdentityProviderKey

func (m *IdentityProviderResource) CloneIdentityProviderKey(ctx context.Context, idpId string, keyId string, qp *query.Params) (*JsonWebKey, *Response, error)

Clones a X.509 certificate for an IdP signing key credential from a source IdP to target IdP

func (*IdentityProviderResource) CreateIdentityProvider

func (m *IdentityProviderResource) CreateIdentityProvider(ctx context.Context, body IdentityProvider) (*IdentityProvider, *Response, error)

Adds a new IdP to your organization.

func (*IdentityProviderResource) CreateIdentityProviderKey

func (m *IdentityProviderResource) CreateIdentityProviderKey(ctx context.Context, body JsonWebKey) (*JsonWebKey, *Response, error)

Adds a new X.509 certificate credential to the IdP key store.

func (*IdentityProviderResource) DeactivateIdentityProvider

func (m *IdentityProviderResource) DeactivateIdentityProvider(ctx context.Context, idpId string) (*IdentityProvider, *Response, error)

Deactivates an active IdP.

func (*IdentityProviderResource) DeleteIdentityProvider

func (m *IdentityProviderResource) DeleteIdentityProvider(ctx context.Context, idpId string) (*Response, error)

Removes an IdP from your organization.

func (*IdentityProviderResource) DeleteIdentityProviderKey

func (m *IdentityProviderResource) DeleteIdentityProviderKey(ctx context.Context, keyId string) (*Response, error)

Deletes a specific IdP Key Credential by `kid` if it is not currently being used by an Active or Inactive IdP.

func (*IdentityProviderResource) GenerateCsrForIdentityProvider

func (m *IdentityProviderResource) GenerateCsrForIdentityProvider(ctx context.Context, idpId string, body CsrMetadata) (*Csr, *Response, error)

Generates a new key pair and returns a Certificate Signing Request for it.

func (*IdentityProviderResource) GenerateIdentityProviderSigningKey

func (m *IdentityProviderResource) GenerateIdentityProviderSigningKey(ctx context.Context, idpId string, qp *query.Params) (*JsonWebKey, *Response, error)

Generates a new X.509 certificate for an IdP signing key credential to be used for signing assertions sent to the IdP

func (*IdentityProviderResource) GetCsrForIdentityProvider

func (m *IdentityProviderResource) GetCsrForIdentityProvider(ctx context.Context, idpId string, csrId string) (*Csr, *Response, error)

Gets a specific Certificate Signing Request model by id

func (*IdentityProviderResource) GetIdentityProvider

func (m *IdentityProviderResource) GetIdentityProvider(ctx context.Context, idpId string) (*IdentityProvider, *Response, error)

Fetches an IdP by `id`.

func (*IdentityProviderResource) GetIdentityProviderApplicationUser

func (m *IdentityProviderResource) GetIdentityProviderApplicationUser(ctx context.Context, idpId string, userId string) (*IdentityProviderApplicationUser, *Response, error)

Fetches a linked IdP user by ID

func (*IdentityProviderResource) GetIdentityProviderKey

func (m *IdentityProviderResource) GetIdentityProviderKey(ctx context.Context, keyId string) (*JsonWebKey, *Response, error)

Gets a specific IdP Key Credential by `kid`

func (*IdentityProviderResource) GetIdentityProviderSigningKey

func (m *IdentityProviderResource) GetIdentityProviderSigningKey(ctx context.Context, idpId string, keyId string) (*JsonWebKey, *Response, error)

Gets a specific IdP Key Credential by `kid`

func (*IdentityProviderResource) LinkUserToIdentityProvider

Links an Okta user to an existing Social Identity Provider. This does not support the SAML2 Identity Provider Type

func (*IdentityProviderResource) ListCsrsForIdentityProvider

func (m *IdentityProviderResource) ListCsrsForIdentityProvider(ctx context.Context, idpId string) ([]*Csr, *Response, error)

Enumerates Certificate Signing Requests for an IdP

func (*IdentityProviderResource) ListIdentityProviderApplicationUsers

func (m *IdentityProviderResource) ListIdentityProviderApplicationUsers(ctx context.Context, idpId string) ([]*IdentityProviderApplicationUser, *Response, error)

Find all the users linked to an identity provider

func (*IdentityProviderResource) ListIdentityProviderKeys

func (m *IdentityProviderResource) ListIdentityProviderKeys(ctx context.Context, qp *query.Params) ([]*JsonWebKey, *Response, error)

Enumerates IdP key credentials.

func (*IdentityProviderResource) ListIdentityProviderSigningKeys

func (m *IdentityProviderResource) ListIdentityProviderSigningKeys(ctx context.Context, idpId string) ([]*JsonWebKey, *Response, error)

Enumerates signing key credentials for an IdP

func (*IdentityProviderResource) ListIdentityProviders

func (m *IdentityProviderResource) ListIdentityProviders(ctx context.Context, qp *query.Params) ([]*IdentityProvider, *Response, error)

Enumerates IdPs in your organization with pagination. A subset of IdPs can be returned that match a supported filter expression or query.

func (*IdentityProviderResource) ListSocialAuthTokens

func (m *IdentityProviderResource) ListSocialAuthTokens(ctx context.Context, idpId string, userId string) ([]*SocialAuthToken, *Response, error)

Fetches the tokens minted by the Social Authentication Provider when the user authenticates with Okta via Social Auth.

func (*IdentityProviderResource) PublishBinaryCerCertForIdentityProvider

func (m *IdentityProviderResource) PublishBinaryCerCertForIdentityProvider(ctx context.Context, idpId string, csrId string, body string) (*JsonWebKey, *Response, error)

Update the Certificate Signing Request with a signed X.509 certificate and add it into the signing key credentials for the IdP.

func (*IdentityProviderResource) PublishBinaryDerCertForIdentityProvider

func (m *IdentityProviderResource) PublishBinaryDerCertForIdentityProvider(ctx context.Context, idpId string, csrId string, body string) (*JsonWebKey, *Response, error)

Update the Certificate Signing Request with a signed X.509 certificate and add it into the signing key credentials for the IdP.

func (*IdentityProviderResource) PublishBinaryPemCertForIdentityProvider

func (m *IdentityProviderResource) PublishBinaryPemCertForIdentityProvider(ctx context.Context, idpId string, csrId string, body string) (*JsonWebKey, *Response, error)

Update the Certificate Signing Request with a signed X.509 certificate and add it into the signing key credentials for the IdP.

func (*IdentityProviderResource) PublishCerCertForIdentityProvider

func (m *IdentityProviderResource) PublishCerCertForIdentityProvider(ctx context.Context, idpId string, csrId string, body string) (*JsonWebKey, *Response, error)

Update the Certificate Signing Request with a signed X.509 certificate and add it into the signing key credentials for the IdP.

func (*IdentityProviderResource) PublishDerCertForIdentityProvider

func (m *IdentityProviderResource) PublishDerCertForIdentityProvider(ctx context.Context, idpId string, csrId string, body string) (*JsonWebKey, *Response, error)

Update the Certificate Signing Request with a signed X.509 certificate and add it into the signing key credentials for the IdP.

func (*IdentityProviderResource) RevokeCsrForIdentityProvider

func (m *IdentityProviderResource) RevokeCsrForIdentityProvider(ctx context.Context, idpId string, csrId string) (*Response, error)

Revoke a Certificate Signing Request and delete the key pair from the IdP

func (*IdentityProviderResource) UnlinkUserFromIdentityProvider

func (m *IdentityProviderResource) UnlinkUserFromIdentityProvider(ctx context.Context, idpId string, userId string) (*Response, error)

Removes the link between the Okta user and the IdP user.

func (*IdentityProviderResource) UpdateIdentityProvider

func (m *IdentityProviderResource) UpdateIdentityProvider(ctx context.Context, idpId string, body IdentityProvider) (*IdentityProvider, *Response, error)

Updates the configuration for an IdP.

type InactivityPolicyRuleCondition

type InactivityPolicyRuleCondition struct {
	Number int64  `json:"number,omitempty"`
	Unit   string `json:"unit,omitempty"`
}

type InlineHook

type InlineHook struct {
	Links       interface{}        `json:"_links,omitempty"`
	Channel     *InlineHookChannel `json:"channel,omitempty"`
	Created     *time.Time         `json:"created,omitempty"`
	Id          string             `json:"id,omitempty"`
	LastUpdated *time.Time         `json:"lastUpdated,omitempty"`
	Name        string             `json:"name,omitempty"`
	Status      string             `json:"status,omitempty"`
	Type        string             `json:"type,omitempty"`
	Version     string             `json:"version,omitempty"`
}

type InlineHookChannel

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

type InlineHookChannelConfig

type InlineHookChannelConfig struct {
	AuthScheme *InlineHookChannelConfigAuthScheme `json:"authScheme,omitempty"`
	Headers    []*InlineHookChannelConfigHeaders  `json:"headers,omitempty"`
	Method     string                             `json:"method,omitempty"`
	Uri        string                             `json:"uri,omitempty"`
}

type InlineHookChannelConfigAuthScheme

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

type InlineHookChannelConfigHeaders

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

type InlineHookPayload

type InlineHookPayload struct {
}

type InlineHookResource

type InlineHookResource resource

func (*InlineHookResource) ActivateInlineHook

func (m *InlineHookResource) ActivateInlineHook(ctx context.Context, inlineHookId string) (*InlineHook, *Response, error)

Activates the Inline Hook matching the provided id

func (*InlineHookResource) CreateInlineHook

func (m *InlineHookResource) CreateInlineHook(ctx context.Context, body InlineHook) (*InlineHook, *Response, error)

func (*InlineHookResource) DeactivateInlineHook

func (m *InlineHookResource) DeactivateInlineHook(ctx context.Context, inlineHookId string) (*InlineHook, *Response, error)

Deactivates the Inline Hook matching the provided id

func (*InlineHookResource) DeleteInlineHook

func (m *InlineHookResource) DeleteInlineHook(ctx context.Context, inlineHookId string) (*Response, error)

Deletes the Inline Hook matching the provided id. Once deleted, the Inline Hook is unrecoverable. As a safety precaution, only Inline Hooks with a status of INACTIVE are eligible for deletion.

func (*InlineHookResource) ExecuteInlineHook

func (m *InlineHookResource) ExecuteInlineHook(ctx context.Context, inlineHookId string, body InlineHookPayload) (*InlineHookResponse, *Response, error)

Executes the Inline Hook matching the provided inlineHookId using the request body as the input. This will send the provided data through the Channel and return a response if it matches the correct data contract. This execution endpoint should only be used for testing purposes.

func (*InlineHookResource) GetInlineHook

func (m *InlineHookResource) GetInlineHook(ctx context.Context, inlineHookId string) (*InlineHook, *Response, error)

Gets an inline hook by ID

func (*InlineHookResource) ListInlineHooks

func (m *InlineHookResource) ListInlineHooks(ctx context.Context, qp *query.Params) ([]*InlineHook, *Response, error)

func (*InlineHookResource) UpdateInlineHook

func (m *InlineHookResource) UpdateInlineHook(ctx context.Context, inlineHookId string, body InlineHook) (*InlineHook, *Response, error)

Updates an inline hook by ID

type InlineHookResponse

type InlineHookResponse struct {
	Commands []*InlineHookResponseCommands `json:"commands,omitempty"`
}

type InlineHookResponseCommandValue

type InlineHookResponseCommandValue struct {
	Op    string `json:"op,omitempty"`
	Path  string `json:"path,omitempty"`
	Value string `json:"value,omitempty"`
}

type InlineHookResponseCommands

type InlineHookResponseCommands struct {
	Type  string                            `json:"type,omitempty"`
	Value []*InlineHookResponseCommandValue `json:"value,omitempty"`
}

type InlineHookStatus added in v2.1.0

type InlineHookStatus string

type InlineHookType added in v2.1.0

type InlineHookType string

type IonField

type IonField struct {
	Form     *IonForm    `json:"form,omitempty"`
	Label    string      `json:"label,omitempty"`
	Mutable  *bool       `json:"mutable,omitempty"`
	Name     string      `json:"name,omitempty"`
	Required *bool       `json:"required,omitempty"`
	Secret   *bool       `json:"secret,omitempty"`
	Type     string      `json:"type,omitempty"`
	Value    interface{} `json:"value,omitempty"`
	Visible  *bool       `json:"visible,omitempty"`
}

type IonForm

type IonForm struct {
	Accepts   string      `json:"accepts,omitempty"`
	Href      string      `json:"href,omitempty"`
	Method    string      `json:"method,omitempty"`
	Name      string      `json:"name,omitempty"`
	Produces  string      `json:"produces,omitempty"`
	Refresh   int64       `json:"refresh,omitempty"`
	Rel       []string    `json:"rel,omitempty"`
	RelatesTo []string    `json:"relatesTo,omitempty"`
	Value     []*IonField `json:"value,omitempty"`
}

type JsonWebKey

type JsonWebKey struct {
	Links       interface{} `json:"_links,omitempty"`
	Alg         string      `json:"alg,omitempty"`
	Created     *time.Time  `json:"created,omitempty"`
	E           string      `json:"e,omitempty"`
	ExpiresAt   *time.Time  `json:"expiresAt,omitempty"`
	KeyOps      []string    `json:"key_ops,omitempty"`
	Kid         string      `json:"kid,omitempty"`
	Kty         string      `json:"kty,omitempty"`
	LastUpdated *time.Time  `json:"lastUpdated,omitempty"`
	N           string      `json:"n,omitempty"`
	Status      string      `json:"status,omitempty"`
	Use         string      `json:"use,omitempty"`
	X5c         []string    `json:"x5c,omitempty"`
	X5t         string      `json:"x5t,omitempty"`
	X5tS256     string      `json:"x5t#S256,omitempty"`
	X5u         string      `json:"x5u,omitempty"`
}

func NewJsonWebKey

func NewJsonWebKey() *JsonWebKey

func (*JsonWebKey) IsApplicationInstance

func (a *JsonWebKey) IsApplicationInstance() bool

type JwkUse

type JwkUse struct {
	Use string `json:"use,omitempty"`
}

type LifecycleExpirationPolicyRuleCondition

type LifecycleExpirationPolicyRuleCondition struct {
	LifecycleStatus string `json:"lifecycleStatus,omitempty"`
	Number          int64  `json:"number,omitempty"`
	Unit            string `json:"unit,omitempty"`
}

type LinkedObject

type LinkedObject struct {
	Links      interface{}          `json:"_links,omitempty"`
	Associated *LinkedObjectDetails `json:"associated,omitempty"`
	Primary    *LinkedObjectDetails `json:"primary,omitempty"`
}

type LinkedObjectDetails

type LinkedObjectDetails struct {
	Description string `json:"description,omitempty"`
	Name        string `json:"name,omitempty"`
	Title       string `json:"title,omitempty"`
	Type        string `json:"type,omitempty"`
}

type LinkedObjectDetailsType

type LinkedObjectDetailsType string

type LinkedObjectResource

type LinkedObjectResource resource

func (*LinkedObjectResource) AddLinkedObjectDefinition

func (m *LinkedObjectResource) AddLinkedObjectDefinition(ctx context.Context, body LinkedObject) (*LinkedObject, *Response, error)

func (*LinkedObjectResource) DeleteLinkedObjectDefinition

func (m *LinkedObjectResource) DeleteLinkedObjectDefinition(ctx context.Context, linkedObjectName string) (*Response, error)

func (*LinkedObjectResource) GetLinkedObjectDefinition

func (m *LinkedObjectResource) GetLinkedObjectDefinition(ctx context.Context, linkedObjectName string) (*LinkedObject, *Response, error)

func (*LinkedObjectResource) ListLinkedObjectDefinitions

func (m *LinkedObjectResource) ListLinkedObjectDefinitions(ctx context.Context) ([]*LinkedObject, *Response, error)

type LogActor

type LogActor struct {
	AlternateId string      `json:"alternateId,omitempty"`
	Detail      interface{} `json:"detail,omitempty"`
	DisplayName string      `json:"displayName,omitempty"`
	Id          string      `json:"id,omitempty"`
	Type        string      `json:"type,omitempty"`
}

type LogAuthenticationContext

type LogAuthenticationContext struct {
	AuthenticationProvider string     `json:"authenticationProvider,omitempty"`
	AuthenticationStep     int64      `json:"authenticationStep,omitempty"`
	CredentialProvider     string     `json:"credentialProvider,omitempty"`
	CredentialType         string     `json:"credentialType,omitempty"`
	ExternalSessionId      string     `json:"externalSessionId,omitempty"`
	Interface              string     `json:"interface,omitempty"`
	Issuer                 *LogIssuer `json:"issuer,omitempty"`
}

type LogAuthenticationProvider

type LogAuthenticationProvider string

type LogClient

type LogClient struct {
	Device              string                  `json:"device,omitempty"`
	GeographicalContext *LogGeographicalContext `json:"geographicalContext,omitempty"`
	Id                  string                  `json:"id,omitempty"`
	IpAddress           string                  `json:"ipAddress,omitempty"`
	UserAgent           *LogUserAgent           `json:"userAgent,omitempty"`
	Zone                string                  `json:"zone,omitempty"`
}

type LogCredentialProvider

type LogCredentialProvider string

type LogCredentialType

type LogCredentialType string

type LogDebugContext

type LogDebugContext struct {
	DebugData interface{} `json:"debugData,omitempty"`
}

type LogEvent

type LogEvent struct {
	Actor                 *LogActor                 `json:"actor,omitempty"`
	AuthenticationContext *LogAuthenticationContext `json:"authenticationContext,omitempty"`
	Client                *LogClient                `json:"client,omitempty"`
	DebugContext          *LogDebugContext          `json:"debugContext,omitempty"`
	DisplayMessage        string                    `json:"displayMessage,omitempty"`
	EventType             string                    `json:"eventType,omitempty"`
	LegacyEventType       string                    `json:"legacyEventType,omitempty"`
	Outcome               *LogOutcome               `json:"outcome,omitempty"`
	Published             *time.Time                `json:"published,omitempty"`
	Request               *LogRequest               `json:"request,omitempty"`
	SecurityContext       *LogSecurityContext       `json:"securityContext,omitempty"`
	Severity              string                    `json:"severity,omitempty"`
	Target                []*LogTarget              `json:"target,omitempty"`
	Transaction           *LogTransaction           `json:"transaction,omitempty"`
	Uuid                  string                    `json:"uuid,omitempty"`
	Version               string                    `json:"version,omitempty"`
}

type LogEventResource

type LogEventResource resource

func (*LogEventResource) GetLogs

func (m *LogEventResource) GetLogs(ctx context.Context, qp *query.Params) ([]*LogEvent, *Response, error)

The Okta System Log API provides read access to your organization’s system log. This API provides more functionality than the Events API

type LogGeographicalContext

type LogGeographicalContext struct {
	City        string          `json:"city,omitempty"`
	Country     string          `json:"country,omitempty"`
	Geolocation *LogGeolocation `json:"geolocation,omitempty"`
	PostalCode  string          `json:"postalCode,omitempty"`
	State       string          `json:"state,omitempty"`
}

type LogGeolocation

type LogGeolocation struct {
	Lat float64 `json:"lat,omitempty"`
	Lon float64 `json:"lon,omitempty"`
}

type LogIpAddress

type LogIpAddress struct {
	GeographicalContext *LogGeographicalContext `json:"geographicalContext,omitempty"`
	Ip                  string                  `json:"ip,omitempty"`
	Source              string                  `json:"source,omitempty"`
	Version             string                  `json:"version,omitempty"`
}

type LogIssuer

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

type LogOutcome

type LogOutcome struct {
	Reason string `json:"reason,omitempty"`
	Result string `json:"result,omitempty"`
}

type LogRequest

type LogRequest struct {
	IpChain []*LogIpAddress `json:"ipChain,omitempty"`
}

type LogSecurityContext

type LogSecurityContext struct {
	AsNumber int64  `json:"asNumber,omitempty"`
	AsOrg    string `json:"asOrg,omitempty"`
	Domain   string `json:"domain,omitempty"`
	IsProxy  *bool  `json:"isProxy,omitempty"`
	Isp      string `json:"isp,omitempty"`
}

type LogSeverity

type LogSeverity string

type LogTarget

type LogTarget struct {
	AlternateId string      `json:"alternateId,omitempty"`
	DetailEntry interface{} `json:"detailEntry,omitempty"`
	DisplayName string      `json:"displayName,omitempty"`
	Id          string      `json:"id,omitempty"`
	Type        string      `json:"type,omitempty"`
}

type LogTransaction

type LogTransaction struct {
	Detail interface{} `json:"detail,omitempty"`
	Id     string      `json:"id,omitempty"`
	Type   string      `json:"type,omitempty"`
}

type LogUserAgent

type LogUserAgent struct {
	Browser      string `json:"browser,omitempty"`
	Os           string `json:"os,omitempty"`
	RawUserAgent string `json:"rawUserAgent,omitempty"`
}

type MDMEnrollmentPolicyRuleCondition

type MDMEnrollmentPolicyRuleCondition struct {
	BlockNonSafeAndroid *bool  `json:"blockNonSafeAndroid,omitempty"`
	Enrollment          string `json:"enrollment,omitempty"`
}

type OAuth2Actor

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

type OAuth2Claim

type OAuth2Claim struct {
	Links                interface{}            `json:"_links,omitempty"`
	AlwaysIncludeInToken *bool                  `json:"alwaysIncludeInToken,omitempty"`
	ClaimType            string                 `json:"claimType,omitempty"`
	Conditions           *OAuth2ClaimConditions `json:"conditions,omitempty"`
	GroupFilterType      string                 `json:"group_filter_type,omitempty"`
	Id                   string                 `json:"id,omitempty"`
	Name                 string                 `json:"name,omitempty"`
	Status               string                 `json:"status,omitempty"`
	System               *bool                  `json:"system,omitempty"`
	Value                string                 `json:"value,omitempty"`
	ValueType            string                 `json:"valueType,omitempty"`
}

type OAuth2ClaimConditions

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

type OAuth2Client

type OAuth2Client struct {
	Links      interface{} `json:"_links,omitempty"`
	ClientId   string      `json:"client_id,omitempty"`
	ClientName string      `json:"client_name,omitempty"`
	ClientUri  string      `json:"client_uri,omitempty"`
	LogoUri    string      `json:"logo_uri,omitempty"`
}

type OAuth2RefreshToken

type OAuth2RefreshToken struct {
	Embedded    interface{}  `json:"_embedded,omitempty"`
	Links       interface{}  `json:"_links,omitempty"`
	ClientId    string       `json:"clientId,omitempty"`
	Created     *time.Time   `json:"created,omitempty"`
	CreatedBy   *OAuth2Actor `json:"createdBy,omitempty"`
	ExpiresAt   *time.Time   `json:"expiresAt,omitempty"`
	Id          string       `json:"id,omitempty"`
	Issuer      string       `json:"issuer,omitempty"`
	LastUpdated *time.Time   `json:"lastUpdated,omitempty"`
	Scopes      []string     `json:"scopes,omitempty"`
	Status      string       `json:"status,omitempty"`
	UserId      string       `json:"userId,omitempty"`
}

type OAuth2Scope

type OAuth2Scope struct {
	Consent         string `json:"consent,omitempty"`
	Default         *bool  `json:"default,omitempty"`
	Description     string `json:"description,omitempty"`
	DisplayName     string `json:"displayName,omitempty"`
	Id              string `json:"id,omitempty"`
	MetadataPublish string `json:"metadataPublish,omitempty"`
	Name            string `json:"name,omitempty"`
	System          *bool  `json:"system,omitempty"`
}

type OAuth2ScopeConsentGrant

type OAuth2ScopeConsentGrant struct {
	Embedded    interface{}  `json:"_embedded,omitempty"`
	Links       interface{}  `json:"_links,omitempty"`
	ClientId    string       `json:"clientId,omitempty"`
	Created     *time.Time   `json:"created,omitempty"`
	CreatedBy   *OAuth2Actor `json:"createdBy,omitempty"`
	Id          string       `json:"id,omitempty"`
	Issuer      string       `json:"issuer,omitempty"`
	LastUpdated *time.Time   `json:"lastUpdated,omitempty"`
	ScopeId     string       `json:"scopeId,omitempty"`
	Source      string       `json:"source,omitempty"`
	Status      string       `json:"status,omitempty"`
	UserId      string       `json:"userId,omitempty"`
}

type OAuth2ScopeConsentGrantSource

type OAuth2ScopeConsentGrantSource string

type OAuth2ScopeConsentGrantStatus

type OAuth2ScopeConsentGrantStatus string

type OAuth2ScopesMediationPolicyRuleCondition

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

type OAuth2Token

type OAuth2Token struct {
	Embedded    interface{} `json:"_embedded,omitempty"`
	Links       interface{} `json:"_links,omitempty"`
	ClientId    string      `json:"clientId,omitempty"`
	Created     *time.Time  `json:"created,omitempty"`
	ExpiresAt   *time.Time  `json:"expiresAt,omitempty"`
	Id          string      `json:"id,omitempty"`
	Issuer      string      `json:"issuer,omitempty"`
	LastUpdated *time.Time  `json:"lastUpdated,omitempty"`
	Scopes      []string    `json:"scopes,omitempty"`
	Status      string      `json:"status,omitempty"`
	UserId      string      `json:"userId,omitempty"`
}

func NewOAuth2Token

func NewOAuth2Token() *OAuth2Token

func (*OAuth2Token) IsApplicationInstance

func (a *OAuth2Token) IsApplicationInstance() bool

type OAuthApplicationCredentials

type OAuthApplicationCredentials struct {
	Signing          *ApplicationCredentialsSigning          `json:"signing,omitempty"`
	UserNameTemplate *ApplicationCredentialsUsernameTemplate `json:"userNameTemplate,omitempty"`
	OauthClient      *ApplicationCredentialsOAuthClient      `json:"oauthClient,omitempty"`
}

func NewOAuthApplicationCredentials

func NewOAuthApplicationCredentials() *OAuthApplicationCredentials

func (*OAuthApplicationCredentials) IsApplicationInstance

func (a *OAuthApplicationCredentials) IsApplicationInstance() bool

type OAuthAuthorizationPolicy

type OAuthAuthorizationPolicy struct {
	Embedded    interface{}           `json:"_embedded,omitempty"`
	Links       interface{}           `json:"_links,omitempty"`
	Conditions  *PolicyRuleConditions `json:"conditions,omitempty"`
	Created     *time.Time            `json:"created,omitempty"`
	Description string                `json:"description,omitempty"`
	Id          string                `json:"id,omitempty"`
	LastUpdated *time.Time            `json:"lastUpdated,omitempty"`
	Name        string                `json:"name,omitempty"`
	Priority    int64                 `json:"priority,omitempty"`
	Status      string                `json:"status,omitempty"`
	System      *bool                 `json:"system,omitempty"`
	Type        string                `json:"type,omitempty"`
}

type OAuthEndpointAuthenticationMethod

type OAuthEndpointAuthenticationMethod string

type OAuthGrantType

type OAuthGrantType string

type OAuthResponseType

type OAuthResponseType string

type OktaSignOnPolicy

type OktaSignOnPolicy struct {
	Embedded    interface{}                 `json:"_embedded,omitempty"`
	Links       interface{}                 `json:"_links,omitempty"`
	Conditions  *OktaSignOnPolicyConditions `json:"conditions,omitempty"`
	Created     *time.Time                  `json:"created,omitempty"`
	Description string                      `json:"description,omitempty"`
	Id          string                      `json:"id,omitempty"`
	LastUpdated *time.Time                  `json:"lastUpdated,omitempty"`
	Name        string                      `json:"name,omitempty"`
	Priority    int64                       `json:"priority,omitempty"`
	Status      string                      `json:"status,omitempty"`
	System      *bool                       `json:"system,omitempty"`
	Type        string                      `json:"type,omitempty"`
}

type OktaSignOnPolicyConditions

type OktaSignOnPolicyConditions struct {
	People *PolicyPeopleCondition `json:"people,omitempty"`
}

type OktaSignOnPolicyRule

type OktaSignOnPolicyRule struct {
	Created     *time.Time                      `json:"created,omitempty"`
	Id          string                          `json:"id,omitempty"`
	LastUpdated *time.Time                      `json:"lastUpdated,omitempty"`
	Priority    int64                           `json:"priority,omitempty"`
	Status      string                          `json:"status,omitempty"`
	System      *bool                           `json:"system,omitempty"`
	Type        string                          `json:"type,omitempty"`
	Actions     *OktaSignOnPolicyRuleActions    `json:"actions,omitempty"`
	Conditions  *OktaSignOnPolicyRuleConditions `json:"conditions,omitempty"`
	Name        string                          `json:"name,omitempty"`
}

type OktaSignOnPolicyRuleActions

type OktaSignOnPolicyRuleActions struct {
	Signon *OktaSignOnPolicyRuleSignonActions `json:"signon,omitempty"`
}

type OktaSignOnPolicyRuleConditions

type OktaSignOnPolicyRuleConditions struct {
	AuthContext *PolicyRuleAuthContextCondition `json:"authContext,omitempty"`
	Network     *PolicyNetworkCondition         `json:"network,omitempty"`
	People      *PolicyPeopleCondition          `json:"people,omitempty"`
}

type OktaSignOnPolicyRuleSignonActions

type OktaSignOnPolicyRuleSignonActions struct {
	Access                  string                                    `json:"access,omitempty"`
	FactorLifetime          int64                                     `json:"factorLifetime,omitempty"`
	FactorPromptMode        string                                    `json:"factorPromptMode,omitempty"`
	RememberDeviceByDefault *bool                                     `json:"rememberDeviceByDefault,omitempty"`
	RequireFactor           *bool                                     `json:"requireFactor,omitempty"`
	Session                 *OktaSignOnPolicyRuleSignonSessionActions `json:"session,omitempty"`
}

type OktaSignOnPolicyRuleSignonSessionActions

type OktaSignOnPolicyRuleSignonSessionActions struct {
	MaxSessionIdleMinutes     int64 `json:"maxSessionIdleMinutes"`
	MaxSessionLifetimeMinutes int64 `json:"maxSessionLifetimeMinutes"`
	UsePersistentCookie       *bool `json:"usePersistentCookie,omitempty"`
}

type OpenIdConnectApplication

type OpenIdConnectApplication struct {
	Embedded      interface{}                       `json:"_embedded,omitempty"`
	Links         interface{}                       `json:"_links,omitempty"`
	Accessibility *ApplicationAccessibility         `json:"accessibility,omitempty"`
	Created       *time.Time                        `json:"created,omitempty"`
	Credentials   *OAuthApplicationCredentials      `json:"credentials,omitempty"`
	Features      []string                          `json:"features,omitempty"`
	Id            string                            `json:"id,omitempty"`
	Label         string                            `json:"label,omitempty"`
	LastUpdated   *time.Time                        `json:"lastUpdated,omitempty"`
	Licensing     *ApplicationLicensing             `json:"licensing,omitempty"`
	Name          string                            `json:"name,omitempty"`
	Profile       interface{}                       `json:"profile,omitempty"`
	Settings      *OpenIdConnectApplicationSettings `json:"settings,omitempty"`
	SignOnMode    string                            `json:"signOnMode,omitempty"`
	Status        string                            `json:"status,omitempty"`
	Visibility    *ApplicationVisibility            `json:"visibility,omitempty"`
}

func NewOpenIdConnectApplication

func NewOpenIdConnectApplication() *OpenIdConnectApplication

func (*OpenIdConnectApplication) IsApplicationInstance

func (a *OpenIdConnectApplication) IsApplicationInstance() bool

type OpenIdConnectApplicationConsentMethod

type OpenIdConnectApplicationConsentMethod string

type OpenIdConnectApplicationIdpInitiatedLogin added in v2.3.0

type OpenIdConnectApplicationIdpInitiatedLogin struct {
	DefaultScope []string `json:"default_scope,omitempty"`
	Mode         string   `json:"mode,omitempty"`
}

type OpenIdConnectApplicationIssuerMode

type OpenIdConnectApplicationIssuerMode string

type OpenIdConnectApplicationSettings

type OpenIdConnectApplicationSettings struct {
	App                *ApplicationSettingsApplication         `json:"app,omitempty"`
	ImplicitAssignment *bool                                   `json:"implicitAssignment,omitempty"`
	InlineHookId       string                                  `json:"inlineHookId,omitempty"`
	Notifications      *ApplicationSettingsNotifications       `json:"notifications,omitempty"`
	OauthClient        *OpenIdConnectApplicationSettingsClient `json:"oauthClient,omitempty"`
}

func NewOpenIdConnectApplicationSettings

func NewOpenIdConnectApplicationSettings() *OpenIdConnectApplicationSettings

func (*OpenIdConnectApplicationSettings) IsApplicationInstance

func (a *OpenIdConnectApplicationSettings) IsApplicationInstance() bool

type OpenIdConnectApplicationSettingsClient

type OpenIdConnectApplicationSettingsClient struct {
	ApplicationType        string                                        `json:"application_type,omitempty"`
	ClientUri              string                                        `json:"client_uri,omitempty"`
	ConsentMethod          string                                        `json:"consent_method,omitempty"`
	GrantTypes             []*OAuthGrantType                             `json:"grant_types,omitempty"`
	IdpInitiatedLogin      *OpenIdConnectApplicationIdpInitiatedLogin    `json:"idp_initiated_login,omitempty"`
	InitiateLoginUri       string                                        `json:"initiate_login_uri,omitempty"`
	IssuerMode             string                                        `json:"issuer_mode,omitempty"`
	Jwks                   *OpenIdConnectApplicationSettingsClientKeys   `json:"jwks,omitempty"`
	LogoUri                string                                        `json:"logo_uri,omitempty"`
	PolicyUri              string                                        `json:"policy_uri,omitempty"`
	PostLogoutRedirectUris []string                                      `json:"post_logout_redirect_uris,omitempty"`
	RedirectUris           []string                                      `json:"redirect_uris,omitempty"`
	RefreshToken           *OpenIdConnectApplicationSettingsRefreshToken `json:"refresh_token,omitempty"`
	ResponseTypes          []*OAuthResponseType                          `json:"response_types,omitempty"`
	TosUri                 string                                        `json:"tos_uri,omitempty"`
}

func NewOpenIdConnectApplicationSettingsClient

func NewOpenIdConnectApplicationSettingsClient() *OpenIdConnectApplicationSettingsClient

func (*OpenIdConnectApplicationSettingsClient) IsApplicationInstance

func (a *OpenIdConnectApplicationSettingsClient) IsApplicationInstance() bool

type OpenIdConnectApplicationSettingsClientKeys added in v2.2.0

type OpenIdConnectApplicationSettingsClientKeys struct {
	Keys []*JsonWebKey `json:"keys,omitempty"`
}

type OpenIdConnectApplicationSettingsRefreshToken added in v2.2.0

type OpenIdConnectApplicationSettingsRefreshToken struct {
	Leeway       int64  `json:"leeway,omitempty"`
	RotationType string `json:"rotation_type,omitempty"`
}

type OpenIdConnectApplicationType

type OpenIdConnectApplicationType string

type OpenIdConnectRefreshTokenRotationType added in v2.2.0

type OpenIdConnectRefreshTokenRotationType string

type PasswordCredential

type PasswordCredential struct {
	Hash  *PasswordCredentialHash `json:"hash,omitempty"`
	Hook  *PasswordCredentialHook `json:"hook,omitempty"`
	Value string                  `json:"value,omitempty"`
}

type PasswordCredentialHash

type PasswordCredentialHash struct {
	Algorithm  string `json:"algorithm,omitempty"`
	Salt       string `json:"salt,omitempty"`
	SaltOrder  string `json:"saltOrder,omitempty"`
	Value      string `json:"value,omitempty"`
	WorkFactor int64  `json:"workFactor,omitempty"`
}

type PasswordCredentialHashAlgorithm

type PasswordCredentialHashAlgorithm string

type PasswordCredentialHook

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

type PasswordDictionary

type PasswordDictionary struct {
	Common *PasswordDictionaryCommon `json:"common,omitempty"`
}

type PasswordDictionaryCommon

type PasswordDictionaryCommon struct {
	Exclude *bool `json:"exclude,omitempty"`
}

type PasswordExpirationPolicyRuleCondition

type PasswordExpirationPolicyRuleCondition struct {
	Number int64  `json:"number,omitempty"`
	Unit   string `json:"unit,omitempty"`
}

type PasswordPolicy

type PasswordPolicy struct {
	Embedded    interface{}               `json:"_embedded,omitempty"`
	Links       interface{}               `json:"_links,omitempty"`
	Conditions  *PasswordPolicyConditions `json:"conditions,omitempty"`
	Created     *time.Time                `json:"created,omitempty"`
	Description string                    `json:"description,omitempty"`
	Id          string                    `json:"id,omitempty"`
	LastUpdated *time.Time                `json:"lastUpdated,omitempty"`
	Name        string                    `json:"name,omitempty"`
	Priority    int64                     `json:"priority,omitempty"`
	Status      string                    `json:"status,omitempty"`
	System      *bool                     `json:"system,omitempty"`
	Type        string                    `json:"type,omitempty"`
	Settings    *PasswordPolicySettings   `json:"settings,omitempty"`
}

type PasswordPolicyAuthenticationProviderCondition

type PasswordPolicyAuthenticationProviderCondition struct {
	Include  []string `json:"include,omitempty"`
	Provider string   `json:"provider,omitempty"`
}

type PasswordPolicyConditions

type PasswordPolicyConditions struct {
	AuthProvider *PasswordPolicyAuthenticationProviderCondition `json:"authProvider,omitempty"`
	People       *PolicyPeopleCondition                         `json:"people,omitempty"`
}

type PasswordPolicyDelegationSettings

type PasswordPolicyDelegationSettings struct {
	Options *PasswordPolicyDelegationSettingsOptions `json:"options,omitempty"`
}

type PasswordPolicyDelegationSettingsOptions

type PasswordPolicyDelegationSettingsOptions struct {
	SkipUnlock *bool `json:"skipUnlock,omitempty"`
}

type PasswordPolicyPasswordSettings

type PasswordPolicyPasswordSettings struct {
	Age        *PasswordPolicyPasswordSettingsAge        `json:"age,omitempty"`
	Complexity *PasswordPolicyPasswordSettingsComplexity `json:"complexity,omitempty"`
	Lockout    *PasswordPolicyPasswordSettingsLockout    `json:"lockout,omitempty"`
}

type PasswordPolicyPasswordSettingsAge

type PasswordPolicyPasswordSettingsAge struct {
	ExpireWarnDays int64 `json:"expireWarnDays,omitempty"`
	HistoryCount   int64 `json:"historyCount,omitempty"`
	MaxAgeDays     int64 `json:"maxAgeDays,omitempty"`
	MinAgeMinutes  int64 `json:"minAgeMinutes,omitempty"`
}

type PasswordPolicyPasswordSettingsComplexity

type PasswordPolicyPasswordSettingsComplexity struct {
	Dictionary        *PasswordDictionary `json:"dictionary,omitempty"`
	ExcludeAttributes []string            `json:"excludeAttributes,omitempty"`
	ExcludeUsername   *bool               `json:"excludeUsername,omitempty"`
	MinLength         int64               `json:"minLength,omitempty"`
	MinLowerCase      int64               `json:"minLowerCase"`
	MinNumber         int64               `json:"minNumber"`
	MinSymbol         int64               `json:"minSymbol"`
	MinUpperCase      int64               `json:"minUpperCase"`
}

type PasswordPolicyPasswordSettingsLockout

type PasswordPolicyPasswordSettingsLockout struct {
	AutoUnlockMinutes               int64    `json:"autoUnlockMinutes,omitempty"`
	MaxAttempts                     int64    `json:"maxAttempts,omitempty"`
	ShowLockoutFailures             *bool    `json:"showLockoutFailures,omitempty"`
	UserLockoutNotificationChannels []string `json:"userLockoutNotificationChannels,omitempty"`
}

type PasswordPolicyRecoveryEmail

type PasswordPolicyRecoveryEmail struct {
	Properties *PasswordPolicyRecoveryEmailProperties `json:"properties,omitempty"`
	Status     string                                 `json:"status,omitempty"`
}

type PasswordPolicyRecoveryEmailProperties

type PasswordPolicyRecoveryEmailProperties struct {
	RecoveryToken *PasswordPolicyRecoveryEmailRecoveryToken `json:"recoveryToken,omitempty"`
}

type PasswordPolicyRecoveryEmailRecoveryToken

type PasswordPolicyRecoveryEmailRecoveryToken struct {
	TokenLifetimeMinutes int64 `json:"tokenLifetimeMinutes"`
}

type PasswordPolicyRecoveryFactorSettings

type PasswordPolicyRecoveryFactorSettings struct {
	Status string `json:"status,omitempty"`
}

type PasswordPolicyRecoveryFactors

type PasswordPolicyRecoveryFactors struct {
	OktaCall         *PasswordPolicyRecoveryFactorSettings `json:"okta_call,omitempty"`
	OktaEmail        *PasswordPolicyRecoveryEmail          `json:"okta_email,omitempty"`
	OktaSms          *PasswordPolicyRecoveryFactorSettings `json:"okta_sms,omitempty"`
	RecoveryQuestion *PasswordPolicyRecoveryQuestion       `json:"recovery_question,omitempty"`
}

type PasswordPolicyRecoveryQuestion

type PasswordPolicyRecoveryQuestion struct {
	Properties *PasswordPolicyRecoveryQuestionProperties `json:"properties,omitempty"`
	Status     string                                    `json:"status,omitempty"`
}

type PasswordPolicyRecoveryQuestionComplexity

type PasswordPolicyRecoveryQuestionComplexity struct {
	MinLength int64 `json:"minLength,omitempty"`
}

type PasswordPolicyRecoveryQuestionProperties

type PasswordPolicyRecoveryQuestionProperties struct {
	Complexity *PasswordPolicyRecoveryQuestionComplexity `json:"complexity,omitempty"`
}

type PasswordPolicyRecoverySettings

type PasswordPolicyRecoverySettings struct {
	Factors *PasswordPolicyRecoveryFactors `json:"factors,omitempty"`
}

type PasswordPolicyRule

type PasswordPolicyRule struct {
	Created     *time.Time                    `json:"created,omitempty"`
	Id          string                        `json:"id,omitempty"`
	LastUpdated *time.Time                    `json:"lastUpdated,omitempty"`
	Priority    int64                         `json:"priority,omitempty"`
	Status      string                        `json:"status,omitempty"`
	System      *bool                         `json:"system,omitempty"`
	Type        string                        `json:"type,omitempty"`
	Actions     *PasswordPolicyRuleActions    `json:"actions,omitempty"`
	Conditions  *PasswordPolicyRuleConditions `json:"conditions,omitempty"`
	Name        string                        `json:"name,omitempty"`
}

type PasswordPolicyRuleAction

type PasswordPolicyRuleAction struct {
	Access string `json:"access,omitempty"`
}

type PasswordPolicyRuleActions

type PasswordPolicyRuleActions struct {
	PasswordChange           *PasswordPolicyRuleAction `json:"passwordChange,omitempty"`
	SelfServicePasswordReset *PasswordPolicyRuleAction `json:"selfServicePasswordReset,omitempty"`
	SelfServiceUnlock        *PasswordPolicyRuleAction `json:"selfServiceUnlock,omitempty"`
}

type PasswordPolicyRuleConditions

type PasswordPolicyRuleConditions struct {
	Network *PolicyNetworkCondition `json:"network,omitempty"`
	People  *PolicyPeopleCondition  `json:"people,omitempty"`
}

type PasswordPolicySettings

type PasswordPolicySettings struct {
	Delegation *PasswordPolicyDelegationSettings `json:"delegation,omitempty"`
	Password   *PasswordPolicyPasswordSettings   `json:"password,omitempty"`
	Recovery   *PasswordPolicyRecoverySettings   `json:"recovery,omitempty"`
}

type PlatformConditionEvaluatorPlatform

type PlatformConditionEvaluatorPlatform struct {
	Os   *PlatformConditionEvaluatorPlatformOperatingSystem `json:"os,omitempty"`
	Type string                                             `json:"type,omitempty"`
}

type PlatformConditionEvaluatorPlatformOperatingSystem

type PlatformConditionEvaluatorPlatformOperatingSystem struct {
	Expression string                                                    `json:"expression,omitempty"`
	Type       string                                                    `json:"type,omitempty"`
	Version    *PlatformConditionEvaluatorPlatformOperatingSystemVersion `json:"version,omitempty"`
}

type PlatformConditionEvaluatorPlatformOperatingSystemVersion

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

type PlatformPolicyRuleCondition

type PlatformPolicyRuleCondition struct {
	Exclude []*PlatformConditionEvaluatorPlatform `json:"exclude,omitempty"`
	Include []*PlatformConditionEvaluatorPlatform `json:"include,omitempty"`
}

type Policy

type Policy struct {
	Embedded    interface{}           `json:"_embedded,omitempty"`
	Links       interface{}           `json:"_links,omitempty"`
	Conditions  *PolicyRuleConditions `json:"conditions,omitempty"`
	Created     *time.Time            `json:"created,omitempty"`
	Description string                `json:"description,omitempty"`
	Id          string                `json:"id,omitempty"`
	LastUpdated *time.Time            `json:"lastUpdated,omitempty"`
	Name        string                `json:"name,omitempty"`
	Priority    int64                 `json:"priority,omitempty"`
	Status      string                `json:"status,omitempty"`
	System      *bool                 `json:"system,omitempty"`
	Type        string                `json:"type,omitempty"`
}
type PolicyAccountLink struct {
	Action string                   `json:"action,omitempty"`
	Filter *PolicyAccountLinkFilter `json:"filter,omitempty"`
}

type PolicyAccountLinkFilter

type PolicyAccountLinkFilter struct {
	Groups *PolicyAccountLinkFilterGroups `json:"groups,omitempty"`
}

type PolicyAccountLinkFilterGroups

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

type PolicyNetworkCondition

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

type PolicyPeopleCondition

type PolicyPeopleCondition struct {
	Groups *GroupCondition `json:"groups,omitempty"`
	Users  *UserCondition  `json:"users,omitempty"`
}

type PolicyResource

type PolicyResource resource

func (*PolicyResource) ActivatePolicy

func (m *PolicyResource) ActivatePolicy(ctx context.Context, policyId string) (*Response, error)

Activates a policy.

func (*PolicyResource) ActivatePolicyRule

func (m *PolicyResource) ActivatePolicyRule(ctx context.Context, policyId string, ruleId string) (*Response, error)

Activates a policy rule.

func (*PolicyResource) CreatePolicy

func (m *PolicyResource) CreatePolicy(ctx context.Context, body Policy, qp *query.Params) (*Policy, *Response, error)

Creates a policy.

func (*PolicyResource) CreatePolicyRule

func (m *PolicyResource) CreatePolicyRule(ctx context.Context, policyId string, body PolicyRule) (*PolicyRule, *Response, error)

Creates a policy rule.

func (*PolicyResource) DeactivatePolicy

func (m *PolicyResource) DeactivatePolicy(ctx context.Context, policyId string) (*Response, error)

Deactivates a policy.

func (*PolicyResource) DeactivatePolicyRule

func (m *PolicyResource) DeactivatePolicyRule(ctx context.Context, policyId string, ruleId string) (*Response, error)

Deactivates a policy rule.

func (*PolicyResource) DeletePolicy

func (m *PolicyResource) DeletePolicy(ctx context.Context, policyId string) (*Response, error)

Removes a policy.

func (*PolicyResource) DeletePolicyRule

func (m *PolicyResource) DeletePolicyRule(ctx context.Context, policyId string, ruleId string) (*Response, error)

Removes a policy rule.

func (*PolicyResource) GetPolicy

func (m *PolicyResource) GetPolicy(ctx context.Context, policyId string, qp *query.Params) (*Policy, *Response, error)

Gets a policy.

func (*PolicyResource) GetPolicyRule

func (m *PolicyResource) GetPolicyRule(ctx context.Context, policyId string, ruleId string) (*PolicyRule, *Response, error)

Gets a policy rule.

func (*PolicyResource) ListPolicies

func (m *PolicyResource) ListPolicies(ctx context.Context, qp *query.Params) ([]*Policy, *Response, error)

Gets all policies with the specified type.

func (*PolicyResource) ListPolicyRules

func (m *PolicyResource) ListPolicyRules(ctx context.Context, policyId string) ([]*PolicyRule, *Response, error)

Enumerates all policy rules.

func (*PolicyResource) UpdatePolicy

func (m *PolicyResource) UpdatePolicy(ctx context.Context, policyId string, body Policy) (*Policy, *Response, error)

Updates a policy.

func (*PolicyResource) UpdatePolicyRule

func (m *PolicyResource) UpdatePolicyRule(ctx context.Context, policyId string, ruleId string, body PolicyRule) (*PolicyRule, *Response, error)

Updates a policy rule.

type PolicyRule

type PolicyRule struct {
	Created     *time.Time `json:"created,omitempty"`
	Id          string     `json:"id,omitempty"`
	LastUpdated *time.Time `json:"lastUpdated,omitempty"`
	Priority    int64      `json:"priority,omitempty"`
	Status      string     `json:"status,omitempty"`
	System      *bool      `json:"system,omitempty"`
	Type        string     `json:"type,omitempty"`
}

type PolicyRuleAuthContextCondition

type PolicyRuleAuthContextCondition struct {
	AuthType string `json:"authType,omitempty"`
}

type PolicyRuleConditions

type PolicyRuleConditions struct {
	App                   *AppAndInstancePolicyRuleCondition             `json:"app,omitempty"`
	Apps                  *AppInstancePolicyRuleCondition                `json:"apps,omitempty"`
	AuthContext           *PolicyRuleAuthContextCondition                `json:"authContext,omitempty"`
	AuthProvider          *PasswordPolicyAuthenticationProviderCondition `json:"authProvider,omitempty"`
	BeforeScheduledAction *BeforeScheduledActionPolicyRuleCondition      `json:"beforeScheduledAction,omitempty"`
	Clients               *ClientPolicyCondition                         `json:"clients,omitempty"`
	Context               *ContextPolicyRuleCondition                    `json:"context,omitempty"`
	Device                *DevicePolicyRuleCondition                     `json:"device,omitempty"`
	GrantTypes            *GrantTypePolicyRuleCondition                  `json:"grantTypes,omitempty"`
	Groups                *GroupPolicyRuleCondition                      `json:"groups,omitempty"`
	IdentityProvider      *IdentityProviderPolicyRuleCondition           `json:"identityProvider,omitempty"`
	MdmEnrollment         *MDMEnrollmentPolicyRuleCondition              `json:"mdmEnrollment,omitempty"`
	Network               *PolicyNetworkCondition                        `json:"network,omitempty"`
	People                *PolicyPeopleCondition                         `json:"people,omitempty"`
	Platform              *PlatformPolicyRuleCondition                   `json:"platform,omitempty"`
	Risk                  *RiskPolicyRuleCondition                       `json:"risk,omitempty"`
	RiskScore             *RiskScorePolicyRuleCondition                  `json:"riskScore,omitempty"`
	Scopes                *OAuth2ScopesMediationPolicyRuleCondition      `json:"scopes,omitempty"`
	UserIdentifier        *UserIdentifierPolicyRuleCondition             `json:"userIdentifier,omitempty"`
	UserStatus            *UserStatusPolicyRuleCondition                 `json:"userStatus,omitempty"`
	Users                 *UserPolicyRuleCondition                       `json:"users,omitempty"`
}

type PolicyRuleResource

type PolicyRuleResource resource

func (*PolicyRuleResource) DeletePolicyRule

func (m *PolicyRuleResource) DeletePolicyRule(ctx context.Context, policyId string, ruleId string) (*Response, error)

Removes a policy rule.

func (*PolicyRuleResource) UpdatePolicyRule

func (m *PolicyRuleResource) UpdatePolicyRule(ctx context.Context, policyId string, ruleId string, body PolicyRule) (*PolicyRule, *Response, error)

Updates a policy rule.

type PolicySubject

type PolicySubject struct {
	Filter           string                  `json:"filter,omitempty"`
	Format           []string                `json:"format,omitempty"`
	MatchAttribute   string                  `json:"matchAttribute,omitempty"`
	MatchType        string                  `json:"matchType,omitempty"`
	UserNameTemplate *PolicyUserNameTemplate `json:"userNameTemplate,omitempty"`
}

type PolicySubjectMatchType

type PolicySubjectMatchType string

type PolicyType

type PolicyType string

type PolicyUserNameTemplate

type PolicyUserNameTemplate struct {
	Template string `json:"template,omitempty"`
}

type Protocol

type Protocol struct {
	Algorithms  *ProtocolAlgorithms          `json:"algorithms,omitempty"`
	Credentials *IdentityProviderCredentials `json:"credentials,omitempty"`
	Endpoints   *ProtocolEndpoints           `json:"endpoints,omitempty"`
	Issuer      *ProtocolEndpoint            `json:"issuer,omitempty"`
	RelayState  *ProtocolRelayState          `json:"relayState,omitempty"`
	Scopes      []string                     `json:"scopes,omitempty"`
	Settings    *ProtocolSettings            `json:"settings,omitempty"`
	Type        string                       `json:"type,omitempty"`
}

type ProtocolAlgorithmType

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

type ProtocolAlgorithmTypeSignature

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

type ProtocolAlgorithms

type ProtocolAlgorithms struct {
	Request  *ProtocolAlgorithmType `json:"request,omitempty"`
	Response *ProtocolAlgorithmType `json:"response,omitempty"`
}

type ProtocolEndpoint

type ProtocolEndpoint struct {
	Binding     string `json:"binding,omitempty"`
	Destination string `json:"destination,omitempty"`
	Type        string `json:"type,omitempty"`
	Url         string `json:"url,omitempty"`
}

type ProtocolEndpoints

type ProtocolEndpoints struct {
	Acs           *ProtocolEndpoint `json:"acs,omitempty"`
	Authorization *ProtocolEndpoint `json:"authorization,omitempty"`
	Jwks          *ProtocolEndpoint `json:"jwks,omitempty"`
	Metadata      *ProtocolEndpoint `json:"metadata,omitempty"`
	Slo           *ProtocolEndpoint `json:"slo,omitempty"`
	Sso           *ProtocolEndpoint `json:"sso,omitempty"`
	Token         *ProtocolEndpoint `json:"token,omitempty"`
	UserInfo      *ProtocolEndpoint `json:"userInfo,omitempty"`
}

type ProtocolRelayState

type ProtocolRelayState struct {
	Format string `json:"format,omitempty"`
}

type ProtocolRelayStateFormat

type ProtocolRelayStateFormat string

type ProtocolSettings

type ProtocolSettings struct {
	NameFormat string `json:"nameFormat,omitempty"`
}

type Provisioning

type Provisioning struct {
	Action        string                  `json:"action,omitempty"`
	Conditions    *ProvisioningConditions `json:"conditions,omitempty"`
	Groups        *ProvisioningGroups     `json:"groups,omitempty"`
	ProfileMaster *bool                   `json:"profileMaster,omitempty"`
}

type ProvisioningConditions

type ProvisioningConditions struct {
	Deprovisioned *ProvisioningDeprovisionedCondition `json:"deprovisioned,omitempty"`
	Suspended     *ProvisioningSuspendedCondition     `json:"suspended,omitempty"`
}

type ProvisioningDeprovisionedCondition

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

type ProvisioningGroups

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

type ProvisioningSuspendedCondition

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

type PushUserFactor

type PushUserFactor struct {
	Embedded     interface{}            `json:"_embedded,omitempty"`
	Links        interface{}            `json:"_links,omitempty"`
	Created      *time.Time             `json:"created,omitempty"`
	FactorType   string                 `json:"factorType,omitempty"`
	Id           string                 `json:"id,omitempty"`
	LastUpdated  *time.Time             `json:"lastUpdated,omitempty"`
	Provider     string                 `json:"provider,omitempty"`
	Status       string                 `json:"status,omitempty"`
	Verify       *VerifyFactorRequest   `json:"verify,omitempty"`
	ExpiresAt    *time.Time             `json:"expiresAt,omitempty"`
	FactorResult string                 `json:"factorResult,omitempty"`
	Profile      *PushUserFactorProfile `json:"profile,omitempty"`
}

func NewPushUserFactor

func NewPushUserFactor() *PushUserFactor

func (*PushUserFactor) IsUserFactorInstance

func (a *PushUserFactor) IsUserFactorInstance() bool

type PushUserFactorProfile

type PushUserFactorProfile struct {
	CredentialId string `json:"credentialId,omitempty"`
	DeviceToken  string `json:"deviceToken,omitempty"`
	DeviceType   string `json:"deviceType,omitempty"`
	Name         string `json:"name,omitempty"`
	Platform     string `json:"platform,omitempty"`
	Version      string `json:"version,omitempty"`
}

func NewPushUserFactorProfile

func NewPushUserFactorProfile() *PushUserFactorProfile

func (*PushUserFactorProfile) IsUserFactorInstance

func (a *PushUserFactorProfile) IsUserFactorInstance() bool

type RecoveryQuestionCredential

type RecoveryQuestionCredential struct {
	Answer   string `json:"answer,omitempty"`
	Question string `json:"question,omitempty"`
}

type RequestAccessToken

type RequestAccessToken struct {
	TokenType   string `json:"token_type,omitempty"`
	ExpireIn    int    `json:"expire_in,omitempty"`
	AccessToken string `json:"access_token,omitempty"`
	Scope       string `json:"scope,omitempty"`
}

type RequestExecutor

type RequestExecutor struct {
	BaseUrl *url.URL
	// contains filtered or unexported fields
}

func NewRequestExecutor

func NewRequestExecutor(httpClient *http.Client, cache cache.Cache, config *config) *RequestExecutor

func (*RequestExecutor) AsBinary

func (re *RequestExecutor) AsBinary() *RequestExecutor

func (*RequestExecutor) Do

func (re *RequestExecutor) Do(ctx context.Context, req *http.Request, v interface{}) (*Response, error)

func (*RequestExecutor) NewRequest

func (re *RequestExecutor) NewRequest(method string, url string, body interface{}) (*http.Request, error)

func (*RequestExecutor) RefreshNext

func (re *RequestExecutor) RefreshNext() *RequestExecutor

func (*RequestExecutor) WithAccept

func (re *RequestExecutor) WithAccept(acceptHeader string) *RequestExecutor

func (*RequestExecutor) WithContentType

func (re *RequestExecutor) WithContentType(contentTypeHeader string) *RequestExecutor

type ResetPasswordToken

type ResetPasswordToken struct {
	ResetPasswordUrl string `json:"resetPasswordUrl,omitempty"`
}

type Response

type Response struct {
	*http.Response

	Self     string
	NextPage string
	// contains filtered or unexported fields
}

func (*Response) HasNextPage

func (r *Response) HasNextPage() bool

func (*Response) Next

func (r *Response) Next(ctx context.Context, v interface{}) (*Response, error)
type ResponseLinks struct {
}

type RiskPolicyRuleCondition

type RiskPolicyRuleCondition struct {
	Behaviors []string `json:"behaviors,omitempty"`
}

type RiskScorePolicyRuleCondition

type RiskScorePolicyRuleCondition struct {
	Level string `json:"level,omitempty"`
}

type Role

type Role struct {
	Embedded       interface{} `json:"_embedded,omitempty"`
	Links          interface{} `json:"_links,omitempty"`
	AssignmentType string      `json:"assignmentType,omitempty"`
	Created        *time.Time  `json:"created,omitempty"`
	Description    string      `json:"description,omitempty"`
	Id             string      `json:"id,omitempty"`
	Label          string      `json:"label,omitempty"`
	LastUpdated    *time.Time  `json:"lastUpdated,omitempty"`
	Status         string      `json:"status,omitempty"`
	Type           string      `json:"type,omitempty"`
}

type RoleAssignmentType

type RoleAssignmentType string

type RoleStatus

type RoleStatus string

type RoleType

type RoleType string

type SamlApplication

type SamlApplication struct {
	Embedded      interface{}               `json:"_embedded,omitempty"`
	Links         interface{}               `json:"_links,omitempty"`
	Accessibility *ApplicationAccessibility `json:"accessibility,omitempty"`
	Created       *time.Time                `json:"created,omitempty"`
	Credentials   *ApplicationCredentials   `json:"credentials,omitempty"`
	Features      []string                  `json:"features,omitempty"`
	Id            string                    `json:"id,omitempty"`
	Label         string                    `json:"label,omitempty"`
	LastUpdated   *time.Time                `json:"lastUpdated,omitempty"`
	Licensing     *ApplicationLicensing     `json:"licensing,omitempty"`
	Name          string                    `json:"name,omitempty"`
	Profile       interface{}               `json:"profile,omitempty"`
	Settings      *SamlApplicationSettings  `json:"settings,omitempty"`
	SignOnMode    string                    `json:"signOnMode,omitempty"`
	Status        string                    `json:"status,omitempty"`
	Visibility    *ApplicationVisibility    `json:"visibility,omitempty"`
}

func NewSamlApplication

func NewSamlApplication() *SamlApplication

func (*SamlApplication) IsApplicationInstance

func (a *SamlApplication) IsApplicationInstance() bool

type SamlApplicationSettings

type SamlApplicationSettings struct {
	App                *ApplicationSettingsApplication   `json:"app,omitempty"`
	ImplicitAssignment *bool                             `json:"implicitAssignment,omitempty"`
	InlineHookId       string                            `json:"inlineHookId,omitempty"`
	Notifications      *ApplicationSettingsNotifications `json:"notifications,omitempty"`
	SignOn             *SamlApplicationSettingsSignOn    `json:"signOn,omitempty"`
}

func NewSamlApplicationSettings

func NewSamlApplicationSettings() *SamlApplicationSettings

func (*SamlApplicationSettings) IsApplicationInstance

func (a *SamlApplicationSettings) IsApplicationInstance() bool

type SamlApplicationSettingsSignOn

type SamlApplicationSettingsSignOn struct {
	AcsEndpoints              []*AcsEndpoint            `json:"acsEndpoints,omitempty"`
	AllowMultipleAcsEndpoints *bool                     `json:"allowMultipleAcsEndpoints,omitempty"`
	AssertionSigned           *bool                     `json:"assertionSigned,omitempty"`
	AttributeStatements       []*SamlAttributeStatement `json:"attributeStatements,omitempty"`
	Audience                  string                    `json:"audience,omitempty"`
	AudienceOverride          string                    `json:"audienceOverride,omitempty"`
	AuthnContextClassRef      string                    `json:"authnContextClassRef,omitempty"`
	DefaultRelayState         string                    `json:"defaultRelayState,omitempty"`
	Destination               string                    `json:"destination,omitempty"`
	DestinationOverride       string                    `json:"destinationOverride,omitempty"`
	DigestAlgorithm           string                    `json:"digestAlgorithm,omitempty"`
	HonorForceAuthn           *bool                     `json:"honorForceAuthn,omitempty"`
	IdpIssuer                 string                    `json:"idpIssuer,omitempty"`
	Recipient                 string                    `json:"recipient,omitempty"`
	RecipientOverride         string                    `json:"recipientOverride,omitempty"`
	RequestCompressed         *bool                     `json:"requestCompressed,omitempty"`
	ResponseSigned            *bool                     `json:"responseSigned,omitempty"`
	SignatureAlgorithm        string                    `json:"signatureAlgorithm,omitempty"`
	Slo                       *SingleLogout             `json:"slo,omitempty"`
	SpCertificate             *SpCertificate            `json:"spCertificate,omitempty"`
	SpIssuer                  string                    `json:"spIssuer,omitempty"`
	SsoAcsUrl                 string                    `json:"ssoAcsUrl,omitempty"`
	SsoAcsUrlOverride         string                    `json:"ssoAcsUrlOverride,omitempty"`
	SubjectNameIdFormat       string                    `json:"subjectNameIdFormat,omitempty"`
	SubjectNameIdTemplate     string                    `json:"subjectNameIdTemplate,omitempty"`
}

func NewSamlApplicationSettingsSignOn

func NewSamlApplicationSettingsSignOn() *SamlApplicationSettingsSignOn

func (*SamlApplicationSettingsSignOn) IsApplicationInstance

func (a *SamlApplicationSettingsSignOn) IsApplicationInstance() bool

type SamlAttributeStatement

type SamlAttributeStatement struct {
	FilterType  string   `json:"filterType,omitempty"`
	FilterValue string   `json:"filterValue,omitempty"`
	Name        string   `json:"name,omitempty"`
	Namespace   string   `json:"namespace,omitempty"`
	Type        string   `json:"type,omitempty"`
	Values      []string `json:"values,omitempty"`
}

func NewSamlAttributeStatement

func NewSamlAttributeStatement() *SamlAttributeStatement

func (*SamlAttributeStatement) IsApplicationInstance

func (a *SamlAttributeStatement) IsApplicationInstance() bool

type ScheduledUserLifecycleAction

type ScheduledUserLifecycleAction struct {
	Status string `json:"status,omitempty"`
}

type SchemeApplicationCredentials

type SchemeApplicationCredentials struct {
	Signing          *ApplicationCredentialsSigning          `json:"signing,omitempty"`
	UserNameTemplate *ApplicationCredentialsUsernameTemplate `json:"userNameTemplate,omitempty"`
	Password         *PasswordCredential                     `json:"password,omitempty"`
	RevealPassword   *bool                                   `json:"revealPassword,omitempty"`
	Scheme           string                                  `json:"scheme,omitempty"`
	UserName         string                                  `json:"userName,omitempty"`
}

func NewSchemeApplicationCredentials

func NewSchemeApplicationCredentials() *SchemeApplicationCredentials

func (*SchemeApplicationCredentials) IsApplicationInstance

func (a *SchemeApplicationCredentials) IsApplicationInstance() bool

type Scope

type Scope struct {
	StringValue string `json:"stringValue,omitempty"`
	Type        string `json:"type,omitempty"`
}

type ScopeType

type ScopeType string

type SecurePasswordStoreApplication

type SecurePasswordStoreApplication struct {
	Embedded      interface{}                             `json:"_embedded,omitempty"`
	Links         interface{}                             `json:"_links,omitempty"`
	Accessibility *ApplicationAccessibility               `json:"accessibility,omitempty"`
	Created       *time.Time                              `json:"created,omitempty"`
	Credentials   *SchemeApplicationCredentials           `json:"credentials,omitempty"`
	Features      []string                                `json:"features,omitempty"`
	Id            string                                  `json:"id,omitempty"`
	Label         string                                  `json:"label,omitempty"`
	LastUpdated   *time.Time                              `json:"lastUpdated,omitempty"`
	Licensing     *ApplicationLicensing                   `json:"licensing,omitempty"`
	Name          string                                  `json:"name,omitempty"`
	Profile       interface{}                             `json:"profile,omitempty"`
	Settings      *SecurePasswordStoreApplicationSettings `json:"settings,omitempty"`
	SignOnMode    string                                  `json:"signOnMode,omitempty"`
	Status        string                                  `json:"status,omitempty"`
	Visibility    *ApplicationVisibility                  `json:"visibility,omitempty"`
}

func NewSecurePasswordStoreApplication

func NewSecurePasswordStoreApplication() *SecurePasswordStoreApplication

func (*SecurePasswordStoreApplication) IsApplicationInstance

func (a *SecurePasswordStoreApplication) IsApplicationInstance() bool

type SecurePasswordStoreApplicationSettings

type SecurePasswordStoreApplicationSettings struct {
	App                *SecurePasswordStoreApplicationSettingsApplication `json:"app,omitempty"`
	ImplicitAssignment *bool                                              `json:"implicitAssignment,omitempty"`
	InlineHookId       string                                             `json:"inlineHookId,omitempty"`
	Notifications      *ApplicationSettingsNotifications                  `json:"notifications,omitempty"`
}

func NewSecurePasswordStoreApplicationSettings

func NewSecurePasswordStoreApplicationSettings() *SecurePasswordStoreApplicationSettings

func (*SecurePasswordStoreApplicationSettings) IsApplicationInstance

func (a *SecurePasswordStoreApplicationSettings) IsApplicationInstance() bool

type SecurePasswordStoreApplicationSettingsApplication

type SecurePasswordStoreApplicationSettingsApplication struct {
	OptionalField1      string `json:"optionalField1,omitempty"`
	OptionalField1Value string `json:"optionalField1Value,omitempty"`
	OptionalField2      string `json:"optionalField2,omitempty"`
	OptionalField2Value string `json:"optionalField2Value,omitempty"`
	OptionalField3      string `json:"optionalField3,omitempty"`
	OptionalField3Value string `json:"optionalField3Value,omitempty"`
	PasswordField       string `json:"passwordField,omitempty"`
	Url                 string `json:"url,omitempty"`
	UsernameField       string `json:"usernameField,omitempty"`
}

func NewSecurePasswordStoreApplicationSettingsApplication

func NewSecurePasswordStoreApplicationSettingsApplication() *SecurePasswordStoreApplicationSettingsApplication

func (*SecurePasswordStoreApplicationSettingsApplication) IsApplicationInstance

func (a *SecurePasswordStoreApplicationSettingsApplication) IsApplicationInstance() bool

type SecurityQuestion

type SecurityQuestion struct {
	Answer       string `json:"answer,omitempty"`
	Question     string `json:"question,omitempty"`
	QuestionText string `json:"questionText,omitempty"`
}

func NewSecurityQuestion

func NewSecurityQuestion() *SecurityQuestion

func (*SecurityQuestion) IsUserFactorInstance

func (a *SecurityQuestion) IsUserFactorInstance() bool

type SecurityQuestionUserFactor

type SecurityQuestionUserFactor struct {
	Embedded    interface{}                        `json:"_embedded,omitempty"`
	Links       interface{}                        `json:"_links,omitempty"`
	Created     *time.Time                         `json:"created,omitempty"`
	FactorType  string                             `json:"factorType,omitempty"`
	Id          string                             `json:"id,omitempty"`
	LastUpdated *time.Time                         `json:"lastUpdated,omitempty"`
	Provider    string                             `json:"provider,omitempty"`
	Status      string                             `json:"status,omitempty"`
	Verify      *VerifyFactorRequest               `json:"verify,omitempty"`
	Profile     *SecurityQuestionUserFactorProfile `json:"profile,omitempty"`
}

func NewSecurityQuestionUserFactor

func NewSecurityQuestionUserFactor() *SecurityQuestionUserFactor

func (*SecurityQuestionUserFactor) IsUserFactorInstance

func (a *SecurityQuestionUserFactor) IsUserFactorInstance() bool

type SecurityQuestionUserFactorProfile

type SecurityQuestionUserFactorProfile struct {
	Answer       string `json:"answer,omitempty"`
	Question     string `json:"question,omitempty"`
	QuestionText string `json:"questionText,omitempty"`
}

func NewSecurityQuestionUserFactorProfile

func NewSecurityQuestionUserFactorProfile() *SecurityQuestionUserFactorProfile

func (*SecurityQuestionUserFactorProfile) IsUserFactorInstance

func (a *SecurityQuestionUserFactorProfile) IsUserFactorInstance() bool

type Session

type Session struct {
	Links                    interface{}                    `json:"_links,omitempty"`
	Amr                      []*SessionAuthenticationMethod `json:"amr,omitempty"`
	CreatedAt                *time.Time                     `json:"createdAt,omitempty"`
	ExpiresAt                *time.Time                     `json:"expiresAt,omitempty"`
	Id                       string                         `json:"id,omitempty"`
	Idp                      *SessionIdentityProvider       `json:"idp,omitempty"`
	LastFactorVerification   *time.Time                     `json:"lastFactorVerification,omitempty"`
	LastPasswordVerification *time.Time                     `json:"lastPasswordVerification,omitempty"`
	Login                    string                         `json:"login,omitempty"`
	Status                   string                         `json:"status,omitempty"`
	UserId                   string                         `json:"userId,omitempty"`
}

type SessionAuthenticationMethod

type SessionAuthenticationMethod string

type SessionIdentityProvider

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

type SessionIdentityProviderType

type SessionIdentityProviderType string

type SessionResource

type SessionResource resource

func (*SessionResource) CreateSession

func (m *SessionResource) CreateSession(ctx context.Context, body CreateSessionRequest) (*Session, *Response, error)

Creates a new session for a user with a valid session token. Use this API if, for example, you want to set the session cookie yourself instead of allowing Okta to set it, or want to hold the session ID in order to delete a session via the API instead of visiting the logout URL.

func (*SessionResource) EndSession

func (m *SessionResource) EndSession(ctx context.Context, sessionId string) (*Response, error)

func (*SessionResource) GetSession

func (m *SessionResource) GetSession(ctx context.Context, sessionId string) (*Session, *Response, error)

Get details about a session.

func (*SessionResource) RefreshSession

func (m *SessionResource) RefreshSession(ctx context.Context, sessionId string) (*Session, *Response, error)

type SessionStatus

type SessionStatus string

type SingleLogout added in v2.3.0

type SingleLogout struct {
	Enabled   *bool  `json:"enabled,omitempty"`
	Issuer    string `json:"issuer,omitempty"`
	LogoutUrl string `json:"logoutUrl,omitempty"`
}

type SmsTemplate

type SmsTemplate struct {
	Created      *time.Time               `json:"created,omitempty"`
	Id           string                   `json:"id,omitempty"`
	LastUpdated  *time.Time               `json:"lastUpdated,omitempty"`
	Name         string                   `json:"name,omitempty"`
	Template     string                   `json:"template,omitempty"`
	Translations *SmsTemplateTranslations `json:"translations,omitempty"`
	Type         string                   `json:"type,omitempty"`
}

type SmsTemplateResource

type SmsTemplateResource resource

func (*SmsTemplateResource) CreateSmsTemplate

func (m *SmsTemplateResource) CreateSmsTemplate(ctx context.Context, body SmsTemplate) (*SmsTemplate, *Response, error)

Adds a new custom SMS template to your organization.

func (*SmsTemplateResource) DeleteSmsTemplate

func (m *SmsTemplateResource) DeleteSmsTemplate(ctx context.Context, templateId string) (*Response, error)

Removes an SMS template.

func (*SmsTemplateResource) GetSmsTemplate

func (m *SmsTemplateResource) GetSmsTemplate(ctx context.Context, templateId string) (*SmsTemplate, *Response, error)

Fetches a specific template by `id`

func (*SmsTemplateResource) ListSmsTemplates

func (m *SmsTemplateResource) ListSmsTemplates(ctx context.Context, qp *query.Params) ([]*SmsTemplate, *Response, error)

Enumerates custom SMS templates in your organization. A subset of templates can be returned that match a template type.

func (*SmsTemplateResource) PartialUpdateSmsTemplate

func (m *SmsTemplateResource) PartialUpdateSmsTemplate(ctx context.Context, templateId string, body SmsTemplate) (*SmsTemplate, *Response, error)

Updates only some of the SMS template properties:

func (*SmsTemplateResource) UpdateSmsTemplate

func (m *SmsTemplateResource) UpdateSmsTemplate(ctx context.Context, templateId string, body SmsTemplate) (*SmsTemplate, *Response, error)

Updates the SMS template.

type SmsTemplateTranslations

type SmsTemplateTranslations struct {
}

type SmsTemplateType

type SmsTemplateType string

type SmsUserFactor

type SmsUserFactor struct {
	Embedded    interface{}           `json:"_embedded,omitempty"`
	Links       interface{}           `json:"_links,omitempty"`
	Created     *time.Time            `json:"created,omitempty"`
	FactorType  string                `json:"factorType,omitempty"`
	Id          string                `json:"id,omitempty"`
	LastUpdated *time.Time            `json:"lastUpdated,omitempty"`
	Provider    string                `json:"provider,omitempty"`
	Status      string                `json:"status,omitempty"`
	Verify      *VerifyFactorRequest  `json:"verify,omitempty"`
	Profile     *SmsUserFactorProfile `json:"profile,omitempty"`
}

func NewSmsUserFactor

func NewSmsUserFactor() *SmsUserFactor

func (*SmsUserFactor) IsUserFactorInstance

func (a *SmsUserFactor) IsUserFactorInstance() bool

type SmsUserFactorProfile

type SmsUserFactorProfile struct {
	PhoneNumber string `json:"phoneNumber,omitempty"`
}

func NewSmsUserFactorProfile

func NewSmsUserFactorProfile() *SmsUserFactorProfile

func (*SmsUserFactorProfile) IsUserFactorInstance

func (a *SmsUserFactorProfile) IsUserFactorInstance() bool

type SocialAuthToken

type SocialAuthToken struct {
	ExpiresAt       *time.Time `json:"expiresAt,omitempty"`
	Id              string     `json:"id,omitempty"`
	Scopes          []string   `json:"scopes,omitempty"`
	Token           string     `json:"token,omitempty"`
	TokenAuthScheme string     `json:"tokenAuthScheme,omitempty"`
	TokenType       string     `json:"tokenType,omitempty"`
}

type SpCertificate added in v2.3.0

type SpCertificate struct {
	X5c []string `json:"x5c,omitempty"`
}

type SwaApplication

type SwaApplication struct {
	Credentials   *ApplicationCredentials   `json:"credentials,omitempty"`
	Embedded      interface{}               `json:"_embedded,omitempty"`
	Links         interface{}               `json:"_links,omitempty"`
	Accessibility *ApplicationAccessibility `json:"accessibility,omitempty"`
	Created       *time.Time                `json:"created,omitempty"`
	Features      []string                  `json:"features,omitempty"`
	Id            string                    `json:"id,omitempty"`
	Label         string                    `json:"label,omitempty"`
	LastUpdated   *time.Time                `json:"lastUpdated,omitempty"`
	Licensing     *ApplicationLicensing     `json:"licensing,omitempty"`
	Name          string                    `json:"name,omitempty"`
	Profile       interface{}               `json:"profile,omitempty"`
	Settings      *SwaApplicationSettings   `json:"settings,omitempty"`
	SignOnMode    string                    `json:"signOnMode,omitempty"`
	Status        string                    `json:"status,omitempty"`
	Visibility    *ApplicationVisibility    `json:"visibility,omitempty"`
}

func NewSwaApplication

func NewSwaApplication() *SwaApplication

func (*SwaApplication) IsApplicationInstance

func (a *SwaApplication) IsApplicationInstance() bool

type SwaApplicationSettings

type SwaApplicationSettings struct {
	App                *SwaApplicationSettingsApplication `json:"app,omitempty"`
	ImplicitAssignment *bool                              `json:"implicitAssignment,omitempty"`
	InlineHookId       string                             `json:"inlineHookId,omitempty"`
	Notifications      *ApplicationSettingsNotifications  `json:"notifications,omitempty"`
}

func NewSwaApplicationSettings

func NewSwaApplicationSettings() *SwaApplicationSettings

func (*SwaApplicationSettings) IsApplicationInstance

func (a *SwaApplicationSettings) IsApplicationInstance() bool

type SwaApplicationSettingsApplication

type SwaApplicationSettingsApplication struct {
	ButtonField   string `json:"buttonField,omitempty"`
	LoginUrlRegex string `json:"loginUrlRegex,omitempty"`
	PasswordField string `json:"passwordField,omitempty"`
	Url           string `json:"url,omitempty"`
	UsernameField string `json:"usernameField,omitempty"`
}

func NewSwaApplicationSettingsApplication

func NewSwaApplicationSettingsApplication() *SwaApplicationSettingsApplication

func (*SwaApplicationSettingsApplication) IsApplicationInstance

func (a *SwaApplicationSettingsApplication) IsApplicationInstance() bool

type SwaThreeFieldApplication

type SwaThreeFieldApplication struct {
	Credentials   *ApplicationCredentials           `json:"credentials,omitempty"`
	Embedded      interface{}                       `json:"_embedded,omitempty"`
	Links         interface{}                       `json:"_links,omitempty"`
	Accessibility *ApplicationAccessibility         `json:"accessibility,omitempty"`
	Created       *time.Time                        `json:"created,omitempty"`
	Features      []string                          `json:"features,omitempty"`
	Id            string                            `json:"id,omitempty"`
	Label         string                            `json:"label,omitempty"`
	LastUpdated   *time.Time                        `json:"lastUpdated,omitempty"`
	Licensing     *ApplicationLicensing             `json:"licensing,omitempty"`
	Name          string                            `json:"name,omitempty"`
	Profile       interface{}                       `json:"profile,omitempty"`
	Settings      *SwaThreeFieldApplicationSettings `json:"settings,omitempty"`
	SignOnMode    string                            `json:"signOnMode,omitempty"`
	Status        string                            `json:"status,omitempty"`
	Visibility    *ApplicationVisibility            `json:"visibility,omitempty"`
}

func NewSwaThreeFieldApplication

func NewSwaThreeFieldApplication() *SwaThreeFieldApplication

func (*SwaThreeFieldApplication) IsApplicationInstance

func (a *SwaThreeFieldApplication) IsApplicationInstance() bool

type SwaThreeFieldApplicationSettings

type SwaThreeFieldApplicationSettings struct {
	App                *SwaThreeFieldApplicationSettingsApplication `json:"app,omitempty"`
	ImplicitAssignment *bool                                        `json:"implicitAssignment,omitempty"`
	InlineHookId       string                                       `json:"inlineHookId,omitempty"`
	Notifications      *ApplicationSettingsNotifications            `json:"notifications,omitempty"`
}

func NewSwaThreeFieldApplicationSettings

func NewSwaThreeFieldApplicationSettings() *SwaThreeFieldApplicationSettings

func (*SwaThreeFieldApplicationSettings) IsApplicationInstance

func (a *SwaThreeFieldApplicationSettings) IsApplicationInstance() bool

type SwaThreeFieldApplicationSettingsApplication

type SwaThreeFieldApplicationSettingsApplication struct {
	ButtonSelector     string `json:"buttonSelector,omitempty"`
	ExtraFieldSelector string `json:"extraFieldSelector,omitempty"`
	ExtraFieldValue    string `json:"extraFieldValue,omitempty"`
	LoginUrlRegex      string `json:"loginUrlRegex,omitempty"`
	PasswordSelector   string `json:"passwordSelector,omitempty"`
	TargetURL          string `json:"targetURL,omitempty"`
	UserNameSelector   string `json:"userNameSelector,omitempty"`
}

func NewSwaThreeFieldApplicationSettingsApplication

func NewSwaThreeFieldApplicationSettingsApplication() *SwaThreeFieldApplicationSettingsApplication

func (*SwaThreeFieldApplicationSettingsApplication) IsApplicationInstance

func (a *SwaThreeFieldApplicationSettingsApplication) IsApplicationInstance() bool

type TempPassword

type TempPassword struct {
	TempPassword string `json:"tempPassword,omitempty"`
}

type TokenAuthorizationServerPolicyRuleAction added in v2.3.0

type TokenAuthorizationServerPolicyRuleAction struct {
	AccessTokenLifetimeMinutes  int64 `json:"accessTokenLifetimeMinutes"`
	RefreshTokenLifetimeMinutes int64 `json:"refreshTokenLifetimeMinutes"`
	RefreshTokenWindowMinutes   int64 `json:"refreshTokenWindowMinutes"`
}

type TokenUserFactor

type TokenUserFactor struct {
	Embedded    interface{}             `json:"_embedded,omitempty"`
	Links       interface{}             `json:"_links,omitempty"`
	Created     *time.Time              `json:"created,omitempty"`
	FactorType  string                  `json:"factorType,omitempty"`
	Id          string                  `json:"id,omitempty"`
	LastUpdated *time.Time              `json:"lastUpdated,omitempty"`
	Provider    string                  `json:"provider,omitempty"`
	Status      string                  `json:"status,omitempty"`
	Verify      *VerifyFactorRequest    `json:"verify,omitempty"`
	Profile     *TokenUserFactorProfile `json:"profile,omitempty"`
}

func NewTokenUserFactor

func NewTokenUserFactor() *TokenUserFactor

func (*TokenUserFactor) IsUserFactorInstance

func (a *TokenUserFactor) IsUserFactorInstance() bool

type TokenUserFactorProfile

type TokenUserFactorProfile struct {
	CredentialId string `json:"credentialId,omitempty"`
}

func NewTokenUserFactorProfile

func NewTokenUserFactorProfile() *TokenUserFactorProfile

func (*TokenUserFactorProfile) IsUserFactorInstance

func (a *TokenUserFactorProfile) IsUserFactorInstance() bool

type TotpUserFactor

type TotpUserFactor struct {
	Embedded    interface{}            `json:"_embedded,omitempty"`
	Links       interface{}            `json:"_links,omitempty"`
	Created     *time.Time             `json:"created,omitempty"`
	FactorType  string                 `json:"factorType,omitempty"`
	Id          string                 `json:"id,omitempty"`
	LastUpdated *time.Time             `json:"lastUpdated,omitempty"`
	Provider    string                 `json:"provider,omitempty"`
	Status      string                 `json:"status,omitempty"`
	Verify      *VerifyFactorRequest   `json:"verify,omitempty"`
	Profile     *TotpUserFactorProfile `json:"profile,omitempty"`
}

func NewTotpUserFactor

func NewTotpUserFactor() *TotpUserFactor

func (*TotpUserFactor) IsUserFactorInstance

func (a *TotpUserFactor) IsUserFactorInstance() bool

type TotpUserFactorProfile

type TotpUserFactorProfile struct {
	CredentialId string `json:"credentialId,omitempty"`
}

func NewTotpUserFactorProfile

func NewTotpUserFactorProfile() *TotpUserFactorProfile

func (*TotpUserFactorProfile) IsUserFactorInstance

func (a *TotpUserFactorProfile) IsUserFactorInstance() bool

type TrustedOrigin

type TrustedOrigin struct {
	Links         interface{} `json:"_links,omitempty"`
	Created       *time.Time  `json:"created,omitempty"`
	CreatedBy     string      `json:"createdBy,omitempty"`
	Id            string      `json:"id,omitempty"`
	LastUpdated   *time.Time  `json:"lastUpdated,omitempty"`
	LastUpdatedBy string      `json:"lastUpdatedBy,omitempty"`
	Name          string      `json:"name,omitempty"`
	Origin        string      `json:"origin,omitempty"`
	Scopes        []*Scope    `json:"scopes,omitempty"`
	Status        string      `json:"status,omitempty"`
}

type TrustedOriginResource

type TrustedOriginResource resource

func (*TrustedOriginResource) ActivateOrigin

func (m *TrustedOriginResource) ActivateOrigin(ctx context.Context, trustedOriginId string) (*TrustedOrigin, *Response, error)

func (*TrustedOriginResource) CreateOrigin

func (*TrustedOriginResource) DeactivateOrigin

func (m *TrustedOriginResource) DeactivateOrigin(ctx context.Context, trustedOriginId string) (*TrustedOrigin, *Response, error)

func (*TrustedOriginResource) DeleteOrigin

func (m *TrustedOriginResource) DeleteOrigin(ctx context.Context, trustedOriginId string) (*Response, error)

func (*TrustedOriginResource) GetOrigin

func (m *TrustedOriginResource) GetOrigin(ctx context.Context, trustedOriginId string) (*TrustedOrigin, *Response, error)

func (*TrustedOriginResource) ListOrigins

func (m *TrustedOriginResource) ListOrigins(ctx context.Context, qp *query.Params) ([]*TrustedOrigin, *Response, error)

func (*TrustedOriginResource) UpdateOrigin

func (m *TrustedOriginResource) UpdateOrigin(ctx context.Context, trustedOriginId string, body TrustedOrigin) (*TrustedOrigin, *Response, error)

type U2fUserFactor

type U2fUserFactor struct {
	Embedded    interface{}           `json:"_embedded,omitempty"`
	Links       interface{}           `json:"_links,omitempty"`
	Created     *time.Time            `json:"created,omitempty"`
	FactorType  string                `json:"factorType,omitempty"`
	Id          string                `json:"id,omitempty"`
	LastUpdated *time.Time            `json:"lastUpdated,omitempty"`
	Provider    string                `json:"provider,omitempty"`
	Status      string                `json:"status,omitempty"`
	Verify      *VerifyFactorRequest  `json:"verify,omitempty"`
	Profile     *U2fUserFactorProfile `json:"profile,omitempty"`
}

func NewU2fUserFactor

func NewU2fUserFactor() *U2fUserFactor

func (*U2fUserFactor) IsUserFactorInstance

func (a *U2fUserFactor) IsUserFactorInstance() bool

type U2fUserFactorProfile

type U2fUserFactorProfile struct {
	CredentialId string `json:"credentialId,omitempty"`
}

func NewU2fUserFactorProfile

func NewU2fUserFactorProfile() *U2fUserFactorProfile

func (*U2fUserFactorProfile) IsUserFactorInstance

func (a *U2fUserFactorProfile) IsUserFactorInstance() bool

type User

type User struct {
	Embedded              interface{}      `json:"_embedded,omitempty"`
	Links                 interface{}      `json:"_links,omitempty"`
	Activated             *time.Time       `json:"activated,omitempty"`
	Created               *time.Time       `json:"created,omitempty"`
	Credentials           *UserCredentials `json:"credentials,omitempty"`
	Id                    string           `json:"id,omitempty"`
	LastLogin             *time.Time       `json:"lastLogin,omitempty"`
	LastUpdated           *time.Time       `json:"lastUpdated,omitempty"`
	PasswordChanged       *time.Time       `json:"passwordChanged,omitempty"`
	Profile               *UserProfile     `json:"profile,omitempty"`
	Status                string           `json:"status,omitempty"`
	StatusChanged         *time.Time       `json:"statusChanged,omitempty"`
	TransitioningToStatus string           `json:"transitioningToStatus,omitempty"`
	Type                  *UserType        `json:"type,omitempty"`
}

type UserActivationToken

type UserActivationToken struct {
	ActivationToken string `json:"activationToken,omitempty"`
	ActivationUrl   string `json:"activationUrl,omitempty"`
}

type UserAgent

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

func NewUserAgent

func NewUserAgent(config *config) UserAgent

func (UserAgent) String

func (ua UserAgent) String() string

type UserCondition

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

type UserCredentials

type UserCredentials struct {
	Password         *PasswordCredential         `json:"password,omitempty"`
	Provider         *AuthenticationProvider     `json:"provider,omitempty"`
	RecoveryQuestion *RecoveryQuestionCredential `json:"recovery_question,omitempty"`
}

type UserFactor

type UserFactor struct {
	Embedded    interface{}          `json:"_embedded,omitempty"`
	Links       interface{}          `json:"_links,omitempty"`
	Created     *time.Time           `json:"created,omitempty"`
	FactorType  string               `json:"factorType,omitempty"`
	Id          string               `json:"id,omitempty"`
	LastUpdated *time.Time           `json:"lastUpdated,omitempty"`
	Provider    string               `json:"provider,omitempty"`
	Status      string               `json:"status,omitempty"`
	Verify      *VerifyFactorRequest `json:"verify,omitempty"`
}

func NewUserFactor

func NewUserFactor() *UserFactor

func (*UserFactor) IsUserFactorInstance

func (a *UserFactor) IsUserFactorInstance() bool

type UserFactorResource

type UserFactorResource resource

func (*UserFactorResource) ActivateFactor

func (m *UserFactorResource) ActivateFactor(ctx context.Context, userId string, factorId string, body ActivateFactorRequest, factorInstance Factor) (Factor, *Response, error)

The `sms` and `token:software:totp` factor types require activation to complete the enrollment process.

func (*UserFactorResource) DeleteFactor

func (m *UserFactorResource) DeleteFactor(ctx context.Context, userId string, factorId string) (*Response, error)

Unenrolls an existing factor for the specified user, allowing the user to enroll a new factor.

func (*UserFactorResource) EnrollFactor

func (m *UserFactorResource) EnrollFactor(ctx context.Context, userId string, body Factor, qp *query.Params) (Factor, *Response, error)

Enrolls a user with a supported factor.

func (*UserFactorResource) GetFactor

func (m *UserFactorResource) GetFactor(ctx context.Context, userId string, factorId string, factorInstance Factor) (Factor, *Response, error)

Fetches a factor for the specified user

func (*UserFactorResource) GetFactorTransactionStatus

func (m *UserFactorResource) GetFactorTransactionStatus(ctx context.Context, userId string, factorId string, transactionId string) (*VerifyUserFactorResponse, *Response, error)

Polls factors verification transaction for status.

func (*UserFactorResource) ListFactors

func (m *UserFactorResource) ListFactors(ctx context.Context, userId string) ([]Factor, *Response, error)

Enumerates all the enrolled factors for the specified user

func (*UserFactorResource) ListSupportedFactors

func (m *UserFactorResource) ListSupportedFactors(ctx context.Context, userId string) ([]Factor, *Response, error)

Enumerates all the supported factors that can be enrolled for the specified user

func (*UserFactorResource) ListSupportedSecurityQuestions

func (m *UserFactorResource) ListSupportedSecurityQuestions(ctx context.Context, userId string) ([]*SecurityQuestion, *Response, error)

Enumerates all available security questions for a user's `question` factor

func (*UserFactorResource) VerifyFactor

func (m *UserFactorResource) VerifyFactor(ctx context.Context, userId string, factorId string, body VerifyFactorRequest, factorInstance Factor, qp *query.Params) (*VerifyUserFactorResponse, *Response, error)

Verifies an OTP for a `token` or `token:hardware` factor

type UserIdentifierConditionEvaluatorPattern

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

type UserIdentifierPolicyRuleCondition

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

type UserIdentityProviderLinkRequest

type UserIdentityProviderLinkRequest struct {
	ExternalId string `json:"externalId,omitempty"`
}

type UserLifecycleAttributePolicyRuleCondition

type UserLifecycleAttributePolicyRuleCondition struct {
	AttributeName string `json:"attributeName,omitempty"`
	MatchingValue string `json:"matchingValue,omitempty"`
}

type UserNextLogin

type UserNextLogin string

type UserPolicyRuleCondition

type UserPolicyRuleCondition struct {
	Exclude                []string                                   `json:"exclude,omitempty"`
	Inactivity             *InactivityPolicyRuleCondition             `json:"inactivity,omitempty"`
	Include                []string                                   `json:"include,omitempty"`
	LifecycleExpiration    *LifecycleExpirationPolicyRuleCondition    `json:"lifecycleExpiration,omitempty"`
	PasswordExpiration     *PasswordExpirationPolicyRuleCondition     `json:"passwordExpiration,omitempty"`
	UserLifecycleAttribute *UserLifecycleAttributePolicyRuleCondition `json:"userLifecycleAttribute,omitempty"`
}

type UserProfile

type UserProfile map[string]interface{}

type UserResource

type UserResource resource

func (*UserResource) ActivateUser

func (m *UserResource) ActivateUser(ctx context.Context, userId string, qp *query.Params) (*UserActivationToken, *Response, error)

Activates a user. This operation can only be performed on users with a `STAGED` status. Activation of a user is an asynchronous operation. The user will have the `transitioningToStatus` property with a value of `ACTIVE` during activation to indicate that the user hasn't completed the asynchronous operation. The user will have a status of `ACTIVE` when the activation process is complete.

func (*UserResource) AddAllAppsAsTargetToRole

func (m *UserResource) AddAllAppsAsTargetToRole(ctx context.Context, userId string, roleId string) (*Response, error)

func (*UserResource) AddApplicationTargetToAdminRoleForUser

func (m *UserResource) AddApplicationTargetToAdminRoleForUser(ctx context.Context, userId string, roleId string, appName string) (*Response, error)

func (*UserResource) AddApplicationTargetToAppAdminRoleForUser

func (m *UserResource) AddApplicationTargetToAppAdminRoleForUser(ctx context.Context, userId string, roleId string, appName string, applicationId string) (*Response, error)

Add App Instance Target to App Administrator Role given to a User

func (*UserResource) AddGroupTargetToRole

func (m *UserResource) AddGroupTargetToRole(ctx context.Context, userId string, roleId string, groupId string) (*Response, error)

func (*UserResource) AssignRoleToUser

func (m *UserResource) AssignRoleToUser(ctx context.Context, userId string, body AssignRoleRequest, qp *query.Params) (*Role, *Response, error)

Assigns a role to a user.

func (*UserResource) ChangePassword

func (m *UserResource) ChangePassword(ctx context.Context, userId string, body ChangePasswordRequest, qp *query.Params) (*UserCredentials, *Response, error)

Changes a user's password by validating the user's current password. This operation can only be performed on users in `STAGED`, `ACTIVE`, `PASSWORD_EXPIRED`, or `RECOVERY` status that have a valid password credential

func (*UserResource) ChangeRecoveryQuestion

func (m *UserResource) ChangeRecoveryQuestion(ctx context.Context, userId string, body UserCredentials) (*UserCredentials, *Response, error)

Changes a user's recovery question & answer credential by validating the user's current password. This operation can only be performed on users in **STAGED**, **ACTIVE** or **RECOVERY** `status` that have a valid password credential

func (*UserResource) ClearUserSessions

func (m *UserResource) ClearUserSessions(ctx context.Context, userId string, qp *query.Params) (*Response, error)

Removes all active identity provider sessions. This forces the user to authenticate on the next operation. Optionally revokes OpenID Connect and OAuth refresh and access tokens issued to the user.

func (*UserResource) CreateUser

func (m *UserResource) CreateUser(ctx context.Context, body CreateUserRequest, qp *query.Params) (*User, *Response, error)

Creates a new user in your Okta organization with or without credentials.

func (*UserResource) DeactivateOrDeleteUser

func (m *UserResource) DeactivateOrDeleteUser(ctx context.Context, userId string, qp *query.Params) (*Response, error)

Deletes a user permanently. This operation can only be performed on users that have a `DEPROVISIONED` status. **This action cannot be recovered!**

func (*UserResource) DeactivateUser

func (m *UserResource) DeactivateUser(ctx context.Context, userId string, qp *query.Params) (*Response, error)

Deactivates a user. This operation can only be performed on users that do not have a `DEPROVISIONED` status. Deactivation of a user is an asynchronous operation. The user will have the `transitioningToStatus` property with a value of `DEPROVISIONED` during deactivation to indicate that the user hasn't completed the asynchronous operation. The user will have a status of `DEPROVISIONED` when the deactivation process is complete.

func (*UserResource) ExpirePassword

func (m *UserResource) ExpirePassword(ctx context.Context, userId string) (*User, *Response, error)

This operation transitions the user to the status of `PASSWORD_EXPIRED` so that the user is required to change their password at their next login.

func (*UserResource) ExpirePasswordAndGetTemporaryPassword

func (m *UserResource) ExpirePasswordAndGetTemporaryPassword(ctx context.Context, userId string) (*TempPassword, *Response, error)

This operation transitions the user to the status of `PASSWORD_EXPIRED` and the user's password is reset to a temporary password that is returned.

func (*UserResource) ForgotPasswordGenerateOneTimeToken

func (m *UserResource) ForgotPasswordGenerateOneTimeToken(ctx context.Context, userId string, qp *query.Params) (*ForgotPasswordResponse, *Response, error)

Generates a one-time token (OTT) that can be used to reset a user's password

func (*UserResource) ForgotPasswordSetNewPassword

func (m *UserResource) ForgotPasswordSetNewPassword(ctx context.Context, userId string, body UserCredentials, qp *query.Params) (*ForgotPasswordResponse, *Response, error)

Sets a new password for a user by validating the user's answer to their current recovery question

func (*UserResource) GetLinkedObjectsForUser

func (m *UserResource) GetLinkedObjectsForUser(ctx context.Context, userId string, relationshipName string, qp *query.Params) ([]*ResponseLinks, *Response, error)

Get linked objects for a user, relationshipName can be a primary or associated relationship name

func (*UserResource) GetRefreshTokenForUserAndClient

func (m *UserResource) GetRefreshTokenForUserAndClient(ctx context.Context, userId string, clientId string, tokenId string, qp *query.Params) (*OAuth2RefreshToken, *Response, error)

Gets a refresh token issued for the specified User and Client.

func (*UserResource) GetUser

func (m *UserResource) GetUser(ctx context.Context, userId string) (*User, *Response, error)

Fetches a user from your Okta organization.

func (*UserResource) GetUserGrant

func (m *UserResource) GetUserGrant(ctx context.Context, userId string, grantId string, qp *query.Params) (*OAuth2ScopeConsentGrant, *Response, error)

Gets a grant for the specified user

func (m *UserResource) ListAppLinks(ctx context.Context, userId string) ([]*AppLink, *Response, error)

Fetches appLinks for all direct or indirect (via group membership) assigned applications.

func (*UserResource) ListApplicationTargetsForApplicationAdministratorRoleForUser

func (m *UserResource) ListApplicationTargetsForApplicationAdministratorRoleForUser(ctx context.Context, userId string, roleId string, qp *query.Params) ([]*CatalogApplication, *Response, error)

Lists all App targets for an `APP_ADMIN` Role assigned to a User. This methods return list may include full Applications or Instances. The response for an instance will have an `ID` value, while Application will not have an ID.

func (*UserResource) ListAssignedRolesForUser

func (m *UserResource) ListAssignedRolesForUser(ctx context.Context, userId string, qp *query.Params) ([]*Role, *Response, error)

Lists all roles assigned to a user.

func (*UserResource) ListGrantsForUserAndClient

func (m *UserResource) ListGrantsForUserAndClient(ctx context.Context, userId string, clientId string, qp *query.Params) ([]*OAuth2ScopeConsentGrant, *Response, error)

Lists all grants for a specified user and client

func (*UserResource) ListGroupTargetsForRole

func (m *UserResource) ListGroupTargetsForRole(ctx context.Context, userId string, roleId string, qp *query.Params) ([]*Group, *Response, error)

func (*UserResource) ListRefreshTokensForUserAndClient

func (m *UserResource) ListRefreshTokensForUserAndClient(ctx context.Context, userId string, clientId string, qp *query.Params) ([]*OAuth2RefreshToken, *Response, error)

Lists all refresh tokens issued for the specified User and Client.

func (*UserResource) ListUserClients

func (m *UserResource) ListUserClients(ctx context.Context, userId string) ([]*OAuth2Client, *Response, error)

Lists all client resources for which the specified user has grants or tokens.

func (*UserResource) ListUserGrants

func (m *UserResource) ListUserGrants(ctx context.Context, userId string, qp *query.Params) ([]*OAuth2ScopeConsentGrant, *Response, error)

Lists all grants for the specified user

func (*UserResource) ListUserGroups

func (m *UserResource) ListUserGroups(ctx context.Context, userId string) ([]*Group, *Response, error)

Fetches the groups of which the user is a member.

func (*UserResource) ListUserIdentityProviders

func (m *UserResource) ListUserIdentityProviders(ctx context.Context, userId string) ([]*IdentityProvider, *Response, error)

Lists the IdPs associated with the user.

func (*UserResource) ListUsers

func (m *UserResource) ListUsers(ctx context.Context, qp *query.Params) ([]*User, *Response, error)

Lists users in your organization with pagination in most cases. A subset of users can be returned that match a supported filter expression or search criteria.

func (*UserResource) PartialUpdateUser

func (m *UserResource) PartialUpdateUser(ctx context.Context, userId string, body User, qp *query.Params) (*User, *Response, error)

Fetch a user by `id`, `login`, or `login shortname` if the short name is unambiguous.

func (*UserResource) ReactivateUser

func (m *UserResource) ReactivateUser(ctx context.Context, userId string, qp *query.Params) (*UserActivationToken, *Response, error)

Reactivates a user. This operation can only be performed on users with a `PROVISIONED` status. This operation restarts the activation workflow if for some reason the user activation was not completed when using the activationToken from [Activate User](#activate-user).

func (*UserResource) RemoveApplicationTargetFromAdministratorRoleForUser

func (m *UserResource) RemoveApplicationTargetFromAdministratorRoleForUser(ctx context.Context, userId string, roleId string, appName string, applicationId string) (*Response, error)

Remove App Instance Target to App Administrator Role given to a User

func (*UserResource) RemoveApplicationTargetFromApplicationAdministratorRoleForUser

func (m *UserResource) RemoveApplicationTargetFromApplicationAdministratorRoleForUser(ctx context.Context, userId string, roleId string, appName string) (*Response, error)

func (*UserResource) RemoveGroupTargetFromRole

func (m *UserResource) RemoveGroupTargetFromRole(ctx context.Context, userId string, roleId string, groupId string) (*Response, error)

func (*UserResource) RemoveLinkedObjectForUser

func (m *UserResource) RemoveLinkedObjectForUser(ctx context.Context, userId string, relationshipName string) (*Response, error)

Delete linked objects for a user, relationshipName can be ONLY a primary relationship name

func (*UserResource) RemoveRoleFromUser

func (m *UserResource) RemoveRoleFromUser(ctx context.Context, userId string, roleId string) (*Response, error)

Unassigns a role from a user.

func (*UserResource) ResetFactors

func (m *UserResource) ResetFactors(ctx context.Context, userId string) (*Response, error)

This operation resets all factors for the specified user. All MFA factor enrollments returned to the unenrolled state. The user's status remains ACTIVE. This link is present only if the user is currently enrolled in one or more MFA factors.

func (*UserResource) ResetPassword

func (m *UserResource) ResetPassword(ctx context.Context, userId string, qp *query.Params) (*ResetPasswordToken, *Response, error)

Generates a one-time token (OTT) that can be used to reset a user's password. The OTT link can be automatically emailed to the user or returned to the API caller and distributed using a custom flow.

func (*UserResource) RevokeGrantsForUserAndClient

func (m *UserResource) RevokeGrantsForUserAndClient(ctx context.Context, userId string, clientId string) (*Response, error)

Revokes all grants for the specified user and client

func (*UserResource) RevokeTokenForUserAndClient

func (m *UserResource) RevokeTokenForUserAndClient(ctx context.Context, userId string, clientId string, tokenId string) (*Response, error)

Revokes the specified refresh token.

func (*UserResource) RevokeTokensForUserAndClient

func (m *UserResource) RevokeTokensForUserAndClient(ctx context.Context, userId string, clientId string) (*Response, error)

Revokes all refresh tokens issued for the specified User and Client.

func (*UserResource) RevokeUserGrant

func (m *UserResource) RevokeUserGrant(ctx context.Context, userId string, grantId string) (*Response, error)

Revokes one grant for a specified user

func (*UserResource) RevokeUserGrants

func (m *UserResource) RevokeUserGrants(ctx context.Context, userId string) (*Response, error)

Revokes all grants for a specified user

func (*UserResource) SetLinkedObjectForUser

func (m *UserResource) SetLinkedObjectForUser(ctx context.Context, associatedUserId string, primaryRelationshipName string, primaryUserId string) (*Response, error)

func (*UserResource) SuspendUser

func (m *UserResource) SuspendUser(ctx context.Context, userId string) (*Response, error)

Suspends a user. This operation can only be performed on users with an `ACTIVE` status. The user will have a status of `SUSPENDED` when the process is complete.

func (*UserResource) UnlockUser

func (m *UserResource) UnlockUser(ctx context.Context, userId string) (*Response, error)

Unlocks a user with a `LOCKED_OUT` status and returns them to `ACTIVE` status. Users will be able to login with their current password.

func (*UserResource) UnsuspendUser

func (m *UserResource) UnsuspendUser(ctx context.Context, userId string) (*Response, error)

Unsuspends a user and returns them to the `ACTIVE` state. This operation can only be performed on users that have a `SUSPENDED` status.

func (*UserResource) UpdateUser

func (m *UserResource) UpdateUser(ctx context.Context, userId string, body User, qp *query.Params) (*User, *Response, error)

Update a user's profile and/or credentials using strict-update semantics.

type UserStatus

type UserStatus string

type UserStatusPolicyRuleCondition

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

type UserType

type UserType struct {
	Links         interface{} `json:"_links,omitempty"`
	Created       *time.Time  `json:"created,omitempty"`
	CreatedBy     string      `json:"createdBy,omitempty"`
	Default       *bool       `json:"default,omitempty"`
	Description   string      `json:"description,omitempty"`
	DisplayName   string      `json:"displayName,omitempty"`
	Id            string      `json:"id,omitempty"`
	LastUpdated   *time.Time  `json:"lastUpdated,omitempty"`
	LastUpdatedBy string      `json:"lastUpdatedBy,omitempty"`
	Name          string      `json:"name,omitempty"`
}

type UserTypeResource

type UserTypeResource resource

func (*UserTypeResource) CreateUserType

func (m *UserTypeResource) CreateUserType(ctx context.Context, body UserType) (*UserType, *Response, error)

Creates a new User Type. A default User Type is automatically created along with your org, and you may add another 9 User Types for a maximum of 10.

func (*UserTypeResource) DeleteUserType

func (m *UserTypeResource) DeleteUserType(ctx context.Context, typeId string) (*Response, error)

Deletes a User Type permanently. This operation is not permitted for the default type, nor for any User Type that has existing users

func (*UserTypeResource) GetUserType

func (m *UserTypeResource) GetUserType(ctx context.Context, typeId string) (*UserType, *Response, error)

Fetches a User Type by ID. The special identifier `default` may be used to fetch the default User Type.

func (*UserTypeResource) ListUserTypes

func (m *UserTypeResource) ListUserTypes(ctx context.Context) ([]*UserType, *Response, error)

Fetches all User Types in your org

func (*UserTypeResource) ReplaceUserType

func (m *UserTypeResource) ReplaceUserType(ctx context.Context, typeId string, body UserType) (*UserType, *Response, error)

Replace an existing User Type

func (*UserTypeResource) UpdateUserType

func (m *UserTypeResource) UpdateUserType(ctx context.Context, typeId string, body UserType) (*UserType, *Response, error)

Updates an existing User Type

type VerifyFactorRequest

type VerifyFactorRequest struct {
	ActivationToken  string `json:"activationToken,omitempty"`
	Answer           string `json:"answer,omitempty"`
	Attestation      string `json:"attestation,omitempty"`
	ClientData       string `json:"clientData,omitempty"`
	NextPassCode     string `json:"nextPassCode,omitempty"`
	PassCode         string `json:"passCode,omitempty"`
	RegistrationData string `json:"registrationData,omitempty"`
	StateToken       string `json:"stateToken,omitempty"`
}

func NewVerifyFactorRequest

func NewVerifyFactorRequest() *VerifyFactorRequest

func (*VerifyFactorRequest) IsUserFactorInstance

func (a *VerifyFactorRequest) IsUserFactorInstance() bool

type VerifyUserFactorResponse

type VerifyUserFactorResponse struct {
	Embedded            interface{} `json:"_embedded,omitempty"`
	Links               interface{} `json:"_links,omitempty"`
	ExpiresAt           *time.Time  `json:"expiresAt,omitempty"`
	FactorResult        string      `json:"factorResult,omitempty"`
	FactorResultMessage string      `json:"factorResultMessage,omitempty"`
}

func NewVerifyUserFactorResponse added in v2.1.0

func NewVerifyUserFactorResponse() *VerifyUserFactorResponse

func (*VerifyUserFactorResponse) IsUserFactorInstance added in v2.1.0

func (a *VerifyUserFactorResponse) IsUserFactorInstance() bool

type WebAuthnUserFactor added in v2.1.0

type WebAuthnUserFactor struct {
	Embedded    interface{}                `json:"_embedded,omitempty"`
	Links       interface{}                `json:"_links,omitempty"`
	Created     *time.Time                 `json:"created,omitempty"`
	FactorType  string                     `json:"factorType,omitempty"`
	Id          string                     `json:"id,omitempty"`
	LastUpdated *time.Time                 `json:"lastUpdated,omitempty"`
	Provider    string                     `json:"provider,omitempty"`
	Status      string                     `json:"status,omitempty"`
	Verify      *VerifyFactorRequest       `json:"verify,omitempty"`
	Profile     *WebAuthnUserFactorProfile `json:"profile,omitempty"`
}

func NewWebAuthnUserFactor added in v2.1.0

func NewWebAuthnUserFactor() *WebAuthnUserFactor

func (*WebAuthnUserFactor) IsUserFactorInstance added in v2.1.0

func (a *WebAuthnUserFactor) IsUserFactorInstance() bool

type WebAuthnUserFactorProfile added in v2.1.0

type WebAuthnUserFactorProfile struct {
	AuthenticatorName string `json:"authenticatorName,omitempty"`
	CredentialId      string `json:"credentialId,omitempty"`
}

type WebUserFactor

type WebUserFactor struct {
	Embedded    interface{}           `json:"_embedded,omitempty"`
	Links       interface{}           `json:"_links,omitempty"`
	Created     *time.Time            `json:"created,omitempty"`
	FactorType  string                `json:"factorType,omitempty"`
	Id          string                `json:"id,omitempty"`
	LastUpdated *time.Time            `json:"lastUpdated,omitempty"`
	Provider    string                `json:"provider,omitempty"`
	Status      string                `json:"status,omitempty"`
	Verify      *VerifyFactorRequest  `json:"verify,omitempty"`
	Profile     *WebUserFactorProfile `json:"profile,omitempty"`
}

func NewWebUserFactor

func NewWebUserFactor() *WebUserFactor

func (*WebUserFactor) IsUserFactorInstance

func (a *WebUserFactor) IsUserFactorInstance() bool

type WebUserFactorProfile

type WebUserFactorProfile struct {
	CredentialId string `json:"credentialId,omitempty"`
}

func NewWebUserFactorProfile

func NewWebUserFactorProfile() *WebUserFactorProfile

func (*WebUserFactorProfile) IsUserFactorInstance

func (a *WebUserFactorProfile) IsUserFactorInstance() bool

type WsFederationApplication

type WsFederationApplication struct {
	Embedded      interface{}                      `json:"_embedded,omitempty"`
	Links         interface{}                      `json:"_links,omitempty"`
	Accessibility *ApplicationAccessibility        `json:"accessibility,omitempty"`
	Created       *time.Time                       `json:"created,omitempty"`
	Credentials   *ApplicationCredentials          `json:"credentials,omitempty"`
	Features      []string                         `json:"features,omitempty"`
	Id            string                           `json:"id,omitempty"`
	Label         string                           `json:"label,omitempty"`
	LastUpdated   *time.Time                       `json:"lastUpdated,omitempty"`
	Licensing     *ApplicationLicensing            `json:"licensing,omitempty"`
	Name          string                           `json:"name,omitempty"`
	Profile       interface{}                      `json:"profile,omitempty"`
	Settings      *WsFederationApplicationSettings `json:"settings,omitempty"`
	SignOnMode    string                           `json:"signOnMode,omitempty"`
	Status        string                           `json:"status,omitempty"`
	Visibility    *ApplicationVisibility           `json:"visibility,omitempty"`
}

func NewWsFederationApplication

func NewWsFederationApplication() *WsFederationApplication

func (*WsFederationApplication) IsApplicationInstance

func (a *WsFederationApplication) IsApplicationInstance() bool

type WsFederationApplicationSettings

type WsFederationApplicationSettings struct {
	App                *WsFederationApplicationSettingsApplication `json:"app,omitempty"`
	ImplicitAssignment *bool                                       `json:"implicitAssignment,omitempty"`
	InlineHookId       string                                      `json:"inlineHookId,omitempty"`
	Notifications      *ApplicationSettingsNotifications           `json:"notifications,omitempty"`
}

func NewWsFederationApplicationSettings

func NewWsFederationApplicationSettings() *WsFederationApplicationSettings

func (*WsFederationApplicationSettings) IsApplicationInstance

func (a *WsFederationApplicationSettings) IsApplicationInstance() bool

type WsFederationApplicationSettingsApplication

type WsFederationApplicationSettingsApplication struct {
	AttributeStatements  string `json:"attributeStatements,omitempty"`
	AudienceRestriction  string `json:"audienceRestriction,omitempty"`
	AuthnContextClassRef string `json:"authnContextClassRef,omitempty"`
	GroupFilter          string `json:"groupFilter,omitempty"`
	GroupName            string `json:"groupName,omitempty"`
	GroupValueFormat     string `json:"groupValueFormat,omitempty"`
	NameIDFormat         string `json:"nameIDFormat,omitempty"`
	Realm                string `json:"realm,omitempty"`
	SiteURL              string `json:"siteURL,omitempty"`
	UsernameAttribute    string `json:"usernameAttribute,omitempty"`
	WReplyOverride       *bool  `json:"wReplyOverride,omitempty"`
	WReplyURL            string `json:"wReplyURL,omitempty"`
}

func NewWsFederationApplicationSettingsApplication

func NewWsFederationApplicationSettingsApplication() *WsFederationApplicationSettingsApplication

func (*WsFederationApplicationSettingsApplication) IsApplicationInstance

func (a *WsFederationApplicationSettingsApplication) IsApplicationInstance() bool

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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