okta

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "0.1.0"

Variables

View Source
var (
	Backoff = time.Sleep
)

Functions

func CheckResponseForError

func CheckResponseForError(resp *http.Response) error

Types

type App added in v1.0.0

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.0

func NewAppUser() *AppUser

func (*AppUser) IsApplicationInstance added in v1.0.0

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.0

func NewAppUserCredentials() *AppUserCredentials

func (*AppUserCredentials) IsApplicationInstance added in v1.0.0

func (a *AppUserCredentials) IsApplicationInstance() bool

type AppUserPasswordCredential

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

func NewAppUserPasswordCredential added in v1.0.0

func NewAppUserPasswordCredential() *AppUserPasswordCredential

func (*AppUserPasswordCredential) IsApplicationInstance added in v1.0.0

func (a *AppUserPasswordCredential) IsApplicationInstance() bool

type AppUserResource

type AppUserResource resource

func (*AppUserResource) DeleteApplicationUser

func (m *AppUserResource) DeleteApplicationUser(appId string, userId string) (*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"`
	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.0

func NewApplication() *Application

func (*Application) IsApplicationInstance added in v1.0.0

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.0

func NewApplicationAccessibility() *ApplicationAccessibility

func (*ApplicationAccessibility) IsApplicationInstance added in v1.0.0

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.0

func NewApplicationCredentials() *ApplicationCredentials

func (*ApplicationCredentials) IsApplicationInstance added in v1.0.0

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.0

func NewApplicationCredentialsOAuthClient() *ApplicationCredentialsOAuthClient

func (*ApplicationCredentialsOAuthClient) IsApplicationInstance added in v1.0.0

func (a *ApplicationCredentialsOAuthClient) IsApplicationInstance() bool

type ApplicationCredentialsScheme

type ApplicationCredentialsScheme struct {
}

func NewApplicationCredentialsScheme added in v1.0.0

func NewApplicationCredentialsScheme() *ApplicationCredentialsScheme

func (*ApplicationCredentialsScheme) IsApplicationInstance added in v1.0.0

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.0

func NewApplicationCredentialsSigning() *ApplicationCredentialsSigning

func (*ApplicationCredentialsSigning) IsApplicationInstance added in v1.0.0

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.0

func NewApplicationCredentialsUsernameTemplate() *ApplicationCredentialsUsernameTemplate

func (*ApplicationCredentialsUsernameTemplate) IsApplicationInstance added in v1.0.0

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.0

func NewApplicationGroupAssignment() *ApplicationGroupAssignment

func (*ApplicationGroupAssignment) IsApplicationInstance added in v1.0.0

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.0

func NewApplicationLicensing() *ApplicationLicensing

func (*ApplicationLicensing) IsApplicationInstance added in v1.0.0

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) (*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) GetLogs

func (m *ApplicationResource) GetLogs(qp *query.Params) ([]*LogEvent, *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"`
	Notifications *ApplicationSettingsNotifications `json:"notifications,omitempty"`
}

func NewApplicationSettings added in v1.0.0

func NewApplicationSettings() *ApplicationSettings

func (*ApplicationSettings) IsApplicationInstance added in v1.0.0

func (a *ApplicationSettings) IsApplicationInstance() bool

type ApplicationSettingsApplication

type ApplicationSettingsApplication map[string]interface{}

func NewApplicationSettingsApplication added in v1.0.0

func NewApplicationSettingsApplication() *ApplicationSettingsApplication

func (*ApplicationSettingsApplication) IsApplicationInstance added in v1.0.0

func (a *ApplicationSettingsApplication) IsApplicationInstance() bool

type ApplicationSettingsNotifications

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

func NewApplicationSettingsNotifications added in v1.0.0

func NewApplicationSettingsNotifications() *ApplicationSettingsNotifications

func (*ApplicationSettingsNotifications) IsApplicationInstance added in v1.0.0

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.0

func NewApplicationSettingsNotificationsVpn() *ApplicationSettingsNotificationsVpn

func (*ApplicationSettingsNotificationsVpn) IsApplicationInstance added in v1.0.0

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.0

func NewApplicationSettingsNotificationsVpnNetwork() *ApplicationSettingsNotificationsVpnNetwork

func (*ApplicationSettingsNotificationsVpnNetwork) IsApplicationInstance added in v1.0.0

