okta

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "0.1.0"

Variables

This section is empty.

Functions

func CheckResponseForError

func CheckResponseForError(resp *http.Response) error

func Get429BackoffTime added in v1.0.3

func Get429BackoffTime(response *http.Response) int64

Types

type App added in v1.0.3

type App interface {
	IsApplicationInstance() bool
}
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 added in v1.0.3

func NewAppUser() *AppUser

func (*AppUser) IsApplicationInstance added in v1.0.3

func (a *AppUser) IsApplicationInstance() bool

type AppUserCredentials

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

func NewAppUserCredentials added in v1.0.3

func NewAppUserCredentials() *AppUserCredentials

func (*AppUserCredentials) IsApplicationInstance added in v1.0.3

func (a *AppUserCredentials) IsApplicationInstance() bool

type AppUserPasswordCredential

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

func NewAppUserPasswordCredential added in v1.0.3

func NewAppUserPasswordCredential() *AppUserPasswordCredential

func (*AppUserPasswordCredential) IsApplicationInstance added in v1.0.3

func (a *AppUserPasswordCredential) IsApplicationInstance() bool

type AppUserResource

type AppUserResource resource

func (*AppUserResource) DeleteApplicationUser

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

func (*AppUserResource) UpdateApplicationUser

func (m *AppUserResource) UpdateApplicationUser(appId string, userId string, body AppUser) (*AppUser, *Response, error)

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 added in v1.0.3

func NewApplication() *Application

func (*Application) IsApplicationInstance added in v1.0.3

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 added in v1.0.3

func NewApplicationAccessibility() *ApplicationAccessibility

func (*ApplicationAccessibility) IsApplicationInstance added in v1.0.3

func (a *ApplicationAccessibility) IsApplicationInstance() bool

type ApplicationCredentials

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

func NewApplicationCredentials added in v1.0.3

func NewApplicationCredentials() *ApplicationCredentials

func (*ApplicationCredentials) IsApplicationInstance added in v1.0.3

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 added in v1.0.3

func NewApplicationCredentialsOAuthClient() *ApplicationCredentialsOAuthClient

func (*ApplicationCredentialsOAuthClient) IsApplicationInstance added in v1.0.3

func (a *ApplicationCredentialsOAuthClient) IsApplicationInstance() bool

type ApplicationCredentialsScheme

type ApplicationCredentialsScheme struct {
}

func NewApplicationCredentialsScheme added in v1.0.3

func NewApplicationCredentialsScheme() *ApplicationCredentialsScheme

func (*ApplicationCredentialsScheme) IsApplicationInstance added in v1.0.3

func (a *ApplicationCredentialsScheme) IsApplicationInstance() bool

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"`
}

func NewApplicationCredentialsSigning added in v1.0.3

func NewApplicationCredentialsSigning() *ApplicationCredentialsSigning

func (*ApplicationCredentialsSigning) IsApplicationInstance added in v1.0.3

func (a *ApplicationCredentialsSigning) IsApplicationInstance() bool

type ApplicationCredentialsUsernameTemplate

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

func NewApplicationCredentialsUsernameTemplate added in v1.0.3

func NewApplicationCredentialsUsernameTemplate() *ApplicationCredentialsUsernameTemplate

func (*ApplicationCredentialsUsernameTemplate) IsApplicationInstance added in v1.0.3

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 added in v1.0.3

func NewApplicationGroupAssignment() *ApplicationGroupAssignment

func (*ApplicationGroupAssignment) IsApplicationInstance added in v1.0.3

func (a *ApplicationGroupAssignment) IsApplicationInstance() bool

type ApplicationGroupAssignmentResource

type ApplicationGroupAssignmentResource resource

func (*ApplicationGroupAssignmentResource) DeleteApplicationGroupAssignment

func (m *ApplicationGroupAssignmentResource) DeleteApplicationGroupAssignment(appId string, groupId string) (*Response, error)

type ApplicationLicensing

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

func NewApplicationLicensing added in v1.0.3

func NewApplicationLicensing() *ApplicationLicensing

func (*ApplicationLicensing) IsApplicationInstance added in v1.0.3

func (a *ApplicationLicensing) IsApplicationInstance() bool

type ApplicationResource

type ApplicationResource resource

func (*ApplicationResource) ActivateApplication

func (m *ApplicationResource) ActivateApplication(appId string) (*Response, error)

func (*ApplicationResource) AssignUserToApplication

func (m *ApplicationResource) AssignUserToApplication(appId string, body AppUser) (*AppUser, *Response, error)

func (*ApplicationResource) CloneApplicationKey

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

func (*ApplicationResource) CreateApplication

func (m *ApplicationResource) CreateApplication(body App, qp *query.Params) (interface{}, *Response, error)

func (*ApplicationResource) CreateApplicationGroupAssignment

func (m *ApplicationResource) CreateApplicationGroupAssignment(appId string, groupId string, body ApplicationGroupAssignment) (*ApplicationGroupAssignment, *Response, error)

func (*ApplicationResource) DeactivateApplication

func (m *ApplicationResource) DeactivateApplication(appId string) (*Response, error)

func (*ApplicationResource) DeleteApplication

func (m *ApplicationResource) DeleteApplication(appId string) (*Response, error)

func (*ApplicationResource) DeleteApplicationGroupAssignment

func (m *ApplicationResource) DeleteApplicationGroupAssignment(appId string, groupId string) (*Response, error)

func (*ApplicationResource) DeleteApplicationUser

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

func (*ApplicationResource) GetApplication

func (m *ApplicationResource) GetApplication(appId string, appInstance App, qp *query.Params) (interface{}, *Response, error)

func (*ApplicationResource) GetApplicationGroupAssignment

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

func (*ApplicationResource) GetApplicationKey

func (m *ApplicationResource) GetApplicationKey(appId string, keyId string) (*JsonWebKey, *Response, error)

func (*ApplicationResource) GetApplicationUser

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

func (*ApplicationResource) ListApplicationGroupAssignments

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

func (*ApplicationResource) ListApplicationKeys

func (m *ApplicationResource) ListApplicationKeys(appId string) ([]*JsonWebKey, *Response, error)

func (*ApplicationResource) ListApplicationUsers

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

func (*ApplicationResource) ListApplications

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

func (*ApplicationResource) UpdateApplication

func (m *ApplicationResource) UpdateApplication(appId string, body App) (interface{}, *Response, error)

func (*ApplicationResource) UpdateApplicationUser

func (m *ApplicationResource) UpdateApplicationUser(appId string, userId string, body AppUser) (*AppUser, *Response, error)

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 added in v1.0.3

func NewApplicationSettings() *ApplicationSettings

func (*ApplicationSettings) IsApplicationInstance added in v1.0.3

func (a *ApplicationSettings) IsApplicationInstance() bool

type ApplicationSettingsApplication

type ApplicationSettingsApplication map[string]interface{}

func NewApplicationSettingsApplication added in v1.0.3

func NewApplicationSettingsApplication() *ApplicationSettingsApplication

func (*ApplicationSettingsApplication) IsApplicationInstance added in v1.0.3

