From bf0ca6e0a706775c0fd189d68f7efe14cbf960d7 Mon Sep 17 00:00:00 2001 From: kristopher watts Date: Mon, 27 Sep 2021 09:31:43 -0600 Subject: [PATCH] updating the password login form to check the query parameter for the requestId too --- .gitignore | 1 + idp/password.go | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 9b96968f..ba65853c 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ node_modules/ certs/ .vscode/ dist/ +lite-idp diff --git a/idp/password.go b/idp/password.go index decdabbd..7c2568bc 100644 --- a/idp/password.go +++ b/idp/password.go @@ -78,7 +78,11 @@ func (i *IDP) DefaultPasswordLoginHandler() http.HandlerFunc { if err != nil { return err } - requestID := r.Form.Get("requestId") + var requestID string + if requestID = r.Form.Get("requestId"); requestID == `` { + //try pulling it from a query parameter + requestID = r.URL.Query().Get("requestId") + } data, err := i.TempCache.Get(requestID) if err != nil { return err