func (a *ApplicationSettingsNotificationsVpnNetwork) IsApplicationInstance() bool

type ApplicationSignOnMode

type ApplicationSignOnMode struct {
}

func NewApplicationSignOnMode added in v1.0.0

func NewApplicationSignOnMode() *ApplicationSignOnMode

func (*ApplicationSignOnMode) IsApplicationInstance added in v1.0.0

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.0

func NewApplicationVisibility() *ApplicationVisibility

func (*ApplicationVisibility) IsApplicationInstance added in v1.0.0

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.0

func NewApplicationVisibilityHide() *ApplicationVisibilityHide

func (*ApplicationVisibilityHide) IsApplicationInstance added in v1.0.0

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"`
	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.0

func NewAutoLoginApplication() *AutoLoginApplication

func (*AutoLoginApplication) IsApplicationInstance added in v1.0.0

func (a *AutoLoginApplication) IsApplicationInstance() bool

type AutoLoginApplicationSettings

type AutoLoginApplicationSettings struct {
	App           *ApplicationSettingsApplication     `json:"app,omitempty"`
	Notifications *ApplicationSettingsNotifications   `json:"notifications,omitempty"`
	SignOn        *AutoLoginApplicationSettingsSignOn `json:"signOn,omitempty"`
}

func NewAutoLoginApplicationSettings added in v1.0.0

func NewAutoLoginApplicationSettings() *AutoLoginApplicationSettings

func (*AutoLoginApplicationSettings) IsApplicationInstance added in v1.0.0

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.0

func NewAutoLoginApplicationSettingsSignOn() *AutoLoginApplicationSettingsSignOn

func (*AutoLoginApplicationSettingsSignOn) IsApplicationInstance added in v1.0.0

func (a *AutoLoginApplicationSettingsSignOn) IsApplicationInstance() bool

type BasicApplicationSettings

type BasicApplicationSettings struct {
	App           *BasicApplicationSettingsApplication `json:"app,omitempty"`
	Notifications *ApplicationSettingsNotifications    `json:"notifications,omitempty"`
}

func NewBasicApplicationSettings added in v1.0.0

func NewBasicApplicationSettings() *BasicApplicationSettings

func (*BasicApplicationSettings) IsApplicationInstance added in v1.0.0

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.0

func NewBasicApplicationSettingsApplication() *BasicApplicationSettingsApplication

func (*BasicApplicationSettingsApplication) IsApplicationInstance added in v1.0.0

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"`
	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.0

func NewBasicAuthApplication() *BasicAuthApplication

func (*BasicAuthApplication) IsApplicationInstance added in v1.0.0

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"`
	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.0

func NewBookmarkApplication() *BookmarkApplication

func (*BookmarkApplication) IsApplicationInstance added in v1.0.0

func (a *BookmarkApplication) IsApplicationInstance() bool

type BookmarkApplicationSettings

type BookmarkApplicationSettings struct {
	App           *BookmarkApplicationSettingsApplication `json:"app,omitempty"`
	Notifications *ApplicationSettingsNotifications       `json:"notifications,omitempty"`
}

func NewBookmarkApplicationSettings added in v1.0.0

func NewBookmarkApplicationSettings() *BookmarkApplicationSettings

func (*BookmarkApplicationSettings) IsApplicationInstance added in v1.0.0

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.0

func NewBookmarkApplicationSettingsApplication() *BookmarkApplicationSettingsApplication

func (*BookmarkApplicationSettingsApplication) IsApplicationInstance added in v1.0.0

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"`
	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.0

func NewBrowserPluginApplication() *BrowserPluginApplication

func (*BrowserPluginApplication) IsApplicationInstance added in v1.0.0

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"`
	UserId                    string               `json:"userId,omitempty"`
	Verify                    *VerifyFactorRequest `json:"verify,omitempty"`
}

func NewCallFactor added in v1.0.0

func NewCallFactor() *CallFactor

func (*CallFactor) IsUserFactorInstance added in v1.0.0

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.0

func NewCallFactorProfile() *CallFactorProfile

func (*CallFactorProfile) IsUserFactorInstance added in v1.0.0

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
	Session     *SessionResource
	User        *UserResource
	Factor      *FactorResource
	// contains filtered or unexported fields
}

func NewClient

func NewClient(config *Config, httpClient *http.Client, cacheManager cache.Cache) *Client

