Skip to content

Commit

Permalink
fix SSO URL parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-ext-simba-jl committed Oct 22, 2023
1 parent c2f05b5 commit 91cbfa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion authokta.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 91cbfa9

Please sign in to comment.