| 210 | } |
| 211 | |
| 212 | func OAuthStats(org string, appinfo []string) Issue { |
| 213 | return Issue{ |
| 214 | ID: STATS_OAUTH_PERMS, |
| 215 | Name: AvailableChecks[STATS_OAUTH_PERMS], |
| 216 | Severity: severity.Informational, |
| 217 | Category: category.LeastPrivilege, |
| 218 | Description: fmt.Sprintf( |
| 219 | "OAuth apps for '%s': %s", |
| 220 | org, |
| 221 | strings.Join(appinfo, ", "), |
| 222 | ), |
| 223 | Resources: []resource.Resource{ |
| 224 | { |
| 225 | ID: org, |
| 226 | Kind: resource.Organization, |
| 227 | }, |
| 228 | }, |
| 229 | Remediation: "Please ensure the OAuth Apps installed in your organization meet your expectations", |
| 230 | } |
| 231 | } |