func (*Client) GetConfig

func (c *Client) GetConfig() *Config

func (*Client) GetRequestExecutor

func (c *Client) GetRequestExecutor() *RequestExecutor

type Config

type Config struct {
	BackoffEnabled bool          `yaml:"withBackoff" envconfig:"OKTA_BACK_OFF_ENABLED"`
	MaxRetries     int32         `yaml:"maxRetries" envconfig:"OKTA_MAX_RETRIES"`
	MinWait        time.Duration `yaml:"minWait"`
	MaxWait        time.Duration `yaml:"maxWait"`
	Okta           struct {
		Client struct {
			Cache struct {
				Enabled    bool  `yaml:"enabled" envconfig:"OKTA_CLIENT_CACHE_ENABLED"`
				DefaultTtl int32 `yaml:"defaultTtl" envconfig:"OKTA_CLIENT_CACHE_DEFAULT_TTL"`
				DefaultTti int32 `yaml:"defaultTti" envconfig:"OKTA_CLIENT_CACHE_DEFAULT_TTI"`
			} `yaml:"cache"`
			Proxy struct {
				Port     int32  `yaml:"port" envconfig:"OKTA_CLIENT_PROXY_PORT"`
				Host     string `yaml:"host" envconfig:"OKTA_CLIENT_PROXY_HOST"`
				Username string `yaml:"username" envconfig:"OKTA_CLIENT_PROXY_USERNAME"`
				Password string `yaml:"password" envconfig:"OKTA_CLIENT_PROXY_PASSWORD"`
			} `yaml:"proxy"`
			ConnectionTimeout int32  `yaml:"connectionTimeout" envconfig:"OKTA_CLIENT_CONNECTION_TIMEOUT"`
			OrgUrl            string `yaml:"orgUrl" envconfig:"OKTA_CLIENT_ORGURL"`
			Token             string `yaml:"token" envconfig:"OKTA_CLIENT_TOKEN"`
		} `yaml:"client"`
	} `yaml:"okta"`
	UserAgentExtra string
}

func NewConfig

func NewConfig() *Config

func (*Config) ReadConfigFromFile

func (c *Config) ReadConfigFromFile(location string) *Config

func (*Config) WithBackoff added in v1.0.0

func (c *Config) WithBackoff(backoff bool) *Config

func (*Config) WithCache

func (c *Config) WithCache(cache bool) *Config

func (*Config) WithCacheTti

func (c *Config) WithCacheTti(i int32) *Config

func (*Config) WithCacheTtl

func (c *Config) WithCacheTtl(i int32) *Config

func (*Config) WithConnectionTimeout

func (c *Config) WithConnectionTimeout(i int32) *Config

func (*Config) WithMaxWait added in v1.0.0

func (c *Config) WithMaxWait(wait time.Duration) *Config

func (*Config) WithMinWait added in v1.0.0

func (c *Config) WithMinWait(wait time.Duration) *Config

func (*Config) WithOrgUrl

func (c *Config) WithOrgUrl(url string) *Config

func (*Config) WithProxyHost

func (c *Config) WithProxyHost(host string) *Config

func (*Config) WithProxyPassword

func (c *Config) WithProxyPassword(pass string) *Config

func (*Config) WithProxyPort

func (c *Config) WithProxyPort(i int32) *Config

func (*Config) WithProxyUsername

func (c *Config) WithProxyUsername(username string) *Config

func (*Config) WithRetries added in v1.0.0

func (c *Config) WithRetries(retries int32) *Config

func (*Config) WithToken

func (c *Config) WithToken(token string) *Config

func (*Config) WithUserAgentExtra

func (c *Config) WithUserAgentExtra(s string) *Config

type CreateSessionRequest

type CreateSessionRequest struct {
	SessionToken string `json:"sessionToken,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"`
	UserId                    string               `json:"userId,omitempty"`
	Verify                    *VerifyFactorRequest `json:"verify,omitempty"`
}

func NewEmailFactor added in v1.0.0

func NewEmailFactor() *EmailFactor

func (*EmailFactor) IsUserFactorInstance added in v1.0.0

func (a *EmailFactor) IsUserFactorInstance() bool

type EmailFactorProfile

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

func NewEmailFactorProfile added in v1.0.0

func NewEmailFactorProfile() *EmailFactorProfile

