mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-10 22:43:40 +00:00
59 lines
1.4 KiB
Go
59 lines
1.4 KiB
Go
|
package model
|
||
|
|
||
|
import (
|
||
|
"github.com/caos/zitadel/internal/auth_request/model"
|
||
|
es_models "github.com/caos/zitadel/internal/eventstore/models"
|
||
|
)
|
||
|
|
||
|
type WebAuthNToken struct {
|
||
|
es_models.ObjectRoot
|
||
|
|
||
|
WebAuthNTokenID string
|
||
|
CredentialCreationData []byte
|
||
|
State MFAState
|
||
|
Challenge string
|
||
|
AllowedCredentialIDs [][]byte
|
||
|
UserVerification UserVerificationRequirement
|
||
|
KeyID []byte
|
||
|
PublicKey []byte
|
||
|
AttestationType string
|
||
|
AAGUID []byte
|
||
|
SignCount uint32
|
||
|
WebAuthNTokenName string
|
||
|
}
|
||
|
|
||
|
type WebAuthNLogin struct {
|
||
|
es_models.ObjectRoot
|
||
|
|
||
|
CredentialAssertionData []byte
|
||
|
Challenge string
|
||
|
AllowedCredentialIDs [][]byte
|
||
|
UserVerification UserVerificationRequirement
|
||
|
*model.AuthRequest
|
||
|
}
|
||
|
|
||
|
type WebAuthNMethod int32
|
||
|
|
||
|
const (
|
||
|
WebAuthNMethodUnspecified WebAuthNMethod = iota
|
||
|
WebAuthNMethodU2F
|
||
|
WebAuthNMethodPasswordless
|
||
|
)
|
||
|
|
||
|
type UserVerificationRequirement int32
|
||
|
|
||
|
const (
|
||
|
UserVerificationRequirementUnspecified UserVerificationRequirement = iota
|
||
|
UserVerificationRequirementRequired
|
||
|
UserVerificationRequirementPreferred
|
||
|
UserVerificationRequirementDiscouraged
|
||
|
)
|
||
|
|
||
|
type AuthenticatorAttachment int32
|
||
|
|
||
|
const (
|
||
|
AuthenticatorAttachmentUnspecified AuthenticatorAttachment = iota
|
||
|
AuthenticatorAttachmentPlattform
|
||
|
AuthenticatorAttachmentCrossPlattform
|
||
|
)
|