fastapi-permissions
fastapi-permissions copied to clipboard
row level security for FastAPI framework
I create a pydantic model following the example described in package readme: class SuperUser(BaseModel): username: Optional[str] def principals(self): return ["group:admin"] But when I call **get_active_principals** function, it does not append...
Hi, First of all, thanks for making this library. I'm on my first FastAPI project right now and we're really liking the library so far. However, we do run into...
Implements polymorphic principals using dataclasses instead of colon-delimited strings, resolving #6. This offers the advantage of more clear semantic separation between the method and value of a principal, whilst still...
Fixes #7.
Some of the links to FastAPIs documentation were dead. This PR fixes that.
Hi @holgi , First, thanks for sharing this package! When this is the response of `show_items` endpoint in the example. I login with `alice`, and I don't understand why `view`...
Firstly, thanks so much for your work on this project! Just a feature request: that principals are not expected to have a specific type (currently, they are typed as `str`),...
Just to say thanks for putting this up on github! I was looking for a simple elegant way to add permissions to FastAPI and very glad to have found this...