func (*EmailFactorProfile) IsUserFactorInstance added in v1.0.0

func (a *EmailFactorProfile) IsUserFactorInstance() bool

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"`
	UserId                    string               `json:"userId,omitempty"`
	Verify                    *VerifyFactorRequest `json:"verify,omitempty"`
}

func NewFactor added in v1.0.0

func NewFactor() *Factor

func (*Factor) IsUserFactorInstance added in v1.0.0

func (a *Factor) IsUserFactorInstance() bool

type FactorProfile

type FactorProfile struct {
}

func NewFactorProfile added in v1.0.0

func NewFactorProfile() *FactorProfile

func (*FactorProfile) IsUserFactorInstance added in v1.0.0

func (a *FactorProfile) IsUserFactorInstance() bool

type FactorProvider

type FactorProvider struct {
}

func NewFactorProvider added in v1.0.0

func NewFactorProvider() *FactorProvider

func (*FactorProvider) IsUserFactorInstance added in v1.0.0

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.0

func NewFactorResultType() *FactorResultType

func (*FactorResultType) IsUserFactorInstance added in v1.0.0

func (a *FactorResultType) IsUserFactorInstance() bool

type FactorStatus

type FactorStatus struct {
}

func NewFactorStatus added in v1.0.0

func NewFactorStatus() *FactorStatus

func (*FactorStatus) IsUserFactorInstance added in v1.0.0

func (a *FactorStatus) IsUserFactorInstance() bool

type FactorType

type FactorType struct {
}

func NewFactorType added in v1.0.0

func NewFactorType() *FactorType

func (*FactorType) IsUserFactorInstance added in v1.0.0

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 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) (*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 {
	Actions     *GroupRuleAction     `json:"actions,omitempty"`
	Conditions  *GroupRuleConditions `json:"conditions,omitempty"`
	Created     *time.Time           `json:"created,omitempty"`
	Id          string               `json:"id,omitempty"`
	LastUpdated *time.Time           `json:"lastUpdated,omitempty"`
	Name        string               `json:"name,omitempty"`
	Status      string               `json:"status,omitempty"`
	Type        string               `json:"type,omitempty"`
}

type GroupRuleAction

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

type GroupRuleConditions

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

type GroupRuleExpression

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

type GroupRuleGroupAssignment

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

type GroupRuleGroupCondition

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

type GroupRulePeopleCondition

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

type GroupRuleResource

type GroupRuleResource resource

func (*GroupRuleResource) 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"`
	UserId                    string                 `json:"userId,omitempty"`
	Verify                    *VerifyFactorRequest   `json:"verify,omitempty"`
}

func NewHardwareFactor added in v1.0.0

func NewHardwareFactor() *HardwareFactor

func (*HardwareFactor) IsUserFactorInstance added in v1.0.0

func (a *HardwareFactor) IsUserFactorInstance() bool

type HardwareFactorProfile

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

func NewHardwareFactorProfile added in v1.0.0

func NewHardwareFactorProfile() *HardwareFactorProfile

func (*HardwareFactorProfile) IsUserFactorInstance added in v1.0.0

func (a *HardwareFactorProfile) IsUserFactorInstance() bool

type JsonWebKey

type JsonWebKey struct {
	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.0

func NewJsonWebKey() *JsonWebKey

func (*JsonWebKey) IsApplicationInstance added in v1.0.0

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

type LogAuthenticationProvider

type LogAuthenticationProvider 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                []string                  `json:"target,omitempty"`
	Transaction           *LogTransaction           `json:"transaction,omitempty"`
	Uuid                  string                    `json:"uuid,omitempty"`
	Version               string                    `json:"version,omitempty"`
}

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 []string `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.0

func NewOAuthApplicationCredentials() *OAuthApplicationCredentials

func (*OAuthApplicationCredentials) IsApplicationInstance added in v1.0.0

func (a *OAuthApplicationCredentials) IsApplicationInstance() bool

type OAuthEndpointAuthenticationMethod

type OAuthEndpointAuthenticationMethod struct {
}

func NewOAuthEndpointAuthenticationMethod added in v1.0.0

func NewOAuthEndpointAuthenticationMethod() *OAuthEndpointAuthenticationMethod

func (*OAuthEndpointAuthenticationMethod) IsApplicationInstance added in v1.0.0

func (a *OAuthEndpointAuthenticationMethod) IsApplicationInstance() bool

type OAuthGrantType

type OAuthGrantType struct {
}

func NewOAuthGrantType added in v1.0.0

func NewOAuthGrantType() *OAuthGrantType

func (*OAuthGrantType) IsApplicationInstance added in v1.0.0

func (a *OAuthGrantType) IsApplicationInstance() bool

type OAuthResponseType

type OAuthResponseType struct {
}

func NewOAuthResponseType added in v1.0.0

func NewOAuthResponseType() *OAuthResponseType

func (*OAuthResponseType) IsApplicationInstance added in v1.0.0

func (a *OAuthResponseType) IsApplicationInstance() bool

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"`
	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.0

