diff --git a/scrape/apps.go b/scrape/apps.go index e8d810db27..0ac16c750a 100644 --- a/scrape/apps.go +++ b/scrape/apps.go @@ -28,7 +28,7 @@ func (c *Client) AppRestrictionsEnabled(org string) (bool, error) { return false, err } - s := doc.Find(".oauth-application-whitelist svg").First() + s := doc.Find(".oauth-application-allowlist svg").First() if s.Length() == 0 { return false, errors.New("unable to find expected markup") } @@ -52,7 +52,7 @@ func (c *Client) ListOAuthApps(org string) ([]OAuthApp, error) { } var apps []OAuthApp - doc.Find(".oauth-application-whitelist ul > li").Each(func(i int, s *goquery.Selection) { + doc.Find(".oauth-application-allowlist ul > li").Each(func(i int, s *goquery.Selection) { var app OAuthApp app.Name = s.Find(".request-info strong").First().Text() app.Description = s.Find(".request-info .application-description").Text() diff --git a/scrape/testdata/access-restrictions-disabled.html b/scrape/testdata/access-restrictions-disabled.html index a5fbe34cab..e5431e14c6 100644 --- a/scrape/testdata/access-restrictions-disabled.html +++ b/scrape/testdata/access-restrictions-disabled.html @@ -12,7 +12,7 @@
-
+

Third-party application access policy

diff --git a/scrape/testdata/access-restrictions-enabled.html b/scrape/testdata/access-restrictions-enabled.html index 4b8d1db816..d5b869c79d 100644 --- a/scrape/testdata/access-restrictions-enabled.html +++ b/scrape/testdata/access-restrictions-enabled.html @@ -14,7 +14,7 @@

-
+

Third-party application access policy