Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
534 views
in Technique[技术] by (71.8m points)

reactjs - React, spring boot, aws cognito and aws api gateway integration

I am new to the aws environment and I need your help.

I'm working on a project with:

frontend: an react app deployed on S3

backend: spring boot on EC2 and the rest API end points are published on AWS API gateway

Requirement: We have to do role based user authorization, based on the user logged in the react dashboard menu will be built dynamically, so every user will have role privileges.

I know the user auth request from react app will be sent to cognito and now here we need to send role privileges to the react app to built the dashboard menu. Where do we store this user role privileges ? Can we store them in cognito or do we need to put them in database ? If we put them in database than How I send them to react app ? Does AWS API gateway can be used here ?

Who verifies the jwt token ? can API gateway verify the jwt token with cognito or do we need to implement it in Spring Boot App.

Please help me!

question from:https://stackoverflow.com/questions/65623570/react-spring-boot-aws-cognito-and-aws-api-gateway-integration

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...