func NewOpenIdConnectApplication() *OpenIdConnectApplication

func (*OpenIdConnectApplication) IsApplicationInstance added in v1.0.0

func (a *OpenIdConnectApplication) IsApplicationInstance() bool

type OpenIdConnectApplicationConsentMethod

type OpenIdConnectApplicationConsentMethod struct {
}

func NewOpenIdConnectApplicationConsentMethod added in v1.0.0

func NewOpenIdConnectApplicationConsentMethod() *OpenIdConnectApplicationConsentMethod

func (*OpenIdConnectApplicationConsentMethod) IsApplicationInstance added in v1.0.0

func (a *OpenIdConnectApplicationConsentMethod) IsApplicationInstance() bool

type OpenIdConnectApplicationSettings

type OpenIdConnectApplicationSettings struct {
	App           *ApplicationSettingsApplication         `json:"app,omitempty"`
	Notifications *ApplicationSettingsNotifications       `json:"notifications,omitempty"`
	OauthClient   *OpenIdConnectApplicationSettingsClient `json:"oauthClient,omitempty"`
}

func NewOpenIdConnectApplicationSettings added in v1.0.0

func NewOpenIdConnectApplicationSettings() *OpenIdConnectApplicationSettings

func (*OpenIdConnectApplicationSettings) IsApplicationInstance added in v1.0.0

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"`
	InitiateLoginUri       string   `json:"initiate_login_uri,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.0

func NewOpenIdConnectApplicationSettingsClient() *OpenIdConnectApplicationSettingsClient

func (*OpenIdConnectApplicationSettingsClient) IsApplicationInstance added in v1.0.0

func (a *OpenIdConnectApplicationSettingsClient) IsApplicationInstance() bool

type OpenIdConnectApplicationType

type OpenIdConnectApplicationType struct {
}

func NewOpenIdConnectApplicationType added in v1.0.0

func NewOpenIdConnectApplicationType() *OpenIdConnectApplicationType

func (*OpenIdConnectApplicationType) IsApplicationInstance added in v1.0.0

func (a *OpenIdConnectApplicationType) IsApplicationInstance() bool

type PasswordCredential

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

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"`
	UserId                    string               `json:"userId,omitempty"`
	Verify                    *VerifyFactorRequest `json:"verify,omitempty"`
}

func NewPushFactor added in v1.0.0

func NewPushFactor() *PushFactor

func (*PushFactor) IsUserFactorInstance added in v1.0.0

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.0

func NewPushFactorProfile() *PushFactorProfile

func (*PushFactorProfile) IsUserFactorInstance added in v1.0.0

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) DoWithRetries added in v1.0.4

func (re *RequestExecutor) DoWithRetries(req *http.Request, retryCount int) (*http.Response, error)

DoWithRetries performs a request with configured retries and backup strategy. Exposed publicly for non JSON endpoints.

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"`
	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"`
	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.0

func NewSamlApplication() *SamlApplication

func (*SamlApplication) IsApplicationInstance added in v1.0.0

func (a *SamlApplication) IsApplicationInstance() bool

type SamlApplicationSettings

type SamlApplicationSettings struct {
	App           *ApplicationSettingsApplication   `json:"app,omitempty"`
	Notifications *ApplicationSettingsNotifications `json:"notifications,omitempty"`
	SignOn        *SamlApplicationSettingsSignOn    `json:"signOn,omitempty"`
}

func NewSamlApplicationSettings added in v1.0.0

func NewSamlApplicationSettings() *SamlApplicationSettings

func (*SamlApplicationSettings) IsApplicationInstance added in v1.0.0

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.0

