Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DependencySet = wire.NewSet( wire.Struct(new(UserInfoService), "*"), wire.Struct(new(Sink), "*"), )
View Source
var UserInfoCacheLogger = slogutil.NewLogger("userinfo-cache")
Functions ¶
This section is empty.
Types ¶
type RolesAndGroupsQueries ¶
type Sink ¶
type Sink struct {
UserInfoService *UserInfoService
}
func (*Sink) ReceiveBlockingEvent ¶
type UserInfo ¶
type UserInfo struct {
User *model.User `json:"user,omitempty"`
AccountAccountStaleFrom *time.Time `json:"account_status_stale_from,omitempty"`
EffectiveRoleKeys []string `json:"effective_role_keys"`
Authenticators []model.UserInfoAuthenticator `json:"authenticators"`
RecoveryCodeEnabled bool `json:"recovery_code_enabled"`
}
type UserInfoAuthenticatorService ¶
type UserInfoAuthenticatorService interface {
List(ctx context.Context, userID string, filters ...authenticator.Filter) ([]*authenticator.Info, error)
}
type UserInfoMFAService ¶
type UserInfoService ¶
type UserInfoService struct {
Redis *appredis.Handle
Clock clock.Clock
AppID config.AppID
AuthenticationConfig *config.AuthenticationConfig
UserQueries UserQueries
RolesAndGroupsQueries RolesAndGroupsQueries
AuthenticatorService UserInfoAuthenticatorService
MFAService UserInfoMFAService
}
func (*UserInfoService) GetUserInfoBearer ¶
func (*UserInfoService) GetUserInfoGreatest ¶
func (*UserInfoService) PurgeUserInfo ¶
func (s *UserInfoService) PurgeUserInfo(ctx context.Context, userID string) error
type UserQueries ¶
Click to show internal directories.
Click to hide internal directories.