Documentation ¶
Index ¶
- type App
- type Group
- type GroupAssignmentResp
- type OktaAppService
- type OktaClient
- func (oc *OktaClient) GetAppById(appID string) (App, error)
- func (oc *OktaClient) GetGroupById(groupID string) (Group, error)
- func (oc *OktaClient) ListApps(name string) ([]App, error)
- func (oc *OktaClient) ListAppsGroups(appID string) (App, []GroupAssignmentResp, error)
- func (oc *OktaClient) ListOktaGroupUsers(groupID string) ([]User, error)
- func (oc *OktaClient) ListOktaGroups(name string) ([]Group, error)
- type OktaGroupService
- type Profile
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GroupAssignmentResp ¶
type OktaAppService ¶
type OktaAppService interface { ListApplications(ctx context.Context, qp *query.Params) ([]okta.App, *okta.Response, error) ListApplicationGroupAssignments(ctx context.Context, appID string, qp *query.Params) ([]*okta.ApplicationGroupAssignment, *okta.Response, error) GetApplication(ctx context.Context, appId string, appInstance okta.App, qp *query.Params) (okta.App, *okta.Response, error) }
type OktaClient ¶
type OktaClient struct { OktaAppService OktaGroupService Ctx context.Context }
func NewClient ¶
func NewClient(url, token string) (*OktaClient, error)
func (*OktaClient) GetAppById ¶
func (oc *OktaClient) GetAppById(appID string) (App, error)
func (*OktaClient) GetGroupById ¶
func (oc *OktaClient) GetGroupById(groupID string) (Group, error)
func (*OktaClient) ListAppsGroups ¶
func (oc *OktaClient) ListAppsGroups(appID string) (App, []GroupAssignmentResp, error)
func (*OktaClient) ListOktaGroupUsers ¶
func (oc *OktaClient) ListOktaGroupUsers(groupID string) ([]User, error)
func (*OktaClient) ListOktaGroups ¶
func (oc *OktaClient) ListOktaGroups(name string) ([]Group, error)
type OktaGroupService ¶
type OktaGroupService interface { GetGroup(ctx context.Context, groupId string) (*okta.Group, *okta.Response, error) ListGroups(ctx context.Context, qp *query.Params) ([]*okta.Group, *okta.Response, error) ListGroupUsers(ctx context.Context, groupId string, qp *query.Params) ([]*okta.User, *okta.Response, error) }
type Profile ¶
type Profile struct { Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` SAMLRoles []string `json:"samlRoles,omitempty"` Role string `json:"role,omitempty"` Email string `json:"email,omitempty"` FirstName string `json:"firstName,omitempty"` LastName string `json:"lastName,omitempty"` }
Click to show internal directories.
Click to hide internal directories.