Skip to content

Is it possible to check a permission as at a given time? #153

Answered by rhamzeh
velmohan asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @velmohan - it's not something supported by the engine at run-time. As in you will not be able to ask the running server that and get the answer you expect.

Whether we do introduce it in the future is an open question - we certainly have all the data needed to do so.

But what you are asking is still possible, if you are willing to do some work.

Before I get into that I will briefly explain the different components of OpenFGA:

  • (A) Authorization Model
  • (B) Relationship Tuples

For (A), you are able to query at runtime whether someone has access based on any model in your store. Each model is immutable, so it cannot be modified once created.
The intention behind immutable models isn't sp…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@velmohan
Comment options

Answer selected by velmohan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Core API Relating to the core OpenFGA service or API
2 participants