func (a *ApplicationSettingsApplication) IsApplicationInstance() bool

type ApplicationSettingsNotifications

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

func NewApplicationSettingsNotifications added in v1.0.3

func NewApplicationSettingsNotifications() *ApplicationSettingsNotifications

func (*ApplicationSettingsNotifications) IsApplicationInstance added in v1.0.3

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 added in v1.0.3

func NewApplicationSettingsNotificationsVpn() *ApplicationSettingsNotificationsVpn

func (*ApplicationSettingsNotificationsVpn) IsApplicationInstance added in v1.0.3

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 added in v1.0.3

func NewApplicationSettingsNotificationsVpnNetwork() *ApplicationSettingsNotificationsVpnNetwork

func (*ApplicationSettingsNotificationsVpnNetwork) IsApplicationInstance added in v1.0.3

func (a *ApplicationSettingsNotificationsVpnNetwork) IsApplicationInstance() bool

type ApplicationSignOnMode

type ApplicationSignOnMode struct {
}

func NewApplicationSignOnMode added in v1.0.3

func NewApplicationSignOnMode() *ApplicationSignOnMode

func (*ApplicationSignOnMode) IsApplicationInstance added in v1.0.3

func (a *ApplicationSignOnMode) IsApplicationInstance() bool

type ApplicationVisibility

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

func NewApplicationVisibility added in v1.0.3

func NewApplicationVisibility() *ApplicationVisibility

func (*ApplicationVisibility) IsApplicationInstance added in v1.0.3

func (a *ApplicationVisibility) IsApplicationInstance() bool

type ApplicationVisibilityHide

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

func NewApplicationVisibilityHide added in v1.0.3

func NewApplicationVisibilityHide() *ApplicationVisibilityHide

func (*ApplicationVisibilityHide) IsApplicationInstance added in v1.0.3

func (a *ApplicationVisibilityHide) IsApplicationInstance() bool

type AuthenticationProvider

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

type AuthenticationProviderType

type AuthenticationProviderType struct {
}

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 added in v1.0.3

func NewAutoLoginApplication() *AutoLoginApplication

func (*AutoLoginApplication) IsApplicationInstance added in v1.0.3

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 added in v1.0.3

func NewAutoLoginApplicationSettings() *AutoLoginApplicationSettings

func (*AutoLoginApplicationSettings) IsApplicationInstance added in v1.0.3

func (a *AutoLoginApplicationSettings) IsApplicationInstance() bool

type AutoLoginApplicationSettingsSignOn

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

func NewAutoLoginApplicationSettingsSignOn added in v1.0.3

func NewAutoLoginApplicationSettingsSignOn() *AutoLoginApplicationSettingsSignOn

func (*AutoLoginApplicationSettingsSignOn) IsApplicationInstance added in v1.0.3

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 added in v1.0.3

func NewBasicApplicationSettings() *BasicApplicationSettings

func (*BasicApplicationSettings) IsApplicationInstance added in v1.0.3

func (a *BasicApplicationSettings) IsApplicationInstance() bool

type BasicApplicationSettingsApplication

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

func NewBasicApplicationSettingsApplication added in v1.0.3

func NewBasicApplicationSettingsApplication() *BasicApplicationSettingsApplication

func (*BasicApplicationSettingsApplication) IsApplicationInstance added in v1.0.3

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 added in v1.0.3

func NewBasicAuthApplication() *BasicAuthApplication

func (*BasicAuthApplication) IsApplicationInstance added in v1.0.3

func (a *BasicAuthApplication) IsApplicationInstance() bool

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 added in v1.0.3

func NewBookmarkApplication() *BookmarkApplication

func (*BookmarkApplication) IsApplicationInstance added in v1.0.3

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 added in v1.0.3

func NewBookmarkApplicationSettings() *BookmarkApplicationSettings

func (*BookmarkApplicationSettings) IsApplicationInstance added in v1.0.3

func (a *BookmarkApplicationSettings) IsApplicationInstance() bool

type BookmarkApplicationSettingsApplication

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

func NewBookmarkApplicationSettingsApplication added in v1.0.3

func NewBookmarkApplicationSettingsApplication() *BookmarkApplicationSettingsApplication

func (*BookmarkApplicationSettingsApplication) IsApplicationInstance added in v1.0.3

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 added in v1.0.3

func NewBrowserPluginApplication() *BrowserPluginApplication

func (*BrowserPluginApplication) IsApplicationInstance added in v1.0.3

func (a *BrowserPluginApplication) IsApplicationInstance() bool

type CallFactor

type CallFactor struct {
	Embedded                  interface{}          `json:"_embedded,omitempty"`
	Links                     interface{}          `json:"_links,omitempty"`
	Device                    string               `json:"device,omitempty"`
	DeviceType                string               `json:"deviceType,omitempty"`
	FactorType                string               `json:"factorType,omitempty"`
	Id                        string               `json:"id,omitempty"`
	MfaStateTokenId           string               `json:"mfaStateTokenId,omitempty"`
	Profile                   *CallFactorProfile   `json:"profile,omitempty"`
	Provider                  string               `json:"provider,omitempty"`
	RechallengeExistingFactor *bool                `json:"rechallengeExistingFactor,omitempty"`
	SessionId                 string               `json:"sessionId,omitempty"`
	Status                    string               `json:"status,omitempty"`
	TokenLifetimeSeconds      int64                `json:"tokenLifetimeSeconds,omitempty"`
	UserId                    string               `json:"userId,omitempty"`
	Verify                    *VerifyFactorRequest `json:"verify,omitempty"`
}

func NewCallFactor added in v1.0.3

func NewCallFactor() *CallFactor

func (*CallFactor) IsUserFactorInstance added in v1.0.3

func (a *CallFactor) IsUserFactorInstance() bool

type CallFactorProfile

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

func NewCallFactorProfile added in v1.0.3

func NewCallFactorProfile() *CallFactorProfile

func (*CallFactorProfile) IsUserFactorInstance added in v1.0.3

func (a *CallFactorProfile) IsUserFactorInstance() bool

type ChangePasswordRequest

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

type Client

type Client struct {
	Application *ApplicationResource
	Group       *GroupResource
	LogEvent    *LogEventResource
	Policy      *PolicyResource
	Session     *SessionResource
	User        *UserResource
	Factor      *FactorResource
	// contains filtered or unexported fields
}

func NewClient

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

func (*Client) GetConfig

func (c *Client) GetConfig() *config

func (*Client) GetRequestExecutor

func (c *Client) GetRequestExecutor() *RequestExecutor

type ConfigSetter added in v1.0.3

type ConfigSetter func(*config)

func WithCache added in v1.0.3

func WithCache(cache bool) ConfigSetter

func WithCacheManager added in v1.0.3

func WithCacheManager(cacheManager cache.Cache) ConfigSetter

func WithCacheTti added in v1.0.3

func WithCacheTti(i int32) ConfigSetter

func WithCacheTtl added in v1.0.3

func WithCacheTtl(i int32) ConfigSetter

func WithConnectionTimeout added in v1.0.3

