tokusumi / fastapi-cloudauth

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

Clarification on Role Based Access Control (RBAC) using firebase auth #71

Open masus04 opened 2 years ago

masus04 commented 2 years ago

Thank you for your work on this library, it simplified the standard use case of authentication for my API by a lot.

However, the documentation on RBAC and verifying claims is currently rather minimal and I was not able to figure out how to implement it.

Specifically I do not understand the following line: Use as (auth is this instanse and app is fastapi.FastAPI instanse):

What exactly is auth an instance of for the Firebase case and how can I get it?

Once solved, I can create a PR with some additional explication to the readme for clarification.

masus04 commented 2 years ago

Looking deeper into this, I assume, the Firebase(ScopedAuth) class has not yet been implemented.

Is this correct and if so, are there any plans on doing so or how can I help?