Skip to content

Commit

Permalink
feat: return ARNs as ResourceID instead of name
Browse files Browse the repository at this point in the history
  • Loading branch information
oussamaca committed Feb 9, 2023
1 parent 8ba3561 commit f8dcc44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aws/cognito/cognitoPoolUnauthenticated.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ func CheckIfCognitoAllowsUnauthenticated(checkConfig commons.CheckConfig, cognit
for _, c := range cognitoPools {
if c.AllowUnauthenticatedIdentities {
Message := "Cognito allows unauthenticated users on " + *c.IdentityPoolName
result := commons.Result{Status: "FAIL", Message: Message, ResourceID: *c.IdentityPoolName}
result := commons.Result{Status: "FAIL", Message: Message, ResourceID: *c.IdentityPoolId}
check.AddResult(result)
} else {
Message := "Cognito does not allow unauthenticated users on " + *c.IdentityPoolName
result := commons.Result{Status: "OK", Message: Message, ResourceID: *c.IdentityPoolName}
result := commons.Result{Status: "OK", Message: Message, ResourceID: *c.IdentityPoolId}
check.AddResult(result)
}
}
Expand Down

0 comments on commit f8dcc44

Please sign in to comment.