Documentation ¶
Index ¶
- Constants
- func NewHTTPSignature(key string) (map[string]string, error)
- type Okta
- func (o *Okta) AddAppMember(appId string, userId string, role string, roles []string) (*OktaUser, error)
- func (o *Okta) CreateApplication(application OktaApplicationContents) (*OktaApplication, error)
- func (o *Okta) CreateAwsApplication(name string, providerArn string) (*OktaApplication, error)
- func (o *Okta) DeactivateApplication(appID string) error
- func (o *Okta) DeleteApplication(appID string) error
- func (o *Okta) GetAppMember(appId string, userId string) (*OktaUser, error)
- func (o *Okta) GetApplication(appID string) (*OktaApplication, error)
- func (okta *Okta) GetRestClient() *resty.Client
- func (o *Okta) GetSAMLMetadata(appID string, keyID string) (string, error)
- func (o *Okta) GetUserIDByEmail(user string, domain string) (string, error)
- func (o *Okta) ListAppMembers(appId string) ([]OktaUser, error)
- func (o *Okta) RemoveAppMember(appId string, userId string) error
- func (okta *Okta) SetRestClient(rest *resty.Client)
- func (o *Okta) UpdateApplication(application OktaApplicationContents) (*OktaApplication, error)
- func (o *Okta) UpdateAwsApplication(appId string, name string, providerArn string) (*OktaApplication, error)
- type OktaApplication
- type OktaApplicationAppSettings
- type OktaApplicationContents
- type OktaApplicationSettings
- type OktaAuthResponse
- type OktaUser
- type OktaWebClient
Constants ¶
View Source
const MaximumRetryWaitTimeInSeconds = 15 * time.Minute
View Source
const RetryWaitTimeInSeconds = 30 * time.Second
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Okta ¶
type Okta struct { APIKey string HostURL string OrgID string RetryMaximum int RestClient *resty.Client }
func (*Okta) AddAppMember ¶
func (*Okta) CreateApplication ¶
func (o *Okta) CreateApplication(application OktaApplicationContents) (*OktaApplication, error)
func (*Okta) CreateAwsApplication ¶
func (o *Okta) CreateAwsApplication(name string, providerArn string) (*OktaApplication, error)
func (*Okta) DeactivateApplication ¶
func (*Okta) DeleteApplication ¶
func (*Okta) GetAppMember ¶
func (*Okta) GetApplication ¶
func (o *Okta) GetApplication(appID string) (*OktaApplication, error)
func (*Okta) GetRestClient ¶
func (okta *Okta) GetRestClient() *resty.Client
func (*Okta) GetSAMLMetadata ¶
func (*Okta) GetUserIDByEmail ¶
func (*Okta) SetRestClient ¶
func (okta *Okta) SetRestClient(rest *resty.Client)
func (*Okta) UpdateApplication ¶
func (o *Okta) UpdateApplication(application OktaApplicationContents) (*OktaApplication, error)
func (*Okta) UpdateAwsApplication ¶
type OktaApplication ¶
type OktaApplication struct { OktaApplicationContents Credentials struct { Signing struct { KeyID string `json:"kid,omitempty"` } `json:"signing,omitempty"` } `json:"credentials,omitempty"` }
type OktaApplicationAppSettings ¶
type OktaApplicationAppSettings struct { AwsEnvironmentType string `json:"awsEnvironmentType,omitempty"` GroupFilter string `json:"groupFilter,omitempty"` LoginURL string `json:"loginUrl,omitempty"` JoinAllRoles bool `json:"joinAllRoles,omitempty"` SessionDuration int `json:"sessionDuration,omitempty"` RoleValuePattern string `json:"roleValuePattern,omitempty"` IdentityProviderArn string `json:"identityProviderArn,omitempty"` }
type OktaApplicationContents ¶
type OktaApplicationSettings ¶
type OktaApplicationSettings struct {
App OktaApplicationAppSettings `json:"app,omitempty"`
}
type OktaAuthResponse ¶
type OktaUser ¶
type OktaUser struct { ID string `json:"id"` Status string `json:"status"` Created *time.Time `json:"created,omitempty"` Activated *time.Time `json:"activated,omitempty"` StatusChanged *time.Time `json:"statusChanged,omitempty"` LastLogin *time.Time `json:"lastLogin,omitempty"` LastUpdated *time.Time `json:"lastUpdated,omitempty"` PasswordChanged *time.Time `json:"passwordChanged,omitempty"` Profile struct { Login string `json:"login,omitempty"` FirstName string `json:"firstName,omitempty"` LastName string `json:"lastName,omitempty"` NickName string `json:"nickName,omitempty"` DisplayName string `json:"displayName,omitempty"` Email string `json:"email,omitempty"` SecondEmail string `json:"secondEmail,omitempty"` Role string `json:"role,omitempty"` SamlRoles []string `json:"samlRoles,omitempty"` } `json:"profile,omitempty"` }
type OktaWebClient ¶
type OktaWebClient struct { HostURL string AdminURL string UserName string Password string OrgID string }
func (*OktaWebClient) RevokeAWSProvisioning ¶
func (o *OktaWebClient) RevokeAWSProvisioning(appID string) error
func (*OktaWebClient) SetAWSProvisioning ¶
func (o *OktaWebClient) SetAWSProvisioning(appID string, accessKey string, secretKey string) error
Click to show internal directories.
Click to hide internal directories.