From d664c4079482af213f46066d1f74a6e4869d5dc1 Mon Sep 17 00:00:00 2001 From: ismferd Date: Mon, 14 Dec 2020 08:46:11 +0100 Subject: [PATCH 1/3] adding ChallengeQuestionAnswer input name --- pkg/provider/adfs2/rsa.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/provider/adfs2/rsa.go b/pkg/provider/adfs2/rsa.go index 436a59e72..5d7f5b0ae 100644 --- a/pkg/provider/adfs2/rsa.go +++ b/pkg/provider/adfs2/rsa.go @@ -49,6 +49,7 @@ func (ac *Client) authenticateRsa(loginDetails *creds.LoginDetails) (string, err token := prompter.Password("Enter passcode") + passcodeForm.Set("ChallengeQuestionAnswer", token) passcodeForm.Set("Passcode", token) passcodeForm.Del("submit") From 67c1f754a42e82d8af8514a6b33c9814659a110a Mon Sep 17 00:00:00 2001 From: ismferd Date: Mon, 14 Dec 2020 08:59:33 +0100 Subject: [PATCH 2/3] adding ChallengeQuestionAnswer to second the question --- pkg/provider/adfs2/rsa.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/provider/adfs2/rsa.go b/pkg/provider/adfs2/rsa.go index 5d7f5b0ae..4b4acc4c2 100644 --- a/pkg/provider/adfs2/rsa.go +++ b/pkg/provider/adfs2/rsa.go @@ -66,6 +66,7 @@ func (ac *Client) authenticateRsa(loginDetails *creds.LoginDetails) (string, err if rsaForm.Get("SAMLResponse") == "" { nextCode := prompter.Password("Enter nextCode") + rsaForm.Set("ChallengeQuestionAnswer", token) rsaForm.Set("NextCode", nextCode) rsaForm.Del("submit") From f7e90008f483e767cb6b4ee2d721bb7d856706ba Mon Sep 17 00:00:00 2001 From: ismferd Date: Mon, 14 Dec 2020 09:38:23 +0100 Subject: [PATCH 3/3] gofmt --- pkg/provider/adfs2/rsa.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/provider/adfs2/rsa.go b/pkg/provider/adfs2/rsa.go index 4b4acc4c2..f5bbdd44e 100644 --- a/pkg/provider/adfs2/rsa.go +++ b/pkg/provider/adfs2/rsa.go @@ -66,7 +66,7 @@ func (ac *Client) authenticateRsa(loginDetails *creds.LoginDetails) (string, err if rsaForm.Get("SAMLResponse") == "" { nextCode := prompter.Password("Enter nextCode") - rsaForm.Set("ChallengeQuestionAnswer", token) + rsaForm.Set("ChallengeQuestionAnswer", token) rsaForm.Set("NextCode", nextCode) rsaForm.Del("submit")