RabbitMQ backend for HTTP authorization plugin based on MongoDB. See
rabbitmq-auth-backend-http
for more details.
The main purpose of this project was to learn a bit of Go programming language.
Run go build ./cmd/rmqbe
to build the application. Binary file will
be named ./rmqbe
.
Run go test ./...
to run all tests.
Run application with ./rmqbe
and browse http://localhost:8000
.
endpoint | parameters |
---|---|
POST /user |
username password |
POST /vhost |
username vhost ip |
POST /resource |
username vhost resource name permission |
POST /topic |
username vhost resource name permission routing_key |
Permission {
resource: String,
name: String,
permission: String,
routing_key: String?
}
User {
_id: ObjectId,
username: String,
password: BCrypt,
vhosts: String[],
permissions: Permission[]
}