okta

package
v0.8.7 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2021 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProvider

func NewProvider(db *database.Database, log *zap.Logger) (provider.Interface, error)

Types

type Application

type Application struct {
	ID     uint   `gorm:"primarykey"`
	Domain string `neo:"unique"`

	AccessibilityErrorRedirectUrl string
	AccessibilityLoginRedirectUrl string
	AccessibilitySelfService      *bool

	Created *time.Time

	CredentialsSigningLastRotated  *time.Time
	CredentialsSigningNextRotation *time.Time
	CredentialsSigningRotationMode string

	CredentialsUserNameTemplateSuffix   string
	CredentialsUserNameTemplateTemplate string
	CredentialsUserNameTemplateType     string

	Features      []*ApplicationFeatures `gorm:"constraint:OnDelete:CASCADE;"`
	ApplicationID string                 `neo:"unique"`
	Label         string
	LastUpdated   *time.Time

	LicensingSeatCount int64
	Name               string

	SettingsImplicitAssignment      *bool
	SettingsInlineHookId            string
	SettingsNotificationsVpnHelpUrl string
	SettingsNotificationsVpnMessage string

	SignOnMode string
	Status     string

	VisibilityAutoSubmitToolbar *bool
	VisibilityHideIOS           *bool
	VisibilityHideWeb           *bool
}

func (Application) TableName added in v0.7.0

func (Application) TableName() string

type ApplicationConfig

type ApplicationConfig struct {
	Filter string
}

type ApplicationFeatures

type ApplicationFeatures struct {
	ID            uint   `gorm:"primarykey"`
	ApplicationID uint   `neo:"ignore"`
	Domain        string `gorm:"-"`
	Value         string
}

func (ApplicationFeatures) TableName added in v0.7.0

func (ApplicationFeatures) TableName() string

type Config

type Config struct {
	Domain    string `mapstructure:"domain"`
	Resources []struct {
		Name  string
		Other map[string]interface{} `mapstructure:",remain"`
	}
}

type NewResourceFunc

type NewResourceFunc func(client *okta.Client, db *gorm.DB, log *zap.Logger) (common.ClientInterface, error)

type Provider

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

func (*Provider) Run

func (p *Provider) Run(config interface{}) error

type User

type User struct {
	ID        uint   `gorm:"primarykey"`
	Domain    string `neo:"unique"`
	Activated *time.Time
	Created   *time.Time

	Groups            []*UserGroup `gorm:"constraint:OnDelete:CASCADE;"`
	Login             string
	FirstName         string
	LastName          string
	MiddleName        string
	HonorificPrefix   string
	HonorificSuffix   string
	Email             string
	Title             string
	DisplayName       string
	NickName          string
	ProfileUrl        string
	SecondEmail       string
	MobilePhone       string
	PrimaryPhone      string
	StreetAddress     string
	City              string
	State             string
	ZipCode           string
	CountryCode       string
	PostalAddress     string
	PreferredLanguage string
	Locale            string
	Timezone          string
	UserType          string
	EmployeeNumber    string
	CostCenter        string
	Organization      string
	Division          string
	Department        string
	ManagerId         string
	Manager           string

	CredentialsProviderName string
	CredentialsProviderType string

	ResourceID            string `neo:"unique"`
	LastLogin             *time.Time
	LastUpdated           *time.Time
	PasswordChanged       *time.Time
	Status                string
	StatusChanged         *time.Time
	TransitioningToStatus string
}

func (User) TableName added in v0.7.0

func (User) TableName() string

type UserConfig

type UserConfig struct {
	Filter string
}

type UserGroup

type UserGroup struct {
	UserGroupID           uint   `gorm:"primarykey"`
	Domain                string `gorm:"-"`
	UserID                uint   `neo:"ignore"`
	Created               *time.Time
	GroupID               string
	LastMembershipUpdated *time.Time
	LastUpdated           *time.Time
	Name                  string
	Description           string
	Type                  string
}

func (UserGroup) TableName added in v0.7.0

func (UserGroup) TableName() string

Jump to

Keyboard shortcuts

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