fastapi-cloudauth icon indicating copy to clipboard operation
fastapi-cloudauth copied to clipboard

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

Open masus04 opened this issue 2 years ago • 1 comments

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 avatar Apr 07 '22 08:04 masus04

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?

masus04 avatar Apr 07 '22 09:04 masus04