From 91cbfa9d6cc1bcc954979705494862a6c7cc28a7 Mon Sep 17 00:00:00 2001 From: Joyce Ling <115662568+sfc-gh-ext-simba-jl@users.noreply.github.com> Date: Sat, 21 Oct 2023 21:48:29 -0700 Subject: [PATCH] fix SSO URL parsing --- authokta.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authokta.go b/authokta.go index 3e3f3c518..1422688f5 100644 --- a/authokta.go +++ b/authokta.go @@ -111,7 +111,7 @@ func authenticateBySAML( if tokenURL, err = url.Parse(respd.Data.TokenURL); err != nil { return nil, fmt.Errorf("failed to parse token URL. %v", respd.Data.TokenURL) } - if ssoURL, err = url.Parse(respd.Data.TokenURL); err != nil { + if ssoURL, err = url.Parse(respd.Data.SSOURL); err != nil { return nil, fmt.Errorf("failed to parse ssoURL URL. %v", respd.Data.SSOURL) } if !isPrefixEqual(oktaURL, ssoURL) || !isPrefixEqual(oktaURL, tokenURL) {