summaryrefslogtreecommitdiff
path: root/internal/handlers/types.go
diff options
context:
space:
mode:
authorJames Elliott <james-d-elliott@users.noreply.github.com>2025-02-22 18:25:42 +1100
committerGitHub <noreply@github.com>2025-02-22 07:25:42 +0000
commit9c718b39888bbaafdbc623acd0efd2138b6b8068 (patch)
treee189c54c06912763952eeb0ab081466531bd1cb8 /internal/handlers/types.go
parentf67097c6cb7fe14ccac071b37d6323e17b377506 (diff)
feat(oidc): prompt parameter support (#8080)
This adds formal support for the prompt parameter. Closes #2596 Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
Diffstat (limited to 'internal/handlers/types.go')
-rw-r--r--internal/handlers/types.go11
1 files changed, 10 insertions, 1 deletions
diff --git a/internal/handlers/types.go b/internal/handlers/types.go
index 399d4066a..377b158b9 100644
--- a/internal/handlers/types.go
+++ b/internal/handlers/types.go
@@ -94,15 +94,24 @@ type bodyPreferred2FAMethod struct {
type bodyFirstFactorRequest struct {
Username string `json:"username" valid:"required"`
Password string `json:"password" valid:"required"`
- TargetURL string `json:"targetURL"`
Workflow string `json:"workflow"`
WorkflowID string `json:"workflowID"`
+ TargetURL string `json:"targetURL"`
RequestMethod string `json:"requestMethod"`
KeepMeLoggedIn *bool `json:"keepMeLoggedIn"`
// KeepMeLoggedIn: Cannot require this field because of https://github.com/asaskevich/govalidator/pull/329
// TODO(c.michaud): add required validation once the above PR is merged.
}
+// bodyFirstFactorRequest represents the JSON body received by the endpoint.
+type bodyFirstFactorReauthenticateRequest struct {
+ Password string `json:"password" valid:"required"`
+ Workflow string `json:"workflow"`
+ WorkflowID string `json:"workflowID"`
+ TargetURL string `json:"targetURL"`
+ RequestMethod string `json:"requestMethod"`
+}
+
// checkURIWithinDomainRequestBody represents the JSON body received by the endpoint checking if an URI is within
// the configured domain.
type checkURIWithinDomainRequestBody struct {