summaryrefslogtreecommitdiff
path: root/internal/handlers/types.go
diff options
context:
space:
mode:
authorJames Elliott <james-d-elliott@users.noreply.github.com>2023-10-27 20:20:29 +1100
committerJames Elliott <james-d-elliott@users.noreply.github.com>2024-03-04 20:28:24 +1100
commitc0dbdd97ab2ac580e3da07a0137dbc7a1b9c9b83 (patch)
tree57daff9cacd6a06524a87e40d9ee5d1dbcb483d3 /internal/handlers/types.go
parent358b6679b545d5227a8d5bd2c9e0f95e59ebc4f7 (diff)
feat(web): multiple webauthn credential registration
This implements multiple WebAuthn Credential registrations by means of a generic user settings UI. Closes #275, Closes #4366 Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com> Co-authored-by: Clément Michaud <clement.michaud34@gmail.com> Co-authored-by: Stephen Kent <smkent@smkent.net> Co-authored-by: Amir Zarrinkafsh <nightah@me.com>
Diffstat (limited to 'internal/handlers/types.go')
-rw-r--r--internal/handlers/types.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/internal/handlers/types.go b/internal/handlers/types.go
index 986735499..721d2f399 100644
--- a/internal/handlers/types.go
+++ b/internal/handlers/types.go
@@ -1,6 +1,7 @@
package handlers
import (
+ "encoding/json"
"net/http"
"net/url"
@@ -35,6 +36,16 @@ type bodySignWebAuthnRequest struct {
TargetURL string `json:"targetURL"`
Workflow string `json:"workflow"`
WorkflowID string `json:"workflowID"`
+
+ Response json.RawMessage `json:"response"`
+}
+
+type bodyRegisterWebAuthnPUTRequest struct {
+ Description string `json:"description"`
+}
+
+type bodyEditWebAuthnCredentialRequest struct {
+ Description string `json:"description"`
}
// bodySignDuoRequest is the model of the request body of Duo 2FA authentication endpoint.