func NewSamlApplicationSettingsSignOn() *SamlApplicationSettingsSignOn

func (*SamlApplicationSettingsSignOn) IsApplicationInstance added in v1.0.0

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"`
	FilterType  string   `json:"filterType,omitempty"`
	FilterValue string   `json:"filterValue,omitempty"`
}

func NewSamlAttributeStatement added in v1.0.0

func NewSamlAttributeStatement() *SamlAttributeStatement

func (*SamlAttributeStatement) IsApplicationInstance added in v1.0.0

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.0

func NewSchemeApplicationCredentials() *SchemeApplicationCredentials

func (*SchemeApplicationCredentials) IsApplicationInstance added in v1.0.0

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"`
	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.0

func NewSecurePasswordStoreApplication() *SecurePasswordStoreApplication

func (*SecurePasswordStoreApplication) IsApplicationInstance added in v1.0.0

func (a *SecurePasswordStoreApplication) IsApplicationInstance() bool

type SecurePasswordStoreApplicationSettings

type SecurePasswordStoreApplicationSettings struct {
	App           *SecurePasswordStoreApplicationSettingsApplication `json:"app,omitempty"`
	Notifications *ApplicationSettingsNotifications                  `json:"notifications,omitempty"`
}

func NewSecurePasswordStoreApplicationSettings added in v1.0.0

func NewSecurePasswordStoreApplicationSettings() *SecurePasswordStoreApplicationSettings

func (*SecurePasswordStoreApplicationSettings) IsApplicationInstance added in v1.0.0

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.0

func NewSecurePasswordStoreApplicationSettingsApplication() *SecurePasswordStoreApplicationSettingsApplication

func (*SecurePasswordStoreApplicationSettingsApplication) IsApplicationInstance added in v1.0.0

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.0

func NewSecurityQuestion() *SecurityQuestion

func (*SecurityQuestion) IsUserFactorInstance added in v1.0.0

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"`
	UserId                    string                         `json:"userId,omitempty"`
	Verify                    *VerifyFactorRequest           `json:"verify,omitempty"`
}

func NewSecurityQuestionFactor added in v1.0.0

func NewSecurityQuestionFactor() *SecurityQuestionFactor

func (*SecurityQuestionFactor) IsUserFactorInstance added in v1.0.0

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.0

func NewSecurityQuestionFactorProfile() *SecurityQuestionFactorProfile

func (*SecurityQuestionFactorProfile) IsUserFactorInstance added in v1.0.0

func (a *SecurityQuestionFactorProfile) IsUserFactorInstance() bool

type Session

type Session struct {
	Links                    interface{}              `json:"_links,omitempty"`
	Amr                      []string                 `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"`
	UserId                    string               `json:"userId,omitempty"`
	Verify                    *VerifyFactorRequest `json:"verify,omitempty"`
}

func NewSmsFactor added in v1.0.0

func NewSmsFactor() *SmsFactor

func (*SmsFactor) IsUserFactorInstance added in v1.0.0

func (a *SmsFactor) IsUserFactorInstance() bool

type SmsFactorProfile

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

func NewSmsFactorProfile added in v1.0.0

func NewSmsFactorProfile() *SmsFactorProfile

func (*SmsFactorProfile) IsUserFactorInstance added in v1.0.0

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"`
	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.0

func NewSwaApplication() *SwaApplication

func (*SwaApplication) IsApplicationInstance added in v1.0.0

func (a *SwaApplication) IsApplicationInstance() bool

type SwaApplicationSettings

type SwaApplicationSettings struct {
	App           *SwaApplicationSettingsApplication `json:"app,omitempty"`
	Notifications *ApplicationSettingsNotifications  `json:"notifications,omitempty"`
}

func NewSwaApplicationSettings added in v1.0.0

func NewSwaApplicationSettings() *SwaApplicationSettings

func (*SwaApplicationSettings) IsApplicationInstance added in v1.0.0

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.0

func NewSwaApplicationSettingsApplication() *SwaApplicationSettingsApplication

func (*SwaApplicationSettingsApplication) IsApplicationInstance added in v1.0.0

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"`
	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.0

func NewSwaThreeFieldApplication() *SwaThreeFieldApplication

func (*SwaThreeFieldApplication) IsApplicationInstance added in v1.0.0

func (a *SwaThreeFieldApplication) IsApplicationInstance() bool

