AWS ApiGateway Custom athorization with firebase

2019-07-30 17:05发布

I will explain my use case. I have a web app. first app is login to firebase then it return token. i want to use token which issues by firebase to access lambda function through api gateway. so need mechanism to validate firebase token in aws apigateway. could you give some suggestion.

enter image description here

1条回答
爷的心禁止访问
2楼-- · 2019-07-30 17:22

You have to write custom Authorizers lambda function for validate your firebase tokens.

This lambda function hit before execute your lambda function.

following diagram explain how it's work

enter image description here

For write custom Authorizers function follow this reference. For token validation you can use firebase sdk and its references.

查看更多
登录 后发表回答