tokusumi / fastapi-cloudauth

Simple integration between FastAPI and cloud authentication services (AWS Cognito, Auth0, Firebase Authentication).
MIT License
323 stars 35 forks source link

How can I get the groups/scopes a user is associated in Cognito? #79

Closed DEADSEC-SECURITY closed 1 year ago

DEADSEC-SECURITY commented 1 year ago

So I implemented my apis with Cognito and this library and everything works really well but I have a couple requests that I wanted to chose what data to return based on the scope of the user. For example if the user scope is admin return all entries but if not only return the entries for that user.

Is this possible with this library?

walter-0 commented 8 months ago

@DEADSEC-SECURITY Did you ever solve this? If so, what was the solution?