func WithConnectionTimeout(i int32) ConfigSetter

func WithHttpClient added in v1.0.3

func WithHttpClient(httpClient http.Client) ConfigSetter

func WithOrgUrl added in v1.0.3

func WithOrgUrl(url string) ConfigSetter

func WithProxyHost added in v1.0.3

func WithProxyHost(host string) ConfigSetter

func WithProxyPassword added in v1.0.3

func WithProxyPassword(pass string) ConfigSetter

func WithProxyPort added in v1.0.3

func WithProxyPort(i int32) ConfigSetter

func WithProxyUsername added in v1.0.3

func WithProxyUsername(username string) ConfigSetter

func WithRateLimitMaxRetries added in v1.0.3

func WithRateLimitMaxRetries(maxRetries int32) ConfigSetter

func WithRequestTimeout added in v1.0.3

func WithRequestTimeout(requestTimeout int32) ConfigSetter

func WithTestingDisableHttpsCheck added in v1.0.3

func WithTestingDisableHttpsCheck(httpsCheck bool) ConfigSetter

func WithToken added in v1.0.3

func WithToken(token string) ConfigSetter

func WithUserAgentExtra added in v1.0.3

func WithUserAgentExtra(userAgent string) ConfigSetter

type CreateSessionRequest

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

type EmailAddress added in v1.0.3

type EmailAddress struct {
	Status string `json:"status,omitempty"`
	Type   string `json:"type,omitempty"`
	Value  string `json:"value,omitempty"`
}

type EmailFactor

type EmailFactor struct {
	Embedded                  interface{}          `json:"_embedded,omitempty"`
	Links                     interface{}          `json:"_links,omitempty"`
	Device                    string               `json:"device,omitempty"`
	DeviceType                string               `json:"deviceType,omitempty"`
	FactorType                string               `json:"factorType,omitempty"`
	Id                        string               `json:"id,omitempty"`
	MfaStateTokenId           string               `json:"mfaStateTokenId,omitempty"`
	Profile                   *EmailFactorProfile  `json:"profile,omitempty"`
	Provider                  string               `json:"provider,omitempty"`
	RechallengeExistingFactor *bool                `json:"rechallengeExistingFactor,omitempty"`
	SessionId                 string               `json:"sessionId,omitempty"`
	Status                    string               `json:"status,omitempty"`
	TokenLifetimeSeconds      int64                `json:"tokenLifetimeSeconds,omitempty"`
	UserId                    string               `json:"userId,omitempty"`
	Verify                    *VerifyFactorRequest `json:"verify,omitempty"`
}

func NewEmailFactor added in v1.0.3

func NewEmailFactor() *EmailFactor

func (*EmailFactor) IsUserFactorInstance added in v1.0.3

func (a *EmailFactor) IsUserFactorInstance() bool

type EmailFactorProfile

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

func NewEmailFactorProfile added in v1.0.3

func NewEmailFactorProfile() *EmailFactorProfile

func (*EmailFactorProfile) IsUserFactorInstance added in v1.0.3

func (a *EmailFactorProfile) IsUserFactorInstance() bool

type EmailStatus added in v1.0.3

type EmailStatus struct {
}

type EmailType added in v1.0.3

type EmailType struct {
}

type Error

