forked from mirror/gitea
35c3553870
Migrate from U2F to Webauthn Co-authored-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
14 lines
645 B
Go
Vendored
14 lines
645 B
Go
Vendored
package webauthn
|
|
|
|
import "github.com/duo-labs/webauthn/protocol"
|
|
|
|
// SessionData is the data that should be stored by the Relying Party for
|
|
// the duration of the web authentication ceremony
|
|
type SessionData struct {
|
|
Challenge string `json:"challenge"`
|
|
UserID []byte `json:"user_id"`
|
|
AllowedCredentialIDs [][]byte `json:"allowed_credentials,omitempty"`
|
|
UserVerification protocol.UserVerificationRequirement `json:"userVerification"`
|
|
Extensions protocol.AuthenticationExtensions `json:"extensions,omitempty"`
|
|
}
|