2023-05-24 10:22:00 +00:00
|
|
|
package domain
|
|
|
|
|
|
|
|
import "io"
|
|
|
|
|
|
|
|
type PasskeyURLData struct {
|
|
|
|
UserID string
|
|
|
|
OrgID string
|
|
|
|
CodeID string
|
|
|
|
Code string
|
|
|
|
}
|
|
|
|
|
|
|
|
// RenderPasskeyURLTemplate parses and renders tmpl.
|
|
|
|
// userID, orgID, codeID and code are passed into the [PasskeyURLData].
|
|
|
|
func RenderPasskeyURLTemplate(w io.Writer, tmpl, userID, orgID, codeID, code string) error {
|
|
|
|
return renderURLTemplate(w, tmpl, &PasskeyURLData{userID, orgID, codeID, code})
|
|
|
|
}
|
|
|
|
|
|
|
|
type PasskeyCodeDetails struct {
|
|
|
|
*ObjectDetails
|
|
|
|
CodeID string
|
|
|
|
Code string
|
|
|
|
}
|
|
|
|
|
2023-06-15 05:32:40 +00:00
|
|
|
type WebAuthNRegistrationDetails struct {
|
2023-05-24 10:22:00 +00:00
|
|
|
*ObjectDetails
|
|
|
|
|
2023-06-15 05:32:40 +00:00
|
|
|
ID string
|
2023-05-24 10:22:00 +00:00
|
|
|
PublicKeyCredentialCreationOptions []byte
|
|
|
|
}
|