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

Where can i find an example of how used Security/Authorization ? #28

Open
RustamGulamov opened this issue Apr 26, 2021 · 1 comment
Open
Labels
question A question regarding the framework

Comments

@RustamGulamov
Copy link

RustamGulamov commented Apr 26, 2021

I don't quite understand how Authorization works. What are permission , contextId, resourceId.
The documentation contains very short examples.
Maybe you have some examples of how to use Authorization/Permission/Context/Resource ?

@martinzima
Copy link
Member

Hello Rustam,

there is some information on authorization: in the documentation, but I admit its maybe not super clear on a few things. Simply put, a Permission instance defines that a user can do something (PermissionType), optionally also limited to a certain scope (ContextId, ResourceId). The interpretation of both ContextId and ResourceId is actually quite free and depends on your needs (you might not need it at all).

Best regards,
MZ.

I think I might add a more complete example with authorization in the future.

@martinzima martinzima added the question A question regarding the framework label Apr 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question A question regarding the framework
Projects
None yet
Development

No branches or pull requests

2 participants