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

How to implement Auth and ACL backends #100

Open
shamanis opened this issue Jul 31, 2018 · 6 comments
Open

How to implement Auth and ACL backends #100

shamanis opened this issue Jul 31, 2018 · 6 comments

Comments

@shamanis
Copy link

shamanis commented Jul 31, 2018

Sorry, I could not understand how to implement it.
In my scheme Users and ACLs must be in database.

Is this possible?

@troian
Copy link
Member

troian commented Jul 31, 2018

It can be done by the plugin
Take a look some examples here https://github.com/VolantMQ/vlapi
Basically, you need to implement this interface https://github.com/VolantMQ/vlapi/blob/b3be82bbdf0c4b07a6d4d6b80ece6b26413ae19c/plugin/auth/auth.go#L55

@troian
Copy link
Member

troian commented Jul 31, 2018

But yeah, needs a nice example. Challenge to help?

@shamanis
Copy link
Author

shamanis commented Aug 1, 2018

As I understand it is necessary to implement interfaces IFace and Permissions.
I do not understand how to apply this implementation in the future.

I would like to see an example or docs.

Thx!

@troian
Copy link
Member

troian commented Aug 1, 2018

I'll make an example this weekend

@shamanis
Copy link
Author

shamanis commented Aug 8, 2018

is still relevant

@troian
Copy link
Member

troian commented Aug 8, 2018

Yep, working on that

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