You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An authorization model may define a condition, and a context parameter can be supplied to the check request as part of the authorization criteria. For example, a condition could exist that specifies that user:anne has viewer relationship to document:roadmap only if the current time is within 10 minutes of the time access was granted.
When making an FGA check, contextual tuples and/or a context parameter can be passed for more advanced authorization scenarios.
Contextual tuples
Contextual tuples can be sent in a check request and will be part of the authorization evaluation as if they exist they in the store.
For example,
user:123
is a member of themarketing
group, and themarketing
group has been granted theviewer
relationship fordocument:roadmap
.We can send conditional tuples on the request to inform the groups to which
user:123
belongs (e.g., from agroups
claim):Conext with conditions
An authorization model may define a condition, and a
context
parameter can be supplied to the check request as part of the authorization criteria. For example, a condition could exist that specifies thatuser:anne
hasviewer
relationship todocument:roadmap
only if the current time is within 10 minutes of the time access was granted.Example model:
Write a tuple with a condition:
Send a check request including the
context
parameter:References
The text was updated successfully, but these errors were encountered: