Documentation ¶
Index ¶
- type AuthRequestRepo
- func (repo *AuthRequestRepo) AuthRequestByCode(ctx context.Context, code string) (_ *domain.AuthRequest, err error)
- func (repo *AuthRequestRepo) AuthRequestByID(ctx context.Context, id, userAgentID string) (_ *domain.AuthRequest, err error)
- func (repo *AuthRequestRepo) AuthRequestByIDCheckLoggedIn(ctx context.Context, id, userAgentID string) (_ *domain.AuthRequest, err error)
- func (repo *AuthRequestRepo) AutoRegisterExternalUser(ctx context.Context, registerUser *domain.Human, ...) (err error)
- func (repo *AuthRequestRepo) BeginMFAU2FLogin(ctx context.Context, userID, resourceOwner, authRequestID, userAgentID string) (login *domain.WebAuthNLogin, err error)
- func (repo *AuthRequestRepo) BeginPasswordlessInitCodeSetup(ctx context.Context, userID, resourceOwner, codeID, verificationCode string, ...) (login *domain.WebAuthNToken, err error)
- func (repo *AuthRequestRepo) BeginPasswordlessLogin(ctx context.Context, userID, resourceOwner, authRequestID, userAgentID string) (login *domain.WebAuthNLogin, err error)
- func (repo *AuthRequestRepo) BeginPasswordlessSetup(ctx context.Context, userID, resourceOwner string, ...) (login *domain.WebAuthNToken, err error)
- func (repo *AuthRequestRepo) CheckExternalUserLogin(ctx context.Context, authReqID, userAgentID string, ...) (err error)
- func (repo *AuthRequestRepo) CheckLoginName(ctx context.Context, id, loginName, userAgentID string) (err error)
- func (repo *AuthRequestRepo) CreateAuthRequest(ctx context.Context, request *domain.AuthRequest) (_ *domain.AuthRequest, err error)
- func (repo *AuthRequestRepo) DeleteAuthRequest(ctx context.Context, id string) (err error)
- func (repo *AuthRequestRepo) GetPrivacyPolicy(ctx context.Context, orgID string) (*domain.PrivacyPolicy, error)
- func (repo *AuthRequestRepo) Health(ctx context.Context) error
- func (repo *AuthRequestRepo) LinkExternalUsers(ctx context.Context, authReqID, userAgentID string, info *domain.BrowserInfo) (err error)
- func (repo *AuthRequestRepo) ResetLinkingUsers(ctx context.Context, authReqID, userAgentID string) error
- func (repo *AuthRequestRepo) SaveAuthCode(ctx context.Context, id, code, userAgentID string) (err error)
- func (repo *AuthRequestRepo) SelectExternalIDP(ctx context.Context, authReqID, idpConfigID, userAgentID string) (err error)
- func (repo *AuthRequestRepo) SelectUser(ctx context.Context, id, userID, userAgentID string) (err error)
- func (repo *AuthRequestRepo) SetExternalUserLogin(ctx context.Context, authReqID, userAgentID string, ...) (err error)
- func (repo *AuthRequestRepo) VerifyMFAOTP(ctx context.Context, ...) (err error)
- func (repo *AuthRequestRepo) VerifyMFAU2F(ctx context.Context, userID, resourceOwner, authRequestID, userAgentID string, ...) (err error)
- func (repo *AuthRequestRepo) VerifyPassword(ctx context.Context, ...) (err error)
- func (repo *AuthRequestRepo) VerifyPasswordless(ctx context.Context, userID, resourceOwner, authRequestID, userAgentID string, ...) (err error)
- func (repo *AuthRequestRepo) VerifyPasswordlessInitCodeSetup(ctx context.Context, ...) (err error)
- func (repo *AuthRequestRepo) VerifyPasswordlessSetup(ctx context.Context, userID, resourceOwner, userAgentID, tokenName string, ...) (err error)
- type OrgRepository
- func (repo *OrgRepository) GetIDPConfigByID(ctx context.Context, idpConfigID string) (*iam_model.IDPConfigView, error)
- func (repo *OrgRepository) GetLoginText(ctx context.Context, orgID string) ([]*domain.CustomText, error)
- func (repo *OrgRepository) GetMyPasswordComplexityPolicy(ctx context.Context) (*iam_model.PasswordComplexityPolicyView, error)
- type RefreshTokenRepo
- type TokenRepo
- type UserRepo
- type UserSessionRepo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthRequestRepo ¶
type AuthRequestRepo struct { Command *command.Commands Query *query.Queries AuthRequests cache.AuthRequestCache View *view.View Eventstore v1.Eventstore UserCodeAlg crypto.EncryptionAlgorithm LabelPolicyProvider labelPolicyProvider UserSessionViewProvider userSessionViewProvider UserViewProvider userViewProvider UserCommandProvider userCommandProvider UserEventProvider userEventProvider OrgViewProvider orgViewProvider LoginPolicyViewProvider loginPolicyViewProvider LockoutPolicyViewProvider lockoutPolicyViewProvider PrivacyPolicyProvider privacyPolicyProvider IDPProviderViewProvider idpProviderViewProvider UserGrantProvider userGrantProvider ProjectProvider projectProvider ApplicationProvider applicationProvider IdGenerator id.Generator }
func (*AuthRequestRepo) AuthRequestByCode ¶
func (repo *AuthRequestRepo) AuthRequestByCode(ctx context.Context, code string) (_ *domain.AuthRequest, err error)
func (*AuthRequestRepo) AuthRequestByID ¶
func (repo *AuthRequestRepo) AuthRequestByID(ctx context.Context, id, userAgentID string) (_ *domain.AuthRequest, err error)
func (*AuthRequestRepo) AuthRequestByIDCheckLoggedIn ¶
func (repo *AuthRequestRepo) AuthRequestByIDCheckLoggedIn(ctx context.Context, id, userAgentID string) (_ *domain.AuthRequest, err error)
func (*AuthRequestRepo) AutoRegisterExternalUser ¶
func (repo *AuthRequestRepo) AutoRegisterExternalUser(ctx context.Context, registerUser *domain.Human, externalIDP *domain.UserIDPLink, orgMemberRoles []string, authReqID, userAgentID, resourceOwner string, metadatas []*domain.Metadata, info *domain.BrowserInfo) (err error)
func (*AuthRequestRepo) BeginMFAU2FLogin ¶
func (repo *AuthRequestRepo) BeginMFAU2FLogin(ctx context.Context, userID, resourceOwner, authRequestID, userAgentID string) (login *domain.WebAuthNLogin, err error)
func (*AuthRequestRepo) BeginPasswordlessInitCodeSetup ¶
func (repo *AuthRequestRepo) BeginPasswordlessInitCodeSetup(ctx context.Context, userID, resourceOwner, codeID, verificationCode string, preferredPlatformType domain.AuthenticatorAttachment) (login *domain.WebAuthNToken, err error)
func (*AuthRequestRepo) BeginPasswordlessLogin ¶
func (repo *AuthRequestRepo) BeginPasswordlessLogin(ctx context.Context, userID, resourceOwner, authRequestID, userAgentID string) (login *domain.WebAuthNLogin, err error)
func (*AuthRequestRepo) BeginPasswordlessSetup ¶
func (repo *AuthRequestRepo) BeginPasswordlessSetup(ctx context.Context, userID, resourceOwner string, authenticatorPlatform domain.AuthenticatorAttachment) (login *domain.WebAuthNToken, err error)
func (*AuthRequestRepo) CheckExternalUserLogin ¶
func (repo *AuthRequestRepo) CheckExternalUserLogin(ctx context.Context, authReqID, userAgentID string, externalUser *domain.ExternalUser, info *domain.BrowserInfo) (err error)
func (*AuthRequestRepo) CheckLoginName ¶
func (repo *AuthRequestRepo) CheckLoginName(ctx context.Context, id, loginName, userAgentID string) (err error)
func (*AuthRequestRepo) CreateAuthRequest ¶
func (repo *AuthRequestRepo) CreateAuthRequest(ctx context.Context, request *domain.AuthRequest) (_ *domain.AuthRequest, err error)
func (*AuthRequestRepo) DeleteAuthRequest ¶
func (repo *AuthRequestRepo) DeleteAuthRequest(ctx context.Context, id string) (err error)
func (*AuthRequestRepo) GetPrivacyPolicy ¶
func (repo *AuthRequestRepo) GetPrivacyPolicy(ctx context.Context, orgID string) (*domain.PrivacyPolicy, error)
func (*AuthRequestRepo) LinkExternalUsers ¶
func (repo *AuthRequestRepo) LinkExternalUsers(ctx context.Context, authReqID, userAgentID string, info *domain.BrowserInfo) (err error)
func (*AuthRequestRepo) ResetLinkingUsers ¶
func (repo *AuthRequestRepo) ResetLinkingUsers(ctx context.Context, authReqID, userAgentID string) error
func (*AuthRequestRepo) SaveAuthCode ¶
func (repo *AuthRequestRepo) SaveAuthCode(ctx context.Context, id, code, userAgentID string) (err error)
func (*AuthRequestRepo) SelectExternalIDP ¶
func (repo *AuthRequestRepo) SelectExternalIDP(ctx context.Context, authReqID, idpConfigID, userAgentID string) (err error)
func (*AuthRequestRepo) SelectUser ¶
func (repo *AuthRequestRepo) SelectUser(ctx context.Context, id, userID, userAgentID string) (err error)
func (*AuthRequestRepo) SetExternalUserLogin ¶
func (repo *AuthRequestRepo) SetExternalUserLogin(ctx context.Context, authReqID, userAgentID string, externalUser *domain.ExternalUser) (err error)
func (*AuthRequestRepo) VerifyMFAOTP ¶
func (repo *AuthRequestRepo) VerifyMFAOTP(ctx context.Context, authRequestID, userID, resourceOwner, code, userAgentID string, info *domain.BrowserInfo) (err error)
func (*AuthRequestRepo) VerifyMFAU2F ¶
func (repo *AuthRequestRepo) VerifyMFAU2F(ctx context.Context, userID, resourceOwner, authRequestID, userAgentID string, credentialData []byte, info *domain.BrowserInfo) (err error)
func (*AuthRequestRepo) VerifyPassword ¶
func (repo *AuthRequestRepo) VerifyPassword(ctx context.Context, authReqID, userID, resourceOwner, password, userAgentID string, info *domain.BrowserInfo) (err error)
func (*AuthRequestRepo) VerifyPasswordless ¶
func (repo *AuthRequestRepo) VerifyPasswordless(ctx context.Context, userID, resourceOwner, authRequestID, userAgentID string, credentialData []byte, info *domain.BrowserInfo) (err error)
func (*AuthRequestRepo) VerifyPasswordlessInitCodeSetup ¶
func (*AuthRequestRepo) VerifyPasswordlessSetup ¶
type OrgRepository ¶
type OrgRepository struct { SearchLimit uint64 Eventstore eventstore.Eventstore View *auth_view.View SystemDefaults systemdefaults.SystemDefaults Query *query.Queries }
func (*OrgRepository) GetIDPConfigByID ¶
func (repo *OrgRepository) GetIDPConfigByID(ctx context.Context, idpConfigID string) (*iam_model.IDPConfigView, error)
func (*OrgRepository) GetLoginText ¶
func (repo *OrgRepository) GetLoginText(ctx context.Context, orgID string) ([]*domain.CustomText, error)
func (*OrgRepository) GetMyPasswordComplexityPolicy ¶
func (repo *OrgRepository) GetMyPasswordComplexityPolicy(ctx context.Context) (*iam_model.PasswordComplexityPolicyView, error)
type RefreshTokenRepo ¶
type RefreshTokenRepo struct { Eventstore v1.Eventstore View *view.View SearchLimit uint64 KeyAlgorithm crypto.EncryptionAlgorithm }
func (*RefreshTokenRepo) RefreshTokenByID ¶
func (r *RefreshTokenRepo) RefreshTokenByID(ctx context.Context, refreshToken string) (*usr_model.RefreshTokenView, error)
func (*RefreshTokenRepo) SearchMyRefreshTokens ¶
func (r *RefreshTokenRepo) SearchMyRefreshTokens(ctx context.Context, userID string, request *usr_model.RefreshTokenSearchRequest) (*usr_model.RefreshTokenSearchResponse, error)
type TokenRepo ¶
type TokenRepo struct { Eventstore v1.Eventstore View *view.View }
func (*TokenRepo) IsTokenValid ¶
type UserRepo ¶
type UserRepo struct { SearchLimit uint64 Eventstore v1.Eventstore View *view.View Query *query.Queries SystemDefaults systemdefaults.SystemDefaults PrefixAvatarURL string }
func (*UserRepo) UserEventsByID ¶
type UserSessionRepo ¶
func (*UserSessionRepo) ActiveUserSessionCount ¶
func (repo *UserSessionRepo) ActiveUserSessionCount() int64
func (*UserSessionRepo) GetMyUserSessions ¶
func (repo *UserSessionRepo) GetMyUserSessions(ctx context.Context) ([]*usr_model.UserSessionView, error)
Click to show internal directories.
Click to hide internal directories.