type SwaThreeFieldApplicationSettings

type SwaThreeFieldApplicationSettings struct {
	App           *SwaThreeFieldApplicationSettingsApplication `json:"app,omitempty"`
	Notifications *ApplicationSettingsNotifications            `json:"notifications,omitempty"`
}

func NewSwaThreeFieldApplicationSettings added in v1.0.0

func NewSwaThreeFieldApplicationSettings() *SwaThreeFieldApplicationSettings

func (*SwaThreeFieldApplicationSettings) IsApplicationInstance added in v1.0.0

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.0

func NewSwaThreeFieldApplicationSettingsApplication() *SwaThreeFieldApplicationSettingsApplication

func (*SwaThreeFieldApplicationSettingsApplication) IsApplicationInstance added in v1.0.0

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"`
	UserId                    string               `json:"userId,omitempty"`
	Verify                    *VerifyFactorRequest `json:"verify,omitempty"`
}

func NewTokenFactor added in v1.0.0

func NewTokenFactor() *TokenFactor

func (*TokenFactor) IsUserFactorInstance added in v1.0.0

func (a *TokenFactor) IsUserFactorInstance() bool

type TokenFactorProfile

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

func NewTokenFactorProfile added in v1.0.0

func NewTokenFactorProfile() *TokenFactorProfile

func (*TokenFactorProfile) IsUserFactorInstance added in v1.0.0

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"`
	UserId                    string               `json:"userId,omitempty"`
	Verify                    *VerifyFactorRequest `json:"verify,omitempty"`
}

func NewTotpFactor added in v1.0.0

func NewTotpFactor() *TotpFactor

func (*TotpFactor) IsUserFactorInstance added in v1.0.0

func (a *TotpFactor) IsUserFactorInstance() bool

type TotpFactorProfile

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

func NewTotpFactorProfile added in v1.0.0

func NewTotpFactorProfile() *TotpFactorProfile

func (*TotpFactorProfile) IsUserFactorInstance added in v1.0.0

func (a *TotpFactorProfile) 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 UserCredentials

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

type UserEmail added in v1.0.6

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

type UserFactor added in v1.0.0

type UserFactor interface {
	IsUserFactorInstance() bool
}

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) (*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) (*Response, error)

func (*UserResource) DeactivateUser

func (m *UserResource) DeactivateUser(userId string) (*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) ReactivateUser added in v1.0.6

func (m *UserResource) ReactivateUser(userId string, qp *query.Params) (*UserActivationToken, *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) (*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"`
}

func NewVerifyFactorRequest added in v1.0.0

func NewVerifyFactorRequest() *VerifyFactorRequest

func (*VerifyFactorRequest) IsUserFactorInstance added in v1.0.0

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.0

func NewVerifyFactorResponse() *VerifyFactorResponse

func (*VerifyFactorResponse) IsUserFactorInstance added in v1.0.0

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"`
	UserId                    string               `json:"userId,omitempty"`
	Verify                    *VerifyFactorRequest `json:"verify,omitempty"`
}

func NewWebFactor added in v1.0.0

func NewWebFactor() *WebFactor

func (*WebFactor) IsUserFactorInstance added in v1.0.0

func (a *WebFactor) IsUserFactorInstance() bool

type WebFactorProfile

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

func NewWebFactorProfile added in v1.0.0

func NewWebFactorProfile() *WebFactorProfile

func (*WebFactorProfile) IsUserFactorInstance added in v1.0.0

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"`
	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.0

func NewWsFederationApplication() *WsFederationApplication

func (*WsFederationApplication) IsApplicationInstance added in v1.0.0

func (a *WsFederationApplication) IsApplicationInstance() bool

type WsFederationApplicationSettings

type WsFederationApplicationSettings struct {
	App           *WsFederationApplicationSettingsApplication `json:"app,omitempty"`
	Notifications *ApplicationSettingsNotifications           `json:"notifications,omitempty"`
}

func NewWsFederationApplicationSettings added in v1.0.0

func NewWsFederationApplicationSettings() *WsFederationApplicationSettings

func (*WsFederationApplicationSettings) IsApplicationInstance added in v1.0.0

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.0

func NewWsFederationApplicationSettingsApplication() *WsFederationApplicationSettingsApplication

func (*WsFederationApplicationSettingsApplication) IsApplicationInstance added in v1.0.0

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