type Error struct {
	ErrorCode    string                   `json:"errorCode,omitempty"`
	ErrorSummary string                   `json:"errorSummary,omitempty"`
	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 Factor

type Factor struct {
	Embedded                  interface{}          `json:"_embedded,omitempty"`
	Links                     interface{}          `json:"_links,omitempty"`
	Device                    string               `json:"device,omitempty"`
	DeviceType                string               `json:"deviceType,omitempty"`
	FactorType                string               `json:"factorType,omitempty"`
	Id                        string               `json:"id,omitempty"`
	MfaStateTokenId           string               `json:"mfaStateTokenId,omitempty"`
	Profile                   *FactorProfile       `json:"profile,omitempty"`
	Provider                  string               `json:"provider,omitempty"`
	RechallengeExistingFactor *bool                `json:"rechallengeExistingFactor,omitempty"`
	SessionId                 string               `json:"sessionId,omitempty"`
	Status                    string               `json:"status,omitempty"`
	TokenLifetimeSeconds      int64                `json:"tokenLifetimeSeconds,omitempty"`
	UserId                    string               `json:"userId,omitempty"`
	Verify                    *VerifyFactorRequest `json:"verify,omitempty"`
}

func NewFactor added in v1.0.3

func NewFactor() *Factor

func (*Factor) IsUserFactorInstance added in v1.0.3

func (a *Factor) IsUserFactorInstance() bool

type FactorProfile

type FactorProfile struct {
}

func NewFactorProfile added in v1.0.3

func NewFactorProfile() *FactorProfile

func (*FactorProfile) IsUserFactorInstance added in v1.0.3

func (a *FactorProfile) IsUserFactorInstance() bool

type FactorProvider

type FactorProvider struct {
}

func NewFactorProvider added in v1.0.3

func NewFactorProvider() *FactorProvider

func (*FactorProvider) IsUserFactorInstance added in v1.0.3

func (a *FactorProvider) IsUserFactorInstance() bool

type FactorResource

type FactorResource resource

func (*FactorResource) ActivateFactor

func (m *FactorResource) ActivateFactor(userId string, factorId string, body VerifyFactorRequest) (interface{}, *Response, error)

func (*FactorResource) AddFactor

func (m *FactorResource) AddFactor(userId string, body UserFactor, qp *query.Params) (interface{}, *Response, error)

func (*FactorResource) DeleteFactor

func (m *FactorResource) DeleteFactor(userId string, factorId string) (*Response, error)

func (*FactorResource) GetFactor

func (m *FactorResource) GetFactor(userId string, factorId string, factorInstance UserFactor) (interface{}, *Response, error)

func (*FactorResource) ListFactors

func (m *FactorResource) ListFactors(userId string) ([]UserFactor, *Response, error)

func (*FactorResource) ListSupportedFactors

func (m *FactorResource) ListSupportedFactors(userId string) ([]interface{}, *Response, error)

func (*FactorResource) ListSupportedSecurityQuestions

func (m *FactorResource) ListSupportedSecurityQuestions(userId string) ([]*SecurityQuestion, *Response, error)

func (*FactorResource) VerifyFactor

func (m *FactorResource) VerifyFactor(userId string, factorId string, body VerifyFactorRequest, qp *query.Params) (*VerifyFactorResponse, *Response, error)

type FactorResultType

type FactorResultType struct {
}

func NewFactorResultType added in v1.0.3

func NewFactorResultType() *FactorResultType

func (*FactorResultType) IsUserFactorInstance added in v1.0.3

func (a *FactorResultType) IsUserFactorInstance() bool

type FactorStatus

type FactorStatus struct {
}

func NewFactorStatus added in v1.0.3

func NewFactorStatus() *FactorStatus

func (*FactorStatus) IsUserFactorInstance added in v1.0.3

func (a *FactorStatus) IsUserFactorInstance() bool

type FactorType

type FactorType struct {
}

func NewFactorType added in v1.0.3

func NewFactorType() *FactorType

func (*FactorType) IsUserFactorInstance added in v1.0.3

func (a *FactorType) IsUserFactorInstance() bool

type ForgotPasswordResponse

type ForgotPasswordResponse struct {
	ResetPasswordUrl string `json:"resetPasswordUrl,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 added in v1.0.3

type GroupCondition 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) ActivateRule

func (m *GroupResource) ActivateRule(ruleId string) (*Response, error)

func (*GroupResource) AddUserToGroup

func (m *GroupResource) AddUserToGroup(groupId string, userId string) (*Response, error)

func (*GroupResource) CreateGroup

func (m *GroupResource) CreateGroup(body Group) (*Group, *Response, error)

func (*GroupResource) CreateRule

func (m *GroupResource) CreateRule(body GroupRule) (*GroupRule, *Response, error)

func (*GroupResource) DeactivateRule

func (m *GroupResource) DeactivateRule(ruleId string) (*Response, error)

func (*GroupResource) DeleteGroup

func (m *GroupResource) DeleteGroup(groupId string) (*Response, error)

func (*GroupResource) DeleteRule

func (m *GroupResource) DeleteRule(ruleId string, qp *query.Params) (*Response, error)

func (*GroupResource) GetGroup

func (m *GroupResource) GetGroup(groupId string, qp *query.Params) (*Group, *Response, error)

func (*GroupResource) GetRule

func (m *GroupResource) GetRule(ruleId string, qp *query.Params) (*GroupRule, *Response, error)

func (*GroupResource) ListGroupUsers

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

func (*GroupResource) ListGroups

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

func (*GroupResource) ListRules

func (m *GroupResource) ListRules(qp *query.Params) ([]*GroupRule, *Response, error)

func (*GroupResource) RemoveGroupUser

func (m *GroupResource) RemoveGroupUser(groupId string, userId string) (*Response, error)

func (*GroupResource) UpdateGroup

func (m *GroupResource) UpdateGroup(groupId string, body Group) (*Group, *Response, error)

func (*GroupResource) UpdateRule

func (m *GroupResource) UpdateRule(ruleId string, body GroupRule) (*GroupRule, *Response, error)

type GroupRule

type GroupRule struct {
	Embedded       interface{}          `json:"_embedded,omitempty"`
	Actions        *GroupRuleAction     `json:"actions,omitempty"`
	AllGroupsValid *bool                `json:"allGroupsValid,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) DeleteRule

func (m *GroupRuleResource) DeleteRule(ruleId string, qp *query.Params) (*Response, error)

func (*GroupRuleResource) UpdateRule

func (m *GroupRuleResource) UpdateRule(ruleId string, body GroupRule) (*GroupRule, *Response, error)

type GroupRuleStatus

type GroupRuleStatus struct {
}

type GroupRuleUserCondition

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

type HardwareFactor

type HardwareFactor struct {
	Embedded                  interface{}            `json:"_embedded,omitempty"`
	Links                     interface{}            `json:"_links,omitempty"`
	Device                    string                 `json:"device,omitempty"`
	DeviceType                string                 `json:"deviceType,omitempty"`
	FactorType                string                 `json:"factorType,omitempty"`
	Id                        string                 `json:"id,omitempty"`
	MfaStateTokenId           string                 `json:"mfaStateTokenId,omitempty"`
	Profile                   *HardwareFactorProfile `json:"profile,omitempty"`
	Provider                  string                 `json:"provider,omitempty"`
	RechallengeExistingFactor *bool                  `json:"rechallengeExistingFactor,omitempty"`
	SessionId                 string                 `json:"sessionId,omitempty"`
	Status                    string                 `json:"status,omitempty"`
	TokenLifetimeSeconds      int64                  `json:"tokenLifetimeSeconds,omitempty"`
	UserId                    string                 `json:"userId,omitempty"`
	Verify                    *VerifyFactorRequest   `json:"verify,omitempty"`
}

func NewHardwareFactor added in v1.0.3

func NewHardwareFactor() *HardwareFactor

func (*HardwareFactor) IsUserFactorInstance added in v1.0.3

func (a *HardwareFactor) IsUserFactorInstance() bool

type HardwareFactorProfile

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

func NewHardwareFactorProfile added in v1.0.3

func NewHardwareFactorProfile() *HardwareFactorProfile

func (*HardwareFactorProfile) IsUserFactorInstance added in v1.0.3

func (a *HardwareFactorProfile) IsUserFactorInstance() bool

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 added in v1.0.3

func NewJsonWebKey() *JsonWebKey

func (*JsonWebKey) IsApplicationInstance added in v1.0.3

func (a *JsonWebKey) IsApplicationInstance() bool

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     []*LogCredentialProvider `json:"credentialProvider,omitempty"`
	CredentialType         []*LogCredentialType     `json:"credentialType,omitempty"`
	ExternalSessionId      string                   `json:"externalSessionId,omitempty"`
	Interface              string                   `json:"interface,omitempty"`
	Issuer                 *LogIssuer               `json:"issuer,omitempty"`
}

type LogAuthenticationProvider

type LogAuthenticationProvider struct {
}

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 struct {
}

type LogCredentialType

type LogCredentialType struct {
}

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 added in v1.0.3

type LogEventResource resource

func (*LogEventResource) GetLogs added in v1.0.3

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

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 struct {
}

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 OAuthApplicationCredentials

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

func NewOAuthApplicationCredentials added in v1.0.3

func NewOAuthApplicationCredentials() *OAuthApplicationCredentials

func (*OAuthApplicationCredentials) IsApplicationInstance added in v1.0.3

func (a *OAuthApplicationCredentials) IsApplicationInstance() bool

type OAuthEndpointAuthenticationMethod

type OAuthEndpointAuthenticationMethod struct {
}

func NewOAuthEndpointAuthenticationMethod added in v1.0.3

func NewOAuthEndpointAuthenticationMethod() *OAuthEndpointAuthenticationMethod

func (*OAuthEndpointAuthenticationMethod) IsApplicationInstance added in v1.0.3

func (a *OAuthEndpointAuthenticationMethod) IsApplicationInstance() bool

type OAuthGrantType

type OAuthGrantType struct {
}

func NewOAuthGrantType added in v1.0.3

func NewOAuthGrantType() *OAuthGrantType

func (*OAuthGrantType) IsApplicationInstance added in v1.0.3

func (a *OAuthGrantType) IsApplicationInstance() bool

type OAuthResponseType

type OAuthResponseType struct {
}

func NewOAuthResponseType added in v1.0.3

func NewOAuthResponseType() *OAuthResponseType

func (*OAuthResponseType) IsApplicationInstance added in v1.0.3

func (a *OAuthResponseType) IsApplicationInstance() bool

type OktaSignOnPolicy added in v1.0.3

type OktaSignOnPolicy struct {
	Embedded    interface{}                 `json:"_embedded,omitempty"`
	Links       interface{}                 `json:"_links,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"`
	Conditions  *OktaSignOnPolicyConditions `json:"conditions,omitempty"`
}

type OktaSignOnPolicyConditions added in v1.0.3

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

type OktaSignOnPolicyRule added in v1.0.3

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 added in v1.0.3

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

type OktaSignOnPolicyRuleConditions added in v1.0.3

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

type OktaSignOnPolicyRuleSignonActions added in v1.0.3

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 added in v1.0.3

type OktaSignOnPolicyRuleSignonSessionActions struct {
	MaxSessionIdleMinutes     int64 `json:"maxSessionIdleMinutes,omitempty"`
	MaxSessionLifetimeMinutes int64 `json:"maxSessionLifetimeMinutes,omitempty"`
	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 added in v1.0.3

func NewOpenIdConnectApplication() *OpenIdConnectApplication

func (*OpenIdConnectApplication) IsApplicationInstance added in v1.0.3

func (a *OpenIdConnectApplication) IsApplicationInstance() bool

type OpenIdConnectApplicationConsentMethod

type OpenIdConnectApplicationConsentMethod struct {
}

func NewOpenIdConnectApplicationConsentMethod added in v1.0.3

func NewOpenIdConnectApplicationConsentMethod() *OpenIdConnectApplicationConsentMethod

func (*OpenIdConnectApplicationConsentMethod) IsApplicationInstance added in v1.0.3

func (a *OpenIdConnectApplicationConsentMethod) IsApplicationInstance() bool

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 added in v1.0.3

func NewOpenIdConnectApplicationSettings() *OpenIdConnectApplicationSettings

func (*OpenIdConnectApplicationSettings) IsApplicationInstance added in v1.0.3

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             []string `json:"grant_types,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"`
	ResponseTypes          []string `json:"response_types,omitempty"`
	TosUri                 string   `json:"tos_uri,omitempty"`
	IssuerMode             string   `json:"issuer_mode,omitempty"`
}

func NewOpenIdConnectApplicationSettingsClient added in v1.0.3

func NewOpenIdConnectApplicationSettingsClient() *OpenIdConnectApplicationSettingsClient

func (*OpenIdConnectApplicationSettingsClient) IsApplicationInstance added in v1.0.3

func (a *OpenIdConnectApplicationSettingsClient) IsApplicationInstance() bool

type OpenIdConnectApplicationType

type OpenIdConnectApplicationType struct {
}

func NewOpenIdConnectApplicationType added in v1.0.3

func NewOpenIdConnectApplicationType() *OpenIdConnectApplicationType

func (*OpenIdConnectApplicationType) IsApplicationInstance added in v1.0.3

func (a *OpenIdConnectApplicationType) IsApplicationInstance() bool

type PasswordCredential

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

type PasswordDictionary added in v1.0.3

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

type PasswordDictionaryCommon added in v1.0.3

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

type PasswordPolicy added in v1.0.3

type PasswordPolicy struct {
	Embedded    interface{}               `json:"_embedded,omitempty"`
	Links       interface{}               `json:"_links,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"`
	Conditions  *PasswordPolicyConditions `json:"conditions,omitempty"`
	Settings    *PasswordPolicySettings   `json:"settings,omitempty"`
}

type PasswordPolicyAuthenticationProviderCondition added in v1.0.3

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

type PasswordPolicyConditions added in v1.0.3

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

type PasswordPolicyDelegationSettings added in v1.0.3

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

type PasswordPolicyDelegationSettingsOptions added in v1.0.3

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

type PasswordPolicyPasswordSettings added in v1.0.3

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

type PasswordPolicyPasswordSettingsAge added in v1.0.3

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 added in v1.0.3

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,omitempty"`
	MinNumber         int64               `json:"minNumber,omitempty"`
	MinSymbol         int64               `json:"minSymbol,omitempty"`
	MinUpperCase      int64               `json:"minUpperCase,omitempty"`
}

