Skip to content

Commit 765af9b

Browse files
authored
Rename 'whitelist' to 'allowlist' in oauth class selectors (#2488)
1 parent 330d92d commit 765af9b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

scrape/apps.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func (c *Client) AppRestrictionsEnabled(org string) (bool, error) {
2828
return false, err
2929
}
3030

31-
s := doc.Find(".oauth-application-whitelist svg").First()
31+
s := doc.Find(".oauth-application-allowlist svg").First()
3232
if s.Length() == 0 {
3333
return false, errors.New("unable to find expected markup")
3434
}
@@ -52,7 +52,7 @@ func (c *Client) ListOAuthApps(org string) ([]OAuthApp, error) {
5252
}
5353

5454
var apps []OAuthApp
55-
doc.Find(".oauth-application-whitelist ul > li").Each(func(i int, s *goquery.Selection) {
55+
doc.Find(".oauth-application-allowlist ul > li").Each(func(i int, s *goquery.Selection) {
5656
var app OAuthApp
5757
app.Name = s.Find(".request-info strong").First().Text()
5858
app.Description = s.Find(".request-info .application-description").Text()

scrape/testdata/access-restrictions-disabled.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<div class="col-9">
1414

15-
<div class="boxed-group oauth-application-whitelist ">
15+
<div class="boxed-group oauth-application-allowlist ">
1616
<h3>Third-party application access policy</h3>
1717
<div class="boxed-group-inner">
1818
<p>

scrape/testdata/access-restrictions-enabled.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
<div class="col-9">
1616

17-
<div class="boxed-group oauth-application-whitelist is-selectable">
17+
<div class="boxed-group oauth-application-allowlist is-selectable">
1818
<h3>Third-party application access policy</h3>
1919
<div class="boxed-group-inner">
2020
<p>

0 commit comments

Comments
 (0)