volantmq icon indicating copy to clipboard operation
volantmq copied to clipboard

How to implement Auth and ACL backends

Open shamanis opened this issue 6 years ago • 6 comments

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

Is this possible?

shamanis avatar Jul 31 '18 13:07 shamanis

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 avatar Jul 31 '18 17:07 troian

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

troian avatar Jul 31 '18 17:07 troian

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!

shamanis avatar Aug 01 '18 03:08 shamanis

I'll make an example this weekend

troian avatar Aug 01 '18 08:08 troian

is still relevant

shamanis avatar Aug 08 '18 05:08 shamanis

Yep, working on that

troian avatar Aug 08 '18 08:08 troian