diff --git a/pkg/accessreview/drivers/okta.go b/pkg/accessreview/drivers/okta.go index 676edd2aa..cc75feef3 100644 --- a/pkg/accessreview/drivers/okta.go +++ b/pkg/accessreview/drivers/okta.go @@ -175,7 +175,7 @@ func (d *OktaDriver) nextPageURL(linkHeader string) (string, error) { u, err := url.Parse(raw) if err != nil { - return "", fmt.Errorf("cannot parse okta next-page link") + return "", fmt.Errorf("cannot parse okta next-page link: %w", err) } // Pin the next page to the same https origin: reject a scheme downgrade diff --git a/pkg/connector/okta.go b/pkg/connector/okta.go index bae857c03..fad6701a1 100644 --- a/pkg/connector/okta.go +++ b/pkg/connector/okta.go @@ -22,8 +22,6 @@ import ( "strings" ) -const OktaProvider = "OKTA" - // oktaDomainRe matches a dotted DNS hostname (at least two labels; each // label 1-63 chars of [a-z0-9-], not starting or ending with a hyphen). // Okta supports both *.okta.com / *.oktapreview.com orgs and fully custom