AWS Api Gateway Authorizer + Cognito User Pool Not Working {“message”: “Unauthorized”}

后端 未结 7 1082
挽巷
挽巷 2020-12-14 09:30

I am trying to use aws api gateway authorizer with cognito user pool. It is working fine when i test using aws api gateway console.

But when i try enabling the auth

7条回答
  •  甜味超标
    2020-12-14 10:03

    If you are not checking scope at OAuth Scopes in method execution block of API gateway it will only take id-token.

    Once you will have set OAuth scope restriction on request it will start taking access token automatically.

提交回复
热议问题