Documentation
¶
Index ¶
- type AttachCouponCmd
- type AuthBackupView
- type AuthenticationStepCmd
- type BackupArchiveDataQuery
- type BackupArchiveDeleteCmd
- type BackupArchiveView
- type BackupQuery
- type BackupUpdateCmd
- type BackupView
- type BeginTOTPEnrollmentQuery
- type BeginWebAuthnRegistrationQuery
- type ChangePasswordCmd
- type ConfigProfileCmd
- type ConfigProfileQuery
- type ConsentAcceptCmd
- type ConsentInfoQuery
- type ConsentInfoView
- type ConsentInitCmd
- type CountOrgAgentQuery
- type CreateOrgAgentCmd
- type CredentialsView
- type CryptoActionView
- type CryptoProvisionQuery
- type DeleteAsymKeysCmd
- type DeleteAvatarCmd
- type DeleteBoxKeySharesCmd
- type DeleteCredentialQuery
- type DeleteCryptoActionQuery
- type DeleteSecretQuery
- type EnrollmentView
- type FinishTOTPEnrollmentQuery
- type FinishWebAuthnRegistrationQuery
- type FlowResetCmd
- type GenerateSecretCmd
- type GetBackupQuery
- type GetCryptoActionQuery
- type GetOrgPublicRequest
- type GetSecretStorageQuery
- type GetUserInfoCmd
- type IdentityNotifAckCmd
- type IdentityNotifCountQuery
- type IdentityNotifListQuery
- type IdentityPubkeyByIdentifierQuery
- type IdentityQuery
- type IdentityView
- type ListCredentialsQuery
- type ListCryptoActionsQuery
- type ListDatatagsForIdentityQuery
- type ListDatatagsQuery
- type ListOrgAgentQuery
- type LoginAuthnStepCmd
- type LoginAuthnStepView
- type LoginInfoQuery
- type LoginInfoView
- type LoginInitCmd
- type MigrateToSecretStorageQuery
- type OrgCreateCmd
- type OrgListQuery
- type OrgView
- type PartialUpdateIdentityCmd
- type ProfileQuery
- type PublicOrgView
- type PwdParamsQuery
- type PwdParamsView
- type RecoveryCodesView
- type RegenerateRecoveryCodesQuery
- type RequireIdentityCmd
- type RequireIdentityView
- type RootKeyShareCreateCmd
- type RootKeyShareQuery
- type SSOService
- func (sso *SSOService) AcceptConsent(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) AckIdentityNotification(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) AssertAuthnStep(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) AttachCoupon(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) BeginTOTPEnrollment(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) BeginWebAuthnRegistration(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) ChangePassword(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) CleanAuthnCookie(eCtx echo.Context, _ interface{}) error
- func (sso *SSOService) CleanOIDCCookie(eCtx echo.Context, _ interface{}) error
- func (sso *SSOService) CountIdentityNotification(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) CountOrgAgents(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) CreateOrg(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) CreateOrgAgent(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) CreateRootKeyShare(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) CreateSecretStorageAsymKey(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) CreateSecretStorageBoxKeyShare(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) DeleteAsymKeys(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) DeleteAvatar(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) DeleteBackupArchive(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) DeleteBoxKeyShares(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) DeleteCredential(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) DeleteCryptoAction(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) DeleteSecret(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) FinishTOTPEnrollment(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) FinishWebAuthnRegistration(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) GenerateSecret(ctx context.Context, genReq request.Request) (interface{}, error)
- func (sso *SSOService) GetAccountPwdParams(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) GetBackup(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) GetBackupArchiveData(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) GetBackupDuringAuth(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) GetConsentInfo(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) GetCryptoAction(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) GetCryptoProvision(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) GetIdentity(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) GetIdentityPubkeyByIdentifier(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) GetOrgPublic(ctx context.Context, genReq request.Request) (interface{}, error)
- func (sso *SSOService) GetProfile(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) GetProfileConfig(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) GetRootKeyShare(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) GetSecretStorage(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) GetSecretStorageDuringAuth(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) GetUserInfo(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) InitAuthnStep(ctx context.Context, genReq request.Request) (interface{}, error)
- func (sso *SSOService) InitConsent(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) ListBackupArchives(ctx context.Context, _ request.Request) (interface{}, error)
- func (sso *SSOService) ListCredentials(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) ListCryptoActions(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) ListDatatags(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) ListDatatagsForIdentity(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) ListIdentityNotification(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) ListIdentityOrgs(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) ListOrgAgents(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) LoginInfo(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) LoginInit(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) Logout(ctx context.Context, _ request.Request) (interface{}, error)
- func (sso *SSOService) MigrateToSecretStorage(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) PartialUpdateIdentity(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) RegenerateRecoveryCodes(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) RequireIdentity(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) ResetFlow(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) SetPassword(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) SetProfileConfig(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) UpdateBackup(ctx context.Context, gen request.Request) (interface{}, error)
- func (sso *SSOService) UploadAvatar(ctx context.Context, gen request.Request) (interface{}, error)
- type SecretStorageView
- type SecretView
- type SetPasswordCmd
- type UploadAvatarCmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttachCouponCmd ¶
type AttachCouponCmd struct { Value string `json:"value"` // contains filtered or unexported fields }
AttachCouponCmd ...
func (*AttachCouponCmd) BindAndValidate ¶
func (cmd *AttachCouponCmd) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type AuthBackupView ¶
type AuthBackupView struct { BackupView AccountID string `json:"account_id"` }
AuthBackupView ...
type AuthenticationStepCmd ¶
type AuthenticationStepCmd struct { LoginChallenge string `json:"login_challenge"` Step authn.Step `json:"authn_step"` }
AuthenticationStepCmd orders: - the retry of an authentication step init for the identity
func (*AuthenticationStepCmd) BindAndValidate ¶
func (cmd *AuthenticationStepCmd) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type BackupArchiveDataQuery ¶
type BackupArchiveDataQuery struct {
// contains filtered or unexported fields
}
BackupArchiveDataQuery ...
func (*BackupArchiveDataQuery) BindAndValidate ¶
func (query *BackupArchiveDataQuery) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type BackupArchiveDeleteCmd ¶
type BackupArchiveDeleteCmd struct { Reason string `json:"reason"` // contains filtered or unexported fields }
BackupArchiveDeleteCmd ...
func (*BackupArchiveDeleteCmd) BindAndValidate ¶
func (cmd *BackupArchiveDeleteCmd) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type BackupArchiveView ¶
type BackupArchiveView struct {
crypto.BackupArchive
}
BackupArchiveView ...
type BackupQuery ¶
type BackupQuery struct {
// contains filtered or unexported fields
}
BackupQuery ...
func (*BackupQuery) BindAndValidate ¶
func (query *BackupQuery) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type BackupUpdateCmd ¶
type BackupUpdateCmd struct { Data string `json:"data"` NewVersion int `json:"version"` // contains filtered or unexported fields }
BackupUpdateCmd ...
func (*BackupUpdateCmd) BindAndValidate ¶
func (cmd *BackupUpdateCmd) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type BackupView ¶
BackupView ...
type BeginTOTPEnrollmentQuery ¶
type BeginTOTPEnrollmentQuery struct {
// contains filtered or unexported fields
}
BeginTOTPEnrollmentQuery ...
func (*BeginTOTPEnrollmentQuery) BindAndValidate ¶
func (cmd *BeginTOTPEnrollmentQuery) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type BeginWebAuthnRegistrationQuery ¶
type BeginWebAuthnRegistrationQuery struct {
// contains filtered or unexported fields
}
BeginWebAuthnRegistrationQuery ...
func (*BeginWebAuthnRegistrationQuery) BindAndValidate ¶
func (cmd *BeginWebAuthnRegistrationQuery) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type ChangePasswordCmd ¶
type ChangePasswordCmd struct { OldPassword argon2.HashedPassword `json:"old_prehashed_password"` NewPassword argon2.HashedPassword `json:"new_prehashed_password"` EncryptedAccountRootKey string `json:"encrypted_account_root_key"` // contains filtered or unexported fields }
ChangePasswordCmd ...
func (*ChangePasswordCmd) BindAndValidate ¶
func (cmd *ChangePasswordCmd) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type ConfigProfileCmd ¶
type ConfigProfileCmd struct { // contains filtered or unexported fields }
ConfigProfileCmd ...
func (*ConfigProfileCmd) BindAndValidate ¶
func (cmd *ConfigProfileCmd) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type ConfigProfileQuery ¶
type ConfigProfileQuery struct {
// contains filtered or unexported fields
}
ConfigProfileQuery ...
func (*ConfigProfileQuery) BindAndValidate ¶
func (query *ConfigProfileQuery) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type ConsentAcceptCmd ¶
type ConsentAcceptCmd struct { IdentityID string `json:"identity_id"` ConsentChallenge string `json:"consent_challenge"` ConsentedScopes []string `json:"consented_scopes"` }
ConsentAcceptCmd ...
func (*ConsentAcceptCmd) BindAndValidate ¶
func (cmd *ConsentAcceptCmd) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type ConsentInfoQuery ¶
type ConsentInfoQuery struct {
ConsentChallenge string `query:"consent_challenge"`
}
ConsentInfoQuery ...
func (*ConsentInfoQuery) BindAndValidate ¶
func (query *ConsentInfoQuery) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type ConsentInfoView ¶
type ConsentInfoView struct { Subject string `json:"subject"` ACR oidc.ClassRef `json:"acr"` RequestedScope []string `json:"scope"` OIDCContext oidc.Context `json:"context"` Client struct { ID string `json:"id"` Name string `json:"name"` LogoURL null.String `json:"logo_uri"` TosURL null.String `json:"tos_uri"` PolicyURL null.String `json:"policy_uri"` } `json:"client"` }
ConsentInfoView bears data about current user authentication status
type ConsentInitCmd ¶
type ConsentInitCmd struct {
ConsentChallenge string `query:"consent_challenge"`
}
ConsentInitCmd ...
func (*ConsentInitCmd) BindAndValidate ¶
func (cmd *ConsentInitCmd) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type CountOrgAgentQuery ¶
type CountOrgAgentQuery struct {
// contains filtered or unexported fields
}
CountOrgAgentQuery ...
func (*CountOrgAgentQuery) BindAndValidate ¶
func (query *CountOrgAgentQuery) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type CreateOrgAgentCmd ¶
type CreateOrgAgentCmd struct { Email string `json:"email"` // contains filtered or unexported fields }
CreateOrgAgentCmd ...
func (*CreateOrgAgentCmd) BindAndValidate ¶
func (cmd *CreateOrgAgentCmd) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type CredentialsView ¶
type CredentialsView struct { ID string `json:"id"` IdentityID string `json:"identity_id"` Name string `json:"name"` CreatedAt time.Time `json:"created_at"` }
CredentialsView only takes some of the credentials attributes to expose them via the API
type CryptoProvisionQuery ¶
type CryptoProvisionQuery struct {
}CryptoProvisionQuery
func (*CryptoProvisionQuery) BindAndValidate ¶
func (query *CryptoProvisionQuery) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type DeleteAsymKeysCmd ¶
type DeleteAsymKeysCmd struct {
Pubkeys []string `json:"public_keys"`
}
func (*DeleteAsymKeysCmd) BindAndValidate ¶
func (cmd *DeleteAsymKeysCmd) BindAndValidate(eCtx echo.Context) error
BindAndValidate implements request.Request.BindAndValidate
type DeleteAvatarCmd ¶
type DeleteAvatarCmd struct {
// contains filtered or unexported fields
}
DeleteAvatarCmd ...
func (*DeleteAvatarCmd) BindAndValidate ¶
func (cmd *DeleteAvatarCmd) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type DeleteBoxKeySharesCmd ¶
type DeleteBoxKeySharesCmd struct {
}func (*DeleteBoxKeySharesCmd) BindAndValidate ¶
func (cmd *DeleteBoxKeySharesCmd) BindAndValidate(eCtx echo.Context) error
BindAndValidate implements request.Request.BindAndValidate
type DeleteCredentialQuery ¶
type DeleteCredentialQuery struct {
// contains filtered or unexported fields
}
DeleteCredentialQuery ...
func (*DeleteCredentialQuery) BindAndValidate ¶
func (cmd *DeleteCredentialQuery) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type DeleteCryptoActionQuery ¶
type DeleteCryptoActionQuery struct {
// contains filtered or unexported fields
}
DeleteCryptoActionQuery ...
func (*DeleteCryptoActionQuery) BindAndValidate ¶
func (query *DeleteCryptoActionQuery) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type DeleteSecretQuery ¶
type DeleteSecretQuery struct {
// contains filtered or unexported fields
}
DeleteSecretQuery ...
func (*DeleteSecretQuery) BindAndValidate ¶
func (cmd *DeleteSecretQuery) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type EnrollmentView ¶
EnrollmentView ...
type FinishTOTPEnrollmentQuery ¶
type FinishTOTPEnrollmentQuery struct { Code string `json:"code"` ID string `json:"id"` // contains filtered or unexported fields }
FinishTOTPEnrollmentQuery ...
func (*FinishTOTPEnrollmentQuery) BindAndValidate ¶
func (cmd *FinishTOTPEnrollmentQuery) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type FinishWebAuthnRegistrationQuery ¶
type FinishWebAuthnRegistrationQuery struct { RawCredential string `json:"credential"` Name string `json:"name"` // contains filtered or unexported fields }
FinishWebAuthnRegistrationQuery ...
func (*FinishWebAuthnRegistrationQuery) BindAndValidate ¶
func (cmd *FinishWebAuthnRegistrationQuery) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type FlowResetCmd ¶
type FlowResetCmd struct {
Challenge string `query:"login_challenge"`
}
FlowResetCmd ...
func (*FlowResetCmd) BindAndValidate ¶
func (cmd *FlowResetCmd) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type GenerateSecretCmd ¶
type GenerateSecretCmd struct {
// contains filtered or unexported fields
}
func (*GenerateSecretCmd) BindAndValidate ¶
func (cmd *GenerateSecretCmd) BindAndValidate(eCtx echo.Context) error
type GetBackupQuery ¶
type GetBackupQuery struct { LoginChallenge string `query:"login_challenge"` IdentityID string `query:"identity_id"` }
GetBackupQuery ...
func (*GetBackupQuery) BindAndValidate ¶
func (query *GetBackupQuery) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type GetCryptoActionQuery ¶
type GetCryptoActionQuery struct {
// contains filtered or unexported fields
}
GetCryptoActionQuery ...
func (*GetCryptoActionQuery) BindAndValidate ¶
func (query *GetCryptoActionQuery) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type GetOrgPublicRequest ¶
type GetOrgPublicRequest struct {
// contains filtered or unexported fields
}
GetOrgPublicRequest ...
func (*GetOrgPublicRequest) BindAndValidate ¶
func (req *GetOrgPublicRequest) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type GetSecretStorageQuery ¶
type GetSecretStorageQuery struct { LoginChallenge string `query:"login_challenge"` IdentityID string `query:"identity_id"` }
GetSecretStorageQuery ...
func (*GetSecretStorageQuery) BindAndValidate ¶
func (query *GetSecretStorageQuery) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type GetUserInfoCmd ¶
type GetUserInfoCmd struct { }
GetUserInfoCmd ...
func (*GetUserInfoCmd) BindAndValidate ¶
func (cmd *GetUserInfoCmd) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type IdentityNotifAckCmd ¶
type IdentityNotifAckCmd struct { StrNotifIDs string `query:"ids"` // contains filtered or unexported fields }
IdentityNotifAckCmd ...
func (*IdentityNotifAckCmd) BindAndValidate ¶
func (cmd *IdentityNotifAckCmd) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type IdentityNotifCountQuery ¶
type IdentityNotifCountQuery struct { Type null.String `query:"type"` Used null.Bool `query:"used"` // contains filtered or unexported fields }
IdentityNotifCountQuery ...
func (*IdentityNotifCountQuery) BindAndValidate ¶
func (query *IdentityNotifCountQuery) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type IdentityNotifListQuery ¶
type IdentityNotifListQuery struct { Type null.String `query:"type"` Used null.Bool `query:"used"` Offset null.Int `query:"offset"` Limit null.Int `query:"limit"` // contains filtered or unexported fields }
IdentityNotifListQuery ...
func (*IdentityNotifListQuery) BindAndValidate ¶
func (query *IdentityNotifListQuery) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type IdentityPubkeyByIdentifierQuery ¶
type IdentityPubkeyByIdentifierQuery struct {
IdentifierValue string `query:"identifier_value"`
}
IdentityPubkeyByIdentifierQuery ...
func (*IdentityPubkeyByIdentifierQuery) BindAndValidate ¶
func (query *IdentityPubkeyByIdentifierQuery) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type IdentityQuery ¶
type IdentityQuery struct {
// contains filtered or unexported fields
}
IdentityQuery ...
func (*IdentityQuery) BindAndValidate ¶
func (query *IdentityQuery) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type IdentityView ¶
type IdentityView struct { identity.Identity HasCrypto bool `json:"has_crypto"` HasTOTPSecret bool `json:"has_totp_secret"` }
IdentityView ...
type ListCredentialsQuery ¶
type ListCredentialsQuery struct {
IdentityID string `query:"identity_id" json:"-"`
}
ListCredentialsQuery ...
func (*ListCredentialsQuery) BindAndValidate ¶
func (cmd *ListCredentialsQuery) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type ListCryptoActionsQuery ¶
type ListCryptoActionsQuery struct {
// contains filtered or unexported fields
}
ListCryptoActionsQuery ...
func (*ListCryptoActionsQuery) BindAndValidate ¶
func (query *ListCryptoActionsQuery) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type ListDatatagsForIdentityQuery ¶
type ListDatatagsForIdentityQuery struct { // contains filtered or unexported fields }
ListDatatagsForIdentityQuery ...
func (*ListDatatagsForIdentityQuery) BindAndValidate ¶
func (q *ListDatatagsForIdentityQuery) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type ListDatatagsQuery ¶
type ListDatatagsQuery struct { // contains filtered or unexported fields }
ListDatatagsQuery ...
func (*ListDatatagsQuery) BindAndValidate ¶
func (q *ListDatatagsQuery) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type ListOrgAgentQuery ¶
type ListOrgAgentQuery struct { Offset null.Int `query:"offset"` Limit null.Int `query:"limit"` // contains filtered or unexported fields }
ListOrgAgentQuery ...
func (*ListOrgAgentQuery) BindAndValidate ¶
func (query *ListOrgAgentQuery) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type LoginAuthnStepCmd ¶
type LoginAuthnStepCmd struct { LoginChallenge string `json:"login_challenge"` Step authn.Step `json:"authn_step"` }
LoginAuthnStepCmd ...
func (*LoginAuthnStepCmd) BindAndValidate ¶
func (cmd *LoginAuthnStepCmd) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type LoginAuthnStepView ¶
type LoginAuthnStepView struct { Next string `json:"next,omitempty"` RedirectTo *string `json:"redirect_to,omitempty"` State *authn.State `json:"state"` // used to set session authorization cookies ForCookies struct { AccessToken string `json:"-"` ExpirationDate time.Time `json:"-"` } `json:"-"` }
LoginAuthnStepView ...
type LoginInfoQuery ¶
type LoginInfoQuery struct {
Challenge string `query:"login_challenge"`
}
LoginInfoQuery ...
func (*LoginInfoQuery) BindAndValidate ¶
func (cmd *LoginInfoQuery) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type LoginInfoView ¶
type LoginInfoView struct { Client struct { ID string `json:"id"` Name string `json:"name"` LogoURL null.String `json:"logo_uri"` TosURL null.String `json:"tos_uri"` PolicyURL null.String `json:"policy_uri"` } `json:"client"` RequestedScope []string `json:"scope"` ACRValues oidc.ClassRefs `json:"acr_values"` LoginHint string `json:"login_hint"` }
LoginInfoView bears data about current user authentication status
type LoginInitCmd ¶
type LoginInitCmd struct {
Challenge string `query:"login_challenge"`
}
LoginInitCmd ...
func (*LoginInitCmd) BindAndValidate ¶
func (cmd *LoginInitCmd) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type MigrateToSecretStorageQuery ¶
type MigrateToSecretStorageQuery = crypto.SecretStorageSetupData
type OrgCreateCmd ¶
type OrgCreateCmd struct { Name string `json:"name"` SecretStorageData *crypto.OrgSecretStorageSetupData `json:"secret_storage"` Pubkey null.String `json:"pubkey"` }
OrgCreateCmd ...
func (*OrgCreateCmd) BindAndValidate ¶
func (cmd *OrgCreateCmd) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type OrgListQuery ¶
type OrgListQuery struct {
// contains filtered or unexported fields
}
OrgListQuery ...
func (*OrgListQuery) BindAndValidate ¶
func (query *OrgListQuery) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type OrgView ¶
OrgView ...
type PartialUpdateIdentityCmd ¶
type PartialUpdateIdentityCmd struct { DisplayName string `json:"display_name"` Notifications string `json:"notifications"` Color null.String `json:"color"` identity.IdentityPublicKeys MFAMethod null.String `json:"mfa_method"` // contains filtered or unexported fields }
PartialUpdateIdentityCmd ...
func (*PartialUpdateIdentityCmd) BindAndValidate ¶
func (cmd *PartialUpdateIdentityCmd) BindAndValidate(eCtx echo.Context) error
BindAndValidate the PartialUpdateIdentityCmd
type ProfileQuery ¶
type ProfileQuery struct {
// contains filtered or unexported fields
}
ProfileQuery ...
func (*ProfileQuery) BindAndValidate ¶
func (query *ProfileQuery) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type PublicOrgView ¶
type PublicOrgView struct { ID string `json:"id"` Name string `json:"name"` LogoURL string `json:"logo_url"` }
PublicOrgView ...
type PwdParamsQuery ¶
type PwdParamsQuery struct {
// contains filtered or unexported fields
}
PwdParamsQuery ...
func (*PwdParamsQuery) BindAndValidate ¶
func (query *PwdParamsQuery) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type RecoveryCodesView ¶
type RecoveryCodesView struct {
RecoveryCodes []string `json:"recovery_codes"`
}
RecoveryCodesView ...
type RegenerateRecoveryCodesQuery ¶
type RegenerateRecoveryCodesQuery struct {
// contains filtered or unexported fields
}
RegenerateRecoveryCodesQuery ...
func (*RegenerateRecoveryCodesQuery) BindAndValidate ¶
func (cmd *RegenerateRecoveryCodesQuery) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type RequireIdentityCmd ¶
type RequireIdentityCmd struct { LoginChallenge string `json:"login_challenge"` IdentifierValue string `json:"identifier_value"` }
RequireIdentityCmd orders: - the assurance of an identifier matching the received value - a new account/identity if nothing linked to the identifier value is found - a init of confirmation code authencation method for the identity
func (*RequireIdentityCmd) BindAndValidate ¶
func (cmd *RequireIdentityCmd) BindAndValidate(eCtx echo.Context) error
BindAndValidate the RequireIdentityCmd
type RequireIdentityView ¶
type RequireIdentityView struct { Identity struct { DisplayName string `json:"display_name"` AvatarURL null.String `json:"avatar_url"` HasCrypto bool `json:"has_crypto"` } `json:"identity"` AuthnState authn.State `json:"authn_state"` }
RequireIdentityAView ...
type RootKeyShareCreateCmd ¶
type RootKeyShareCreateCmd struct {}
RootKeyShareCreateCmd ...
func (*RootKeyShareCreateCmd) BindAndValidate ¶
func (cmd *RootKeyShareCreateCmd) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type RootKeyShareQuery ¶
type RootKeyShareQuery struct {
}RootKeyShareQuery ...
func (*RootKeyShareQuery) BindAndValidate ¶
func (query *RootKeyShareQuery) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
type SSOService ¶
type SSOService struct { AuthenticationService authn.Service // contains filtered or unexported fields }
SSOService ...
func NewSSOService ¶
func NewSSOService( ids identity.Service, afs authflow.Service, authns authn.Service, rootKeyShareExpirationTime time.Duration, selfOrgID string, domain string, templates email.Renderer, emails email.Sender, ssoDB, boxDB *sql.DB, redConn *redis.Client, ) SSOService
NewSSOService ...
func (*SSOService) AcceptConsent ¶
AcceptConsent ...
func (*SSOService) AckIdentityNotification ¶
func (sso *SSOService) AckIdentityNotification(ctx context.Context, gen request.Request) (interface{}, error)
AckIdentityNotification ...
func (*SSOService) AssertAuthnStep ¶
func (sso *SSOService) AssertAuthnStep(ctx context.Context, gen request.Request) (interface{}, error)
AssertAuthnStep in a multi-factor authentication process the authentication process is stored and considering the final expected ACR: - a new authn-step is returned to the client - the login flow is accepted and a redirect url is returned
func (*SSOService) AttachCoupon ¶
AttachCoupon to a given identity
func (*SSOService) BeginTOTPEnrollment ¶
func (sso *SSOService) BeginTOTPEnrollment(ctx context.Context, gen request.Request) (interface{}, error)
BeginTOTPEnrollment returns options to register webauthn credentials
func (*SSOService) BeginWebAuthnRegistration ¶
func (sso *SSOService) BeginWebAuthnRegistration(ctx context.Context, gen request.Request) (interface{}, error)
BeginWebAuthnRegistration returns options to register webauthn credentials
func (*SSOService) ChangePassword ¶
func (sso *SSOService) ChangePassword(ctx context.Context, gen request.Request) (interface{}, error)
ChangePassword ...
func (*SSOService) CleanAuthnCookie ¶
func (sso *SSOService) CleanAuthnCookie(eCtx echo.Context, _ interface{}) error
CleanAuthnCookie
func (*SSOService) CleanOIDCCookie ¶
func (sso *SSOService) CleanOIDCCookie(eCtx echo.Context, _ interface{}) error
CleanOIDCCookie
func (*SSOService) CountIdentityNotification ¶
func (sso *SSOService) CountIdentityNotification(ctx context.Context, gen request.Request) (interface{}, error)
CountIdentityNotification ...
func (*SSOService) CountOrgAgents ¶
func (sso *SSOService) CountOrgAgents(ctx context.Context, gen request.Request) (interface{}, error)
CountOrgAgents ...
func (*SSOService) CreateOrg ¶
CreateOrg ...
func (*SSOService) CreateOrgAgent ¶
func (sso *SSOService) CreateOrgAgent(ctx context.Context, gen request.Request) (interface{}, error)
CreateOrgAgent ...
func (*SSOService) CreateRootKeyShare ¶
func (sso *SSOService) CreateRootKeyShare(ctx context.Context, gen request.Request) (interface{}, error)
CreateRootKeyShare ...
func (*SSOService) CreateSecretStorageAsymKey ¶
func (*SSOService) CreateSecretStorageBoxKeyShare ¶
func (*SSOService) DeleteAsymKeys ¶
func (*SSOService) DeleteAvatar ¶
DeleteAvatar for a given identity
func (*SSOService) DeleteBackupArchive ¶
func (sso *SSOService) DeleteBackupArchive(ctx context.Context, gen request.Request) (interface{}, error)
DeleteBackupArchive ...
func (*SSOService) DeleteBoxKeyShares ¶
func (*SSOService) DeleteCredential ¶
func (sso *SSOService) DeleteCredential(ctx context.Context, gen request.Request) (interface{}, error)
DeleteCredential after checking it is owned by the requester
func (*SSOService) DeleteCryptoAction ¶
func (sso *SSOService) DeleteCryptoAction(ctx context.Context, gen request.Request) (interface{}, error)
DeleteCryptoAction ...
func (*SSOService) DeleteSecret ¶
DeleteSecret for a given identity
func (*SSOService) FinishTOTPEnrollment ¶
func (sso *SSOService) FinishTOTPEnrollment(ctx context.Context, gen request.Request) (interface{}, error)
FinishTOTPEnrollment returns options to register webauthn credentials
func (*SSOService) FinishWebAuthnRegistration ¶
func (sso *SSOService) FinishWebAuthnRegistration(ctx context.Context, gen request.Request) (interface{}, error)
FinishWebAuthnRegistration records a webauthn credential
func (*SSOService) GenerateSecret ¶
func (sso *SSOService) GenerateSecret(ctx context.Context, genReq request.Request) (interface{}, error)
GenerateSecret for the received organization id. Requires admin accesses. - create the hydra client if not existing yet - create an identity corresponding to the org if not existing yet - update the hydra secret and return it in json
func (*SSOService) GetAccountPwdParams ¶
func (sso *SSOService) GetAccountPwdParams(ctx context.Context, gen request.Request) (interface{}, error)
GetAccountPwdParams ...
func (*SSOService) GetBackup ¶
GetBackup handles GET /accounts/:id/backup Get the account backup information
func (*SSOService) GetBackupArchiveData ¶
func (sso *SSOService) GetBackupArchiveData(ctx context.Context, gen request.Request) (interface{}, error)
GetBackupArchiveData ...
func (*SSOService) GetBackupDuringAuth ¶
func (sso *SSOService) GetBackupDuringAuth(ctx context.Context, gen request.Request) (interface{}, error)
GetBackupDuringAuth ...
func (*SSOService) GetConsentInfo ¶
func (sso *SSOService) GetConsentInfo(ctx context.Context, gen request.Request) (interface{}, error)
GetConsentInfo ...
func (*SSOService) GetCryptoAction ¶
func (sso *SSOService) GetCryptoAction(ctx context.Context, gen request.Request) (interface{}, error)
GetCryptoAction ...
func (*SSOService) GetCryptoProvision ¶
func (sso *SSOService) GetCryptoProvision(ctx context.Context, gen request.Request) (interface{}, error)
GetCryptoProvision ...
func (*SSOService) GetIdentity ¶
GetIdentity ...
func (*SSOService) GetIdentityPubkeyByIdentifier ¶
func (sso *SSOService) GetIdentityPubkeyByIdentifier(ctx context.Context, gen request.Request) (interface{}, error)
GetIdentityPubkeyByIdentifier returns a list of pubkeys corresponding to the received identifier
func (*SSOService) GetOrgPublic ¶
func (sso *SSOService) GetOrgPublic(ctx context.Context, genReq request.Request) (interface{}, error)
GetOrgPublic returns public data. No access check performed
func (*SSOService) GetProfile ¶
GetProfile ...
func (*SSOService) GetProfileConfig ¶
func (sso *SSOService) GetProfileConfig(ctx context.Context, gen request.Request) (interface{}, error)
GetProfileConfig ...
func (*SSOService) GetRootKeyShare ¶
func (sso *SSOService) GetRootKeyShare(ctx context.Context, gen request.Request) (interface{}, error)
GetRootKeyShare ...
func (*SSOService) GetSecretStorage ¶
func (*SSOService) GetSecretStorageDuringAuth ¶
func (sso *SSOService) GetSecretStorageDuringAuth(ctx context.Context, gen request.Request) (interface{}, error)
GetSecretStorageDuringAuth ...
func (*SSOService) GetUserInfo ¶
GetUserInfo from hydra Basically returns the ID Token information
func (*SSOService) InitAuthnStep ¶
func (sso *SSOService) InitAuthnStep(ctx context.Context, genReq request.Request) (interface{}, error)
InitAuthnStep is used to try to init an authentication step
func (*SSOService) InitConsent ¶
InitConsent stage for a user (a.k.a. consent flow) It interacts with hydra to know either user has already consented to share data with the RP It returns a URL user's agent should be redirected to Today, it accept directly the consent of the user with the email claim contained in the ID token
func (*SSOService) ListBackupArchives ¶
func (sso *SSOService) ListBackupArchives(ctx context.Context, _ request.Request) (interface{}, error)
ListBackupArchives ...
func (*SSOService) ListCredentials ¶
func (sso *SSOService) ListCredentials(ctx context.Context, gen request.Request) (interface{}, error)
ListCredentials for a given identity
func (*SSOService) ListCryptoActions ¶
func (sso *SSOService) ListCryptoActions(ctx context.Context, gen request.Request) (interface{}, error)
ListCryptoActions ...
func (*SSOService) ListDatatags ¶
ListDatatags ...
func (*SSOService) ListDatatagsForIdentity ¶
func (sso *SSOService) ListDatatagsForIdentity(ctx context.Context, gen request.Request) (interface{}, error)
ListDatatagsForIdentity ...
func (*SSOService) ListIdentityNotification ¶
func (sso *SSOService) ListIdentityNotification(ctx context.Context, gen request.Request) (interface{}, error)
ListIdentityNotification ...
func (*SSOService) ListIdentityOrgs ¶
func (sso *SSOService) ListIdentityOrgs(ctx context.Context, gen request.Request) (interface{}, error)
ListIdentityOrgs ...
func (*SSOService) ListOrgAgents ¶
ListOrgAgents ...
func (*SSOService) LoginInfo ¶
LoginInfo ...
func (*SSOService) LoginInit ¶
LoginInit a user authentication stage (a.k.a. login flow) It interacts with hydra and login sessions to know either user is already authenticated or not It returns a URL user's agent should be redirected to
func (*SSOService) Logout ¶
Logout the user by invalidating the authentication session
func (*SSOService) MigrateToSecretStorage ¶
func (*SSOService) PartialUpdateIdentity ¶
func (sso *SSOService) PartialUpdateIdentity(ctx context.Context, gen request.Request) (interface{}, error)
PartialUpdateIdentity to change its display name or avatar
func (*SSOService) RegenerateRecoveryCodes ¶
func (sso *SSOService) RegenerateRecoveryCodes(ctx context.Context, gen request.Request) (interface{}, error)
RegenerateRecoveryCodes returns options to register webauthn credentials
func (*SSOService) RequireIdentity ¶
func (sso *SSOService) RequireIdentity(ctx context.Context, gen request.Request) (interface{}, error)
RequireIdentity for an auth flow. This method is used to retrieve information about the identity attached to an identifier value. The identifier value is set by the end-user on the interface and we receive it here. The function returns information about the Account & Identity that corresponds to the identifier. It creates if required the pair account/identity. This method will exceptionnaly both proof the identity and confirm the login flow within the auth flow.
func (*SSOService) ResetFlow ¶
ResetFlow by redirecting to the initial request url if the request url is not found, redirect the main page of the app
func (*SSOService) SetPassword ¶
SetPassword ...
func (*SSOService) SetProfileConfig ¶
func (sso *SSOService) SetProfileConfig(ctx context.Context, gen request.Request) (interface{}, error)
SetProfileConfig ...
func (*SSOService) UpdateBackup ¶
UpdateBackup handles PUT /accounts/:id/backup Update the account backup information
type SecretStorageView ¶
type SecretStorageView struct { Secrets crypto.Secrets `json:"secrets"` AccountID string `json:"account_id"` }
SecretStorageView ...
type SetPasswordCmd ¶
type SetPasswordCmd struct { Password argon2.HashedPassword `json:"prehashed_password"` // TODO: to remove when all accounts have been migrated BackupData string `json:"backup_data"` SecretStorage crypto.SecretStorageSetupData `json:"secret_storage"` // contains filtered or unexported fields }
SetPasswordCmd ...
func (*SetPasswordCmd) BindAndValidate ¶
func (cmd *SetPasswordCmd) BindAndValidate(eCtx echo.Context) error
BindAndValidate ...
Source Files
¶
- account_backup.go
- account_password.go
- auth_backup.go
- auth_secret_storage.go
- authentication_step.go
- backup_archive.go
- crypto_action.go
- crypto_provisions.go
- datatag.go
- flow_consent.go
- flow_login.go
- flow_logout.go
- flow_reset.go
- get_user_info.go
- identity.go
- identity_notifications.go
- organization.go
- organization_agent.go
- profile.go
- root_key_share_create.go
- secret_storage.go
- sso.go
- totp.go
- webauthn.go