Documentation
¶
Index ¶
- Constants
- type Okta
- func (o *Okta) AssignClientToPolicy(authServerID string, policy map[string]interface{}, clientID string) error
- func (o *Okta) AssignGroupToApp(appID, groupID string) error
- func (o *Okta) FindGroupByName(groupName string) (string, error)
- func (o *Okta) FindPolicyByName(authServerID, policyName string) (map[string]interface{}, error)
- func (o *Okta) UnassignGroupFromApp(appID, groupID string) error
- func (o *Okta) UpdatePolicy(authServerID, policyID string, policy map[string]interface{}) error
Constants ¶
View Source
const OktaAuthHeaderPrefix = "SSWS"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Okta ¶
Okta wraps Okta Management API calls.
func (*Okta) AssignClientToPolicy ¶
func (o *Okta) AssignClientToPolicy(authServerID string, policy map[string]interface{}, clientID string) error
AssignClientToPolicy updates the policy-level "Assigned to clients" list to include the given client. If the policy is already assigned to ALL_CLIENTS or already includes the client, it no-ops.
The policy map is modified in-place and then persisted via UpdatePolicy.
func (*Okta) AssignGroupToApp ¶
func (*Okta) FindPolicyByName ¶
FindPolicyByName returns the policy object for the given policy name on the authorization server. Returns nil if not found.
Note: This does a list call to locate the policy ID and then retrieves the policy by ID so callers can update it without needing an additional fetch.
func (*Okta) UnassignGroupFromApp ¶
Click to show internal directories.
Click to hide internal directories.