Documentation ¶
Index ¶
- Constants
- type AWSSSO
- type AddUserToGroupOpts
- type AzureGroup
- type AzureSync
- func (s *AzureSync) Config() gconfig.Config
- func (a *AzureSync) GetMemberGroups(userID string) ([]string, error)
- func (s *AzureSync) Init(ctx context.Context) error
- func (a *AzureSync) ListGroups(ctx context.Context) ([]identity.IDPGroup, error)
- func (a *AzureSync) ListUsers(ctx context.Context) ([]identity.IDPUser, error)
- func (s *AzureSync) TestConfig(ctx context.Context) error
- type AzureUser
- type CognitoSync
- func (c *CognitoSync) AddUserToGroup(ctx context.Context, in AddUserToGroupOpts) error
- func (c *CognitoSync) AdminCreateGroup(ctx context.Context, in CreateGroupOpts) (identity.IDPGroup, error)
- func (c *CognitoSync) AdminCreateUser(ctx context.Context, in CreateUserOpts) (identity.IDPUser, error)
- func (c *CognitoSync) AdminUpdateUserGroups(ctx context.Context, in UpdateUserGroupsOpts) error
- func (s *CognitoSync) Config() gconfig.Config
- func (s *CognitoSync) Init(ctx context.Context) error
- func (c *CognitoSync) ListGroups(ctx context.Context) ([]identity.IDPGroup, error)
- func (c *CognitoSync) ListUsers(ctx context.Context) ([]identity.IDPUser, error)
- func (c *CognitoSync) RemoveUserFromGroup(ctx context.Context, in RemoveUserFromGroupOpts) error
- type CreateGroupOpts
- type CreateUserOpts
- type GetAccessTokenResponse
- type GoogleSync
- func (s *GoogleSync) Config() gconfig.Config
- func (s *GoogleSync) Init(ctx context.Context) error
- func (c *GoogleSync) ListGroups(ctx context.Context) ([]identity.IDPGroup, error)
- func (c *GoogleSync) ListUsers(ctx context.Context) ([]identity.IDPUser, error)
- func (s *GoogleSync) TestConfig(ctx context.Context) error
- type IdentityProvider
- type IdentityProviderRegistry
- type IdentitySyncer
- type ListGroupsResponse
- type ListUsersResponse
- type OktaSync
- func (s *OktaSync) Config() gconfig.Config
- func (s *OktaSync) Init(ctx context.Context) error
- func (o *OktaSync) ListGroups(ctx context.Context) ([]identity.IDPGroup, error)
- func (o *OktaSync) ListUsers(ctx context.Context) ([]identity.IDPUser, error)
- func (s *OktaSync) TestConfig(ctx context.Context) error
- type OneLoginGroup
- type OneLoginListGroupsResponse
- type OneLoginListUserResponse
- type OneLoginSync
- func (s *OneLoginSync) Config() gconfig.Config
- func (s *OneLoginSync) Init(ctx context.Context) error
- func (s *OneLoginSync) ListGroups(ctx context.Context) ([]identity.IDPGroup, error)
- func (s *OneLoginSync) ListUsers(ctx context.Context) ([]identity.IDPUser, error)
- func (s *OneLoginSync) TestConfig(ctx context.Context) error
- type OneLoginUser
- type OneLoginUserDetail
- type RegisteredIdentityProvider
- type RemoveUserFromGroupOpts
- type SyncOpts
- type UpdateUserGroupsOpts
- type UserGroups
Constants ¶
View Source
const ( IDPTypeCognito = "cognito" IDPTypeOkta = "okta" IDPTypeAzureAD = "azure" IDPTypeGoogle = "google" IDPTypeAWSSSO = "aws-sso" IDPTypeOneLogin = "one-login" )
View Source
const ADAuthorityHost = "https://login.microsoftonline.com"
View Source
const MSGraphBaseURL = "https://graph.microsoft.com/v1.0"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSSSO ¶
type AWSSSO struct {
// contains filtered or unexported fields
}
func (*AWSSSO) ListGroups ¶
type AddUserToGroupOpts ¶
type AzureGroup ¶
type AzureSync ¶
type AzureSync struct {
// contains filtered or unexported fields
}
func (*AzureSync) GetMemberGroups ¶
func (*AzureSync) ListGroups ¶
type AzureUser ¶
type AzureUser struct { GivenName string `json:"givenName"` Mail string `json:"mail"` // this maps to a users email by convention // see the graph API spec for details // in practice all users have a principal name but some users may not have the "mail" property for different reasons. // we use this for the email UserPrincipalName string `json:"userPrincipalName"` Surname string `json:"surname"` ID string `json:"id"` }
properties of a user in the graph API
https://docs.microsoft.com/en-us/graph/api/resources/user?view=graph-rest-1.0#properties
type CognitoSync ¶
type CognitoSync struct {
// contains filtered or unexported fields
}
func (*CognitoSync) AddUserToGroup ¶
func (c *CognitoSync) AddUserToGroup(ctx context.Context, in AddUserToGroupOpts) error
func (*CognitoSync) AdminCreateGroup ¶ added in v0.12.0
func (c *CognitoSync) AdminCreateGroup(ctx context.Context, in CreateGroupOpts) (identity.IDPGroup, error)
func (*CognitoSync) AdminCreateUser ¶ added in v0.12.0
func (c *CognitoSync) AdminCreateUser(ctx context.Context, in CreateUserOpts) (identity.IDPUser, error)
func (*CognitoSync) AdminUpdateUserGroups ¶ added in v0.12.0
func (c *CognitoSync) AdminUpdateUserGroups(ctx context.Context, in UpdateUserGroupsOpts) error
func (*CognitoSync) Config ¶
func (s *CognitoSync) Config() gconfig.Config
func (*CognitoSync) ListGroups ¶
func (*CognitoSync) RemoveUserFromGroup ¶
func (c *CognitoSync) RemoveUserFromGroup(ctx context.Context, in RemoveUserFromGroupOpts) error
type CreateGroupOpts ¶
type CreateUserOpts ¶
type GetAccessTokenResponse ¶
type GoogleSync ¶
type GoogleSync struct {
// contains filtered or unexported fields
}
func (*GoogleSync) Config ¶
func (s *GoogleSync) Config() gconfig.Config
func (*GoogleSync) ListGroups ¶
func (*GoogleSync) TestConfig ¶
func (s *GoogleSync) TestConfig(ctx context.Context) error
type IdentityProvider ¶
type IdentityProviderRegistry ¶
type IdentityProviderRegistry struct {
IdentityProviders map[string]RegisteredIdentityProvider
}
func Registry ¶
func Registry() IdentityProviderRegistry
func (IdentityProviderRegistry) CLIOptions ¶
func (r IdentityProviderRegistry) CLIOptions() []string
func (IdentityProviderRegistry) FromCLIOption ¶
func (r IdentityProviderRegistry) FromCLIOption(opt string) (key string, p RegisteredIdentityProvider, err error)
func (IdentityProviderRegistry) Lookup ¶
func (r IdentityProviderRegistry) Lookup(uses string) (*RegisteredIdentityProvider, error)
Lookup a provider by the 'uses' string.
type IdentitySyncer ¶
type IdentitySyncer struct {
// contains filtered or unexported fields
}
func NewIdentitySyncer ¶
func NewIdentitySyncer(ctx context.Context, opts SyncOpts) (*IdentitySyncer, error)
type ListGroupsResponse ¶
type ListGroupsResponse struct { OdataContext string `json:"@odata.context"` OdataNextLink *string `json:"@odata.nextLink,omitempty"` Value []AzureGroup `json:"value"` }
type ListUsersResponse ¶
type OktaSync ¶
type OktaSync struct {
// contains filtered or unexported fields
}
func (*OktaSync) ListGroups ¶
type OneLoginGroup ¶
type OneLoginListGroupsResponse ¶
type OneLoginListGroupsResponse struct { Status struct { Error bool `json:"error"` Code int `json:"code"` Type string `json:"type"` Message string `json:"message"` } `json:"status"` Pagination struct { BeforeCursor interface{} `json:"before_cursor"` AfterCursor interface{} `json:"after_cursor"` PreviousLink interface{} `json:"previous_link"` NextLink *string `json:"next_link"` } `json:"pagination"` Groups []OneLoginGroup `json:"data"` }
type OneLoginListUserResponse ¶
type OneLoginListUserResponse struct { Status struct { Error bool `json:"error"` Code int `json:"code"` Type string `json:"type"` Message string `json:"message"` } `json:"status"` Pagination struct { BeforeCursor interface{} `json:"before_cursor"` AfterCursor string `json:"after_cursor"` PreviousLink interface{} `json:"previous_link"` NextLink *string `json:"next_link"` } `json:"pagination"` Users []OneLoginUser `json:"data"` }
type OneLoginSync ¶
type OneLoginSync struct {
// contains filtered or unexported fields
}
func (*OneLoginSync) Config ¶
func (s *OneLoginSync) Config() gconfig.Config
func (*OneLoginSync) ListGroups ¶
func (*OneLoginSync) TestConfig ¶
func (s *OneLoginSync) TestConfig(ctx context.Context) error
type OneLoginUser ¶
type OneLoginUser struct { ActivatedAt time.Time `json:"activated_at"` CreatedAt time.Time `json:"created_at"` Email string `json:"email"` Username string `json:"username"` Firstname string `json:"firstname"` GroupID int `json:"group_id"` ID int `json:"id"` InvalidLoginAttempts int `json:"invalid_login_attempts"` InvitationSentAt time.Time `json:"invitation_sent_at"` LastLogin time.Time `json:"last_login"` Lastname string `json:"lastname"` LockedUntil interface{} `json:"locked_until"` Notes interface{} `json:"notes"` OpenidName string `json:"openid_name"` LocaleCode interface{} `json:"locale_code"` PasswordChangedAt time.Time `json:"password_changed_at"` Phone string `json:"phone"` Status int `json:"status"` UpdatedAt time.Time `json:"updated_at"` DistinguishedName interface{} `json:"distinguished_name"` ExternalID interface{} `json:"external_id"` DirectoryID interface{} `json:"directory_id"` MemberOf []string `json:"member_of"` Samaccountname interface{} `json:"samaccountname"` Userprincipalname interface{} `json:"userprincipalname"` ManagerAdID interface{} `json:"manager_ad_id"` ManagerUserID int `json:"manager_user_id"` RoleID []int `json:"role_id"` Company string `json:"company"` Department string `json:"department"` Title string `json:"title"` State int `json:"state"` TrustedIdpID interface{} `json:"trusted_idp_id"` CustomAttributes struct { Alias string `json:"alias"` Branch string `json:"branch"` } `json:"custom_attributes"` }
type OneLoginUserDetail ¶
type OneLoginUserDetail struct { Status struct { Error bool `json:"error"` Code int `json:"code"` Type string `json:"type"` Message string `json:"message"` } `json:"status"` Data []struct { ActivatedAt time.Time `json:"activated_at"` CreatedAt time.Time `json:"created_at"` Email string `json:"email"` Username string `json:"username"` Firstname string `json:"firstname"` GroupID int `json:"group_id"` ID int `json:"id"` InvalidLoginAttempts int `json:"invalid_login_attempts"` InvitationSentAt time.Time `json:"invitation_sent_at"` LastLogin time.Time `json:"last_login"` Lastname string `json:"lastname"` LockedUntil interface{} `json:"locked_until"` Notes interface{} `json:"notes"` OpenidName string `json:"openid_name"` LocaleCode interface{} `json:"locale_code"` PasswordChangedAt time.Time `json:"password_changed_at"` Phone string `json:"phone"` Status int `json:"status"` UpdatedAt time.Time `json:"updated_at"` DistinguishedName interface{} `json:"distinguished_name"` ExternalID interface{} `json:"external_id"` DirectoryID interface{} `json:"directory_id"` MemberOf []string `json:"member_of"` Samaccountname interface{} `json:"samaccountname"` Userprincipalname interface{} `json:"userprincipalname"` ManagerAdID interface{} `json:"manager_ad_id"` ManagerUserID int `json:"manager_user_id"` RoleID []int `json:"role_id"` Company string `json:"company"` Department string `json:"department"` Title string `json:"title"` State int `json:"state"` TrustedIdpID interface{} `json:"trusted_idp_id"` CustomAttributes struct { Alias string `json:"alias"` Branch string `json:"branch"` } `json:"custom_attributes"` } `json:"data"` }
type RegisteredIdentityProvider ¶
type RegisteredIdentityProvider struct { IdentityProvider IdentityProvider Description string DocsID string // Hidden indicates whether the provider should be hidden from the CLI setup options Hidden bool }
type RemoveUserFromGroupOpts ¶
type SyncOpts ¶
type SyncOpts struct { TableName string IdpType string UserPoolId string IdentityConfig deploy.FeatureMap }
type UpdateUserGroupsOpts ¶
type UserGroups ¶
Click to show internal directories.
Click to hide internal directories.