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

Dynamic authorization #13

Open
haizaar opened this issue Aug 30, 2018 · 5 comments
Open

Dynamic authorization #13

haizaar opened this issue Aug 30, 2018 · 5 comments

Comments

@haizaar
Copy link

haizaar commented Aug 30, 2018

Good day,

I'm using WAMP for our project where dynamic authorization is a must. They way crossbar.io implements it is very good.

Are there any plans to implement it in Wiola? (I'm very interested in Wiola because so far it's the only WAMP router that scales out)

@KSDaemon
Copy link
Owner

KSDaemon commented Sep 1, 2018 via email

@haizaar
Copy link
Author

haizaar commented Sep 8, 2018

Hi there,

Thanks for answering while on vacation (and I'll not expect an answer on this one any soon either :)

From what I have searched in wiola configs (and a bit of code) only authentication is supported (i.e. identification of a use during session establishment) and not authorization (i.e. verifying permissions for each of the publish/subscribe/register/call operations later on).

Do you indeed mean to say that authorization is supported as well?

Thanks,
Zaar

@KSDaemon
Copy link
Owner

Hi @haizaar again! :)
Well, answer for your question is 'yes' and 'no' :)
I'll try to explain:
authorization as you mean is not supported.
But you can use combination of authorization (setting up auth id and roles) and trust levels (e.g. Dymanic configuration) for setting trust level for calls and publishing

@haizaar
Copy link
Author

haizaar commented Sep 21, 2018

Let me elaborate my scenario to make sure we are on the same page: In my system everything is dynamic - there are two types of WAMP clients - "users" and "devices". We dynamically assign relations of what APIs on which devices each user can call. In my POC with crossbar I simply implemented an external authenticator that looks ups the rules in the external database and makes decisions.
That is, we have only two roles - for devices and users, and authorizer decides the rest.

Is it possible to support such scenario with Wiola?

@KSDaemon
Copy link
Owner

Sorry for late answer. No, unfortunately right now this is not supported.
May be later... I'll mark it as new feature.

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

No branches or pull requests

2 participants