Documentation
¶
Index ¶
- type Cognito
- type CreateGroupOpts
- type CreateUserOpts
- type Service
- func (s *Service) AdminCreateGroup(ctx context.Context, in CreateGroupOpts) (*identity.Group, error)
- func (s *Service) AdminCreateUser(ctx context.Context, in CreateUserOpts) (*identity.User, error)
- func (s *Service) AdminUpdateUserGroups(ctx context.Context, in UpdateUserGroupsOpts) (*identity.User, error)
- type UpdateUserGroupsOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cognito ¶
type Cognito interface {
AdminCreateGroup(context.Context, identitysync.CreateGroupOpts) (identity.IDPGroup, error)
AdminCreateUser(context.Context, identitysync.CreateUserOpts) (identity.IDPUser, error)
AddUserToGroup(context.Context, identitysync.AddUserToGroupOpts) error
AdminUpdateUserGroups(context.Context, identitysync.UpdateUserGroupsOpts) error
}
type CreateGroupOpts ¶
type CreateUserOpts ¶
type Service ¶
type Service struct {
Clock clock.Clock
DB ddb.Storage
Syncer auth.IdentitySyncer
Cognito Cognito
AdminGroupID string
}
Service holds business logic relating to Cognito user management.
func (*Service) AdminCreateGroup ¶ added in v0.12.0
func (*Service) AdminCreateUser ¶ added in v0.12.0
func (*Service) AdminUpdateUserGroups ¶ added in v0.12.0
type UpdateUserGroupsOpts ¶
Click to show internal directories.
Click to hide internal directories.