type PasswordPolicyPasswordSettingsLockout added in v1.0.3

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 added in v1.0.3

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

type PasswordPolicyRecoveryEmailProperties added in v1.0.3

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

type PasswordPolicyRecoveryEmailRecoveryToken added in v1.0.3

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

type PasswordPolicyRecoveryFactorSettings added in v1.0.3

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

type PasswordPolicyRecoveryFactors added in v1.0.3

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 added in v1.0.3

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

type PasswordPolicyRecoveryQuestionComplexity added in v1.0.3

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

type PasswordPolicyRecoveryQuestionProperties added in v1.0.3

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

type PasswordPolicyRecoverySettings added in v1.0.3

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

type PasswordPolicyRule added in v1.0.3

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 added in v1.0.3

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

type PasswordPolicyRuleActions added in v1.0.3

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

type PasswordPolicyRuleConditions added in v1.0.3

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

type PasswordPolicySettings added in v1.0.3

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

type Policy added in v1.0.3

type Policy struct {
	Embedded    interface{} `json:"_embedded,omitempty"`
	Links       interface{} `json:"_links,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 PolicyNetworkCondition added in v1.0.3

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

type PolicyPeopleCondition added in v1.0.3

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

type PolicyResource added in v1.0.3

type PolicyResource resource

func (*PolicyResource) ActivatePolicy added in v1.0.3

func (m *PolicyResource) ActivatePolicy(policyId string) (*Response, error)

func (*PolicyResource) ActivatePolicyRule added in v1.0.3

func (m *PolicyResource) ActivatePolicyRule(policyId string, ruleId string) (*Response, error)

func (*PolicyResource) AddPolicyRule added in v1.0.3

func (m *PolicyResource) AddPolicyRule(policyId string, body PolicyRule, qp *query.Params) (*PolicyRule, *Response, error)

func (*PolicyResource) CreatePolicy added in v1.0.3

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

func (*PolicyResource) DeactivatePolicy added in v1.0.3

func (m *PolicyResource) DeactivatePolicy(policyId string) (*Response, error)

func (*PolicyResource) DeactivatePolicyRule added in v1.0.3

func (m *PolicyResource) DeactivatePolicyRule(policyId string, ruleId string) (*Response, error)

func (*PolicyResource) DeletePolicy added in v1.0.3

func (m *PolicyResource) DeletePolicy(policyId string) (*Response, error)

func (*PolicyResource) DeletePolicyRule added in v1.0.3

func (m *PolicyResource) DeletePolicyRule(policyId string, ruleId string) (*Response, error)

func (*PolicyResource) GetPolicy added in v1.0.3

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

func (*PolicyResource) GetPolicyRule added in v1.0.3

func (m *PolicyResource) GetPolicyRule(policyId string, ruleId string) (*PolicyRule, *Response, error)

func (*PolicyResource) ListPolicies added in v1.0.3

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

func (*PolicyResource) ListPolicyRules added in v1.0.3

func (m *PolicyResource) ListPolicyRules(policyId string) ([]*PolicyRule, *Response, error)

func (*PolicyResource) UpdatePolicy added in v1.0.3

func (m *PolicyResource) UpdatePolicy(policyId string, body Policy) (*Policy, *Response, error)

func (*PolicyResource) UpdatePolicyRule added in v1.0.3

func (m *PolicyResource) UpdatePolicyRule(policyId string, ruleId string, body PolicyRule) (*PolicyRule, *Response, error)

type PolicyRule added in v1.0.3

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 added in v1.0.3

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

type PolicyRuleResource added in v1.0.3

type PolicyRuleResource resource

func (*PolicyRuleResource) DeletePolicyRule added in v1.0.3

func (m *PolicyRuleResource) DeletePolicyRule(policyId string, ruleId string) (*Response, error)

func (*PolicyRuleResource) UpdatePolicyRule added in v1.0.3

func (m *PolicyRuleResource) UpdatePolicyRule(policyId string, ruleId string, body PolicyRule) (*PolicyRule, *Response, error)

type PolicyType added in v1.0.3

type PolicyType struct {
}

type PushFactor

type PushFactor struct {
	Embedded                  interface{}          `json:"_embedded,omitempty"`
	Links                     interface{}          `json:"_links,omitempty"`
	Device                    string               `json:"device,omitempty"`
	DeviceType                string               `json:"deviceType,omitempty"`
	FactorType                string               `json:"factorType,omitempty"`
	Id                        string               `json:"id,omitempty"`
	MfaStateTokenId           string               `json:"mfaStateTokenId,omitempty"`
	Profile                   *PushFactorProfile   `json:"profile,omitempty"`
	Provider                  string               `json:"provider,omitempty"`
	RechallengeExistingFactor *bool                `json:"rechallengeExistingFactor,omitempty"`
	SessionId                 string               `json:"sessionId,omitempty"`
	Status                    string               `json:"status,omitempty"`
	TokenLifetimeSeconds      int64                `json:"tokenLifetimeSeconds,omitempty"`
	UserId                    string               `json:"userId,omitempty"`
	Verify                    *VerifyFactorRequest `json:"verify,omitempty"`
}

func NewPushFactor added in v1.0.3

func NewPushFactor() *PushFactor

func (*PushFactor) IsUserFactorInstance added in v1.0.3

func (a *PushFactor) IsUserFactorInstance() bool

type PushFactorProfile

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

func NewPushFactorProfile added in v1.0.3

func NewPushFactorProfile() *PushFactorProfile

func (*PushFactorProfile) IsUserFactorInstance added in v1.0.3

func (a *PushFactorProfile) IsUserFactorInstance() bool

type RecoveryQuestionCredential

type RecoveryQuestionCredential struct {
	Answer   string `json:"answer,omitempty"`
	Question string `json:"question,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) Do

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

func (*RequestExecutor) NewRequest

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

type ResetPasswordToken

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

type Response

type Response struct {
	*http.Response
}

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 RoleStatus

type RoleStatus struct {
}

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 added in v1.0.3

func NewSamlApplication() *SamlApplication

func (*SamlApplication) IsApplicationInstance added in v1.0.3

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 added in v1.0.3

func NewSamlApplicationSettings() *SamlApplicationSettings

func (*SamlApplicationSettings) IsApplicationInstance added in v1.0.3

func (a *SamlApplicationSettings) IsApplicationInstance() bool

type SamlApplicationSettingsSignOn

type SamlApplicationSettingsSignOn struct {
	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"`
	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 added in v1.0.3

func NewSamlApplicationSettingsSignOn() *SamlApplicationSettingsSignOn

func (*SamlApplicationSettingsSignOn) IsApplicationInstance added in v1.0.3

func (a *SamlApplicationSettingsSignOn) IsApplicationInstance() bool

type SamlAttributeStatement

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

func NewSamlAttributeStatement added in v1.0.3

func NewSamlAttributeStatement() *SamlAttributeStatement

func (*SamlAttributeStatement) IsApplicationInstance added in v1.0.3

func (a *SamlAttributeStatement) IsApplicationInstance() bool

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 added in v1.0.3

func NewSchemeApplicationCredentials() *SchemeApplicationCredentials

func (*SchemeApplicationCredentials) IsApplicationInstance added in v1.0.3

func (a *SchemeApplicationCredentials) IsApplicationInstance() bool

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 added in v1.0.3

func NewSecurePasswordStoreApplication() *SecurePasswordStoreApplication

func (*SecurePasswordStoreApplication) IsApplicationInstance added in v1.0.3

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 added in v1.0.3

func NewSecurePasswordStoreApplicationSettings() *SecurePasswordStoreApplicationSettings

func (*SecurePasswordStoreApplicationSettings) IsApplicationInstance added in v1.0.3

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 added in v1.0.3

func NewSecurePasswordStoreApplicationSettingsApplication() *SecurePasswordStoreApplicationSettingsApplication

func (*SecurePasswordStoreApplicationSettingsApplication) IsApplicationInstance added in v1.0.3

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 added in v1.0.3

func NewSecurityQuestion() *SecurityQuestion

func (*SecurityQuestion) IsUserFactorInstance added in v1.0.3

func (a *SecurityQuestion) IsUserFactorInstance() bool

type SecurityQuestionFactor

type SecurityQuestionFactor struct {
	Embedded                  interface{}                    `json:"_embedded,omitempty"`
	Links                     interface{}                    `json:"_links,omitempty"`
	Device                    string                         `json:"device,omitempty"`
	DeviceType                string                         `json:"deviceType,omitempty"`
	FactorType                string                         `json:"factorType,omitempty"`
	Id                        string                         `json:"id,omitempty"`
	MfaStateTokenId           string                         `json:"mfaStateTokenId,omitempty"`
	Profile                   *SecurityQuestionFactorProfile `json:"profile,omitempty"`
	Provider                  string                         `json:"provider,omitempty"`
	RechallengeExistingFactor *bool                          `json:"rechallengeExistingFactor,omitempty"`
	SessionId                 string                         `json:"sessionId,omitempty"`
	Status                    string                         `json:"status,omitempty"`
	TokenLifetimeSeconds      int64                          `json:"tokenLifetimeSeconds,omitempty"`
	UserId                    string                         `json:"userId,omitempty"`
	Verify                    *VerifyFactorRequest           `json:"verify,omitempty"`
}

func NewSecurityQuestionFactor added in v1.0.3

func NewSecurityQuestionFactor() *SecurityQuestionFactor

func (*SecurityQuestionFactor) IsUserFactorInstance added in v1.0.3

func (a *SecurityQuestionFactor) IsUserFactorInstance() bool

type SecurityQuestionFactorProfile

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

func NewSecurityQuestionFactorProfile added in v1.0.3

func NewSecurityQuestionFactorProfile() *SecurityQuestionFactorProfile

func (*SecurityQuestionFactorProfile) IsUserFactorInstance added in v1.0.3

func (a *SecurityQuestionFactorProfile) 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 struct {
}

type SessionIdentityProvider

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

type SessionIdentityProviderType

type SessionIdentityProviderType struct {
}

type SessionResource

type SessionResource resource

func (*SessionResource) CreateSession

func (m *SessionResource) CreateSession(body CreateSessionRequest) (*Session, *Response, error)

func (*SessionResource) EndSession

func (m *SessionResource) EndSession(sessionId string) (*Response, error)

func (*SessionResource) GetSession

func (m *SessionResource) GetSession(sessionId string) (*Session, *Response, error)

func (*SessionResource) RefreshSession

func (m *SessionResource) RefreshSession(sessionId string) (*Session, *Response, error)

type SessionStatus

type SessionStatus struct {
}

type SmsFactor

type SmsFactor struct {
	Embedded                  interface{}          `json:"_embedded,omitempty"`
	Links                     interface{}          `json:"_links,omitempty"`
	Device                    string               `json:"device,omitempty"`
	DeviceType                string               `json:"deviceType,omitempty"`
	FactorType                string               `json:"factorType,omitempty"`
	Id                        string               `json:"id,omitempty"`
	MfaStateTokenId           string               `json:"mfaStateTokenId,omitempty"`
	Profile                   *SmsFactorProfile    `json:"profile,omitempty"`
	Provider                  string               `json:"provider,omitempty"`
	RechallengeExistingFactor *bool                `json:"rechallengeExistingFactor,omitempty"`
	SessionId                 string               `json:"sessionId,omitempty"`
	Status                    string               `json:"status,omitempty"`
	TokenLifetimeSeconds      int64                `json:"tokenLifetimeSeconds,omitempty"`
	UserId                    string               `json:"userId,omitempty"`
	Verify                    *VerifyFactorRequest `json:"verify,omitempty"`
}

func NewSmsFactor added in v1.0.3

func NewSmsFactor() *SmsFactor

func (*SmsFactor) IsUserFactorInstance added in v1.0.3

func (a *SmsFactor) IsUserFactorInstance() bool

type SmsFactorProfile

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

func NewSmsFactorProfile added in v1.0.3

func NewSmsFactorProfile() *SmsFactorProfile

func (*SmsFactorProfile) IsUserFactorInstance added in v1.0.3

func (a *SmsFactorProfile) IsUserFactorInstance() bool

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 added in v1.0.3

func NewSwaApplication() *SwaApplication

func (*SwaApplication) IsApplicationInstance added in v1.0.3

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 added in v1.0.3

func NewSwaApplicationSettings() *SwaApplicationSettings

func (*SwaApplicationSettings) IsApplicationInstance added in v1.0.3

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 added in v1.0.3

func NewSwaApplicationSettingsApplication() *SwaApplicationSettingsApplication

func (*SwaApplicationSettingsApplication) IsApplicationInstance added in v1.0.3

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 added in v1.0.3

func NewSwaThreeFieldApplication() *SwaThreeFieldApplication

func (*SwaThreeFieldApplication) IsApplicationInstance added in v1.0.3

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 added in v1.0.3

func NewSwaThreeFieldApplicationSettings() *SwaThreeFieldApplicationSettings

func (*SwaThreeFieldApplicationSettings) IsApplicationInstance added in v1.0.3

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 added in v1.0.3

func NewSwaThreeFieldApplicationSettingsApplication() *SwaThreeFieldApplicationSettingsApplication

func (*SwaThreeFieldApplicationSettingsApplication) IsApplicationInstance added in v1.0.3

func (a *SwaThreeFieldApplicationSettingsApplication) IsApplicationInstance() bool

type TempPassword

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

type TokenFactor

type TokenFactor struct {
	Embedded                  interface{}          `json:"_embedded,omitempty"`
	Links                     interface{}          `json:"_links,omitempty"`
	Device                    string               `json:"device,omitempty"`
	DeviceType                string               `json:"deviceType,omitempty"`
	FactorType                string               `json:"factorType,omitempty"`
	Id                        string               `json:"id,omitempty"`
	MfaStateTokenId           string               `json:"mfaStateTokenId,omitempty"`
	Profile                   *TokenFactorProfile  `json:"profile,omitempty"`
	Provider                  string               `json:"provider,omitempty"`
	RechallengeExistingFactor *bool                `json:"rechallengeExistingFactor,omitempty"`
	SessionId                 string               `json:"sessionId,omitempty"`
	Status                    string               `json:"status,omitempty"`
	TokenLifetimeSeconds      int64                `json:"tokenLifetimeSeconds,omitempty"`
	UserId                    string               `json:"userId,omitempty"`
	Verify                    *VerifyFactorRequest `json:"verify,omitempty"`
}

func NewTokenFactor added in v1.0.3

func NewTokenFactor() *TokenFactor

func (*TokenFactor) IsUserFactorInstance added in v1.0.3

func (a *TokenFactor) IsUserFactorInstance() bool

type TokenFactorProfile

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

func NewTokenFactorProfile added in v1.0.3

func NewTokenFactorProfile() *TokenFactorProfile

func (*TokenFactorProfile) IsUserFactorInstance added in v1.0.3

func (a *TokenFactorProfile) IsUserFactorInstance() bool

type TotpFactor

type TotpFactor struct {
	Embedded                  interface{}          `json:"_embedded,omitempty"`
	Links                     interface{}          `json:"_links,omitempty"`
	Device                    string               `json:"device,omitempty"`
	DeviceType                string               `json:"deviceType,omitempty"`
	FactorType                string               `json:"factorType,omitempty"`
	Id                        string               `json:"id,omitempty"`
	MfaStateTokenId           string               `json:"mfaStateTokenId,omitempty"`
	Profile                   *TotpFactorProfile   `json:"profile,omitempty"`
	Provider                  string               `json:"provider,omitempty"`
	RechallengeExistingFactor *bool                `json:"rechallengeExistingFactor,omitempty"`
	SessionId                 string               `json:"sessionId,omitempty"`
	Status                    string               `json:"status,omitempty"`
	TokenLifetimeSeconds      int64                `json:"tokenLifetimeSeconds,omitempty"`
	UserId                    string               `json:"userId,omitempty"`
	Verify                    *VerifyFactorRequest `json:"verify,omitempty"`
}

func NewTotpFactor added in v1.0.3

func NewTotpFactor() *TotpFactor

func (*TotpFactor) IsUserFactorInstance added in v1.0.3

func (a *TotpFactor) IsUserFactorInstance() bool

type TotpFactorProfile

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

func NewTotpFactorProfile added in v1.0.3

func NewTotpFactorProfile() *TotpFactorProfile

func (*TotpFactorProfile) IsUserFactorInstance added in v1.0.3

func (a *TotpFactorProfile) IsUserFactorInstance() bool

type U2fFactor added in v1.0.3

type U2fFactor struct {
	Embedded                  interface{}          `json:"_embedded,omitempty"`
	Links                     interface{}          `json:"_links,omitempty"`
	Device                    string               `json:"device,omitempty"`
	DeviceType                string               `json:"deviceType,omitempty"`
	FactorType                string               `json:"factorType,omitempty"`
	Id                        string               `json:"id,omitempty"`
	MfaStateTokenId           string               `json:"mfaStateTokenId,omitempty"`
	Profile                   *U2fFactorProfile    `json:"profile,omitempty"`
	Provider                  string               `json:"provider,omitempty"`
	RechallengeExistingFactor *bool                `json:"rechallengeExistingFactor,omitempty"`
	SessionId                 string               `json:"sessionId,omitempty"`
	Status                    string               `json:"status,omitempty"`
	TokenLifetimeSeconds      int64                `json:"tokenLifetimeSeconds,omitempty"`
	UserId                    string               `json:"userId,omitempty"`
	Verify                    *VerifyFactorRequest `json:"verify,omitempty"`
}

func NewU2fFactor added in v1.0.3

func NewU2fFactor() *U2fFactor

func (*U2fFactor) IsUserFactorInstance added in v1.0.3

func (a *U2fFactor) IsUserFactorInstance() bool

type U2fFactorProfile added in v1.0.3

type U2fFactorProfile struct {
}

func NewU2fFactorProfile added in v1.0.3

func NewU2fFactorProfile() *U2fFactorProfile

func (*U2fFactorProfile) IsUserFactorInstance added in v1.0.3

func (a *U2fFactorProfile) 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 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 added in v1.0.3

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

type UserCredentials

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

type UserFactor added in v1.0.3

type UserFactor interface {
	IsUserFactorInstance() bool
}

type UserNextLogin added in v1.0.3

type UserNextLogin struct {
}

type UserProfile

type UserProfile map[string]interface{}

type UserResource

type UserResource resource

func (*UserResource) ActivateUser

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

func (*UserResource) AddGroupTargetToRole

func (m *UserResource) AddGroupTargetToRole(userId string, roleId string, groupId string) (*Response, error)

func (*UserResource) AddRoleToUser

func (m *UserResource) AddRoleToUser(userId string, body Role) (*Role, *Response, error)

func (*UserResource) ChangePassword

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

func (*UserResource) ChangeRecoveryQuestion

func (m *UserResource) ChangeRecoveryQuestion(userId string, body UserCredentials) (*UserCredentials, *Response, error)

func (*UserResource) CreateUser

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

func (*UserResource) DeactivateOrDeleteUser

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

func (*UserResource) DeactivateUser

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

func (*UserResource) EndAllUserSessions

func (m *UserResource) EndAllUserSessions(userId string, qp *query.Params) (*Response, error)

func (*UserResource) ExpirePassword

func (m *UserResource) ExpirePassword(userId string, qp *query.Params) (*TempPassword, *Response, error)

func (*UserResource) ForgotPassword

func (m *UserResource) ForgotPassword(userId string, body UserCredentials, qp *query.Params) (*ForgotPasswordResponse, *Response, error)

func (*UserResource) GetUser

func (m *UserResource) GetUser(userId string) (*User, *Response, error)
func (m *UserResource) ListAppLinks(userId string, qp *query.Params) ([]*AppLink, *Response, error)

func (*UserResource) ListAssignedRoles

func (m *UserResource) ListAssignedRoles(userId string, qp *query.Params) ([]*Role, *Response, error)

func (*UserResource) ListGroupTargetsForRole

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

func (*UserResource) ListUserGroups

func (m *UserResource) ListUserGroups(userId string, qp *query.Params) ([]*Group, *Response, error)

func (*UserResource) ListUsers

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

func (*UserResource) RemoveGroupTargetFromRole

func (m *UserResource) RemoveGroupTargetFromRole(userId string, roleId string, groupId string) (*Response, error)

func (*UserResource) RemoveRoleFromUser

func (m *UserResource) RemoveRoleFromUser(userId string, roleId string) (*Response, error)

func (*UserResource) ResetAllFactors

func (m *UserResource) ResetAllFactors(userId string) (*Response, error)

func (*UserResource) ResetPassword

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

func (*UserResource) SuspendUser

func (m *UserResource) SuspendUser(userId string) (*Response, error)

func (*UserResource) UnlockUser

func (m *UserResource) UnlockUser(userId string) (*Response, error)

func (*UserResource) UnsuspendUser

func (m *UserResource) UnsuspendUser(userId string) (*Response, error)

func (*UserResource) UpdateUser

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

func (*UserResource) UpdateUserPartial added in v1.0.4

func (m *UserResource) UpdateUserPartial(userId string, body User, qp *query.Params) (*User, *Response, error)

type UserStatus

type UserStatus struct {
}

type VerifyFactorRequest

type VerifyFactorRequest struct {
	ActivationToken      string `json:"activationToken,omitempty"`
	Answer               string `json:"answer,omitempty"`
	NextPassCode         string `json:"nextPassCode,omitempty"`
	PassCode             string `json:"passCode,omitempty"`
	TokenLifetimeSeconds int64  `json:"tokenLifetimeSeconds,omitempty"`
}

func NewVerifyFactorRequest added in v1.0.3

func NewVerifyFactorRequest() *VerifyFactorRequest

func (*VerifyFactorRequest) IsUserFactorInstance added in v1.0.3

func (a *VerifyFactorRequest) IsUserFactorInstance() bool

type VerifyFactorResponse

type VerifyFactorResponse 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 NewVerifyFactorResponse added in v1.0.3

func NewVerifyFactorResponse() *VerifyFactorResponse

func (*VerifyFactorResponse) IsUserFactorInstance added in v1.0.3

func (a *VerifyFactorResponse) IsUserFactorInstance() bool

type WebFactor

type WebFactor struct {
	Embedded                  interface{}          `json:"_embedded,omitempty"`
	Links                     interface{}          `json:"_links,omitempty"`
	Device                    string               `json:"device,omitempty"`
	DeviceType                string               `json:"deviceType,omitempty"`
	FactorType                string               `json:"factorType,omitempty"`
	Id                        string               `json:"id,omitempty"`
	MfaStateTokenId           string               `json:"mfaStateTokenId,omitempty"`
	Profile                   *WebFactorProfile    `json:"profile,omitempty"`
	Provider                  string               `json:"provider,omitempty"`
	RechallengeExistingFactor *bool                `json:"rechallengeExistingFactor,omitempty"`
	SessionId                 string               `json:"sessionId,omitempty"`
	Status                    string               `json:"status,omitempty"`
	TokenLifetimeSeconds      int64                `json:"tokenLifetimeSeconds,omitempty"`
	UserId                    string               `json:"userId,omitempty"`
	Verify                    *VerifyFactorRequest `json:"verify,omitempty"`
}

func NewWebFactor added in v1.0.3

func NewWebFactor() *WebFactor

func (*WebFactor) IsUserFactorInstance added in v1.0.3

func (a *WebFactor) IsUserFactorInstance() bool

type WebFactorProfile

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

func NewWebFactorProfile added in v1.0.3

func NewWebFactorProfile() *WebFactorProfile

func (*WebFactorProfile) IsUserFactorInstance added in v1.0.3

func (a *WebFactorProfile) 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 added in v1.0.3

func NewWsFederationApplication() *WsFederationApplication

func (*WsFederationApplication) IsApplicationInstance added in v1.0.3

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 added in v1.0.3

func NewWsFederationApplicationSettings() *WsFederationApplicationSettings

func (*WsFederationApplicationSettings) IsApplicationInstance added in v1.0.3

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 added in v1.0.3

func NewWsFederationApplicationSettingsApplication() *WsFederationApplicationSettingsApplication

func (*WsFederationApplicationSettingsApplication) IsApplicationInstance added in v1.0.3

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