Reputation: 1
I need help! I am trying manager access of api gateway by cognito.
PROBLEM: I still can access this api, why? How Cognito auth
work in api gateway?
Upvotes: 0
Views: 1152
Reputation: 452
up until dec-2017 cognito user pools authorization method was actually performing authentication and not authorization. There were no granular entitlements available and any authenticated user (presenting identity token
) could invoke an endpoint resource protected with cognito user pool. For actual authorization (granular entitlements) you had to use either IAM or custom authorizers.
As per this announcement Cognito can now also pass access tokens
with oauth 2 scopes. I personally haven't tried this one yet but I believe this should solve your question.
Upvotes: 1