Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define how a custom action is defined. #40

Open
PieterKas opened this issue Jul 11, 2023 · 1 comment
Open

Define how a custom action is defined. #40

PieterKas opened this issue Jul 11, 2023 · 1 comment

Comments

@PieterKas
Copy link
Collaborator

https://github.com/SGNL-ai/authzapi/blob/5937da2ca3a3ed189bb066ce2f75c9bd5e0a380d/authorization-api-1_0.md?plain=1#L177C1-L177C1

It would be good to include details of how the extensibility might work.

@tr33
Copy link

tr33 commented Nov 6, 2023

A simple "action" can either be an abstract reference by name, represented as a simple string - e.g. "GET", "READ", "DELETE".
Or it can be expressed as a complex structure, describing a transaction function with arbitrary parameters and values.
Example 1: Bank payout transaction with an amount and currency

subject = "bank customer A" , resource = "Bank Account 123"
Action = Payout-Transaction (amount = 500, currency = Eur, payee = "Bank Account 789") 

Example 2: set the quota of a resource to "500 Gigabytes"

subject = "user B" , resource = "users home folder"
Action = set-quota (value = 500, unit = "GB") 

grafik

The abstraction of an action could be defined as a "complex space described by attributes and/or bounding parameters".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants