Documentation
¶
Index ¶
- Variables
- type ClaimStore
- type EventService
- type IdentityService
- type PictureTransformer
- type Service
- func (s *Service) DeriveStandardAttributes(role accesscontrol.Role, userID string, updatedAt time.Time, ...) (map[string]interface{}, error)
- func (s *Service) PopulateIdentityAwareStandardAttributes(userID string) (err error)
- func (s *Service) PopulateStandardAttributes(userID string, iden *identity.Info) error
- func (s *Service) UpdateStandardAttributes(role accesscontrol.Role, userID string, stdAttrs map[string]interface{}) error
- type ServiceNoEvent
- func (s *ServiceNoEvent) DeriveStandardAttributes(role accesscontrol.Role, userID string, updatedAt time.Time, ...) (map[string]interface{}, error)
- func (s *ServiceNoEvent) PopulateIdentityAwareStandardAttributes(userID string) (err error)
- func (s *ServiceNoEvent) UpdateStandardAttributes(role accesscontrol.Role, userID string, stdAttrs map[string]interface{}) error
- type Transformer
- type UserQueries
- type UserStore
Constants ¶
This section is empty.
Variables ¶
View Source
var DependencySet = wire.NewSet( wire.Struct(new(Service), "*"), wire.Struct(new(ServiceNoEvent), "*"), wire.Struct(new(PictureTransformer), "*"), wire.Bind(new(Transformer), new(*PictureTransformer)), )
Functions ¶
This section is empty.
Types ¶
type ClaimStore ¶
type ClaimStore interface {
ListByClaimName(userID string, claimName string) ([]*verification.Claim, error)
}
type EventService ¶
type IdentityService ¶
type PictureTransformer ¶
type PictureTransformer struct { HTTPProto httputil.HTTPProto HTTPHost httputil.HTTPHost ImagesCDNHost config.ImagesCDNHost }
func (*PictureTransformer) RepresentationFormToStorageForm ¶
func (t *PictureTransformer) RepresentationFormToStorageForm(key string, value interface{}) (interface{}, error)
func (*PictureTransformer) StorageFormToRepresentationForm ¶
func (t *PictureTransformer) StorageFormToRepresentationForm(key string, value interface{}) (interface{}, error)
type Service ¶
type Service struct { UserProfileConfig *config.UserProfileConfig ServiceNoEvent *ServiceNoEvent Identities IdentityService UserQueries UserQueries UserStore UserStore Events EventService }
func (*Service) DeriveStandardAttributes ¶
func (*Service) PopulateIdentityAwareStandardAttributes ¶
func (*Service) PopulateStandardAttributes ¶
func (*Service) UpdateStandardAttributes ¶
type ServiceNoEvent ¶
type ServiceNoEvent struct { UserProfileConfig *config.UserProfileConfig Identities IdentityService UserQueries UserQueries UserStore UserStore ClaimStore ClaimStore Transformer Transformer }
func (*ServiceNoEvent) DeriveStandardAttributes ¶
func (s *ServiceNoEvent) DeriveStandardAttributes(role accesscontrol.Role, userID string, updatedAt time.Time, attrs map[string]interface{}) (map[string]interface{}, error)
DeriveStandardAttributes populates email_verified and phone_number_verified, if email or phone_number are found in attrs.
func (*ServiceNoEvent) PopulateIdentityAwareStandardAttributes ¶
func (s *ServiceNoEvent) PopulateIdentityAwareStandardAttributes(userID string) (err error)
func (*ServiceNoEvent) UpdateStandardAttributes ¶
func (s *ServiceNoEvent) UpdateStandardAttributes(role accesscontrol.Role, userID string, stdAttrs map[string]interface{}) error
type Transformer ¶
Click to show internal directories.
Click to hide internal directories.