MyGit

emqx/emqx-auth-http

Fork: 47 Star: 43 (更新于 2024-12-07 15:05:34)

license: Apache-2.0

Language: Erlang .

EMQX HTTP Authentication/ACL Plugin

官方网址 GitHub网址

emqx_auth_http

EMQX HTTP Auth/ACL Plugin

Build

make && make tests

Configure the Plugin

File: etc/emqx_auth_http.conf

##--------------------------------------------------------------------
## Authentication request.
##
## Variables:
##  - %u: username
##  - %c: clientid
##  - %a: ipaddress
##  - %r: protocol
##  - %P: password
##  - %C: common name of client TLS cert
##  - %d: subject of client TLS cert
##
## Value: URL
auth.http.auth_req = http://127.0.0.1:8080/mqtt/auth
## Value: post | get | put
auth.http.auth_req.method = post
## Value: Params
auth.http.auth_req.params = clientid=%c,username=%u,password=%P

##--------------------------------------------------------------------
## Superuser request.
##
## Variables:
##  - %u: username
##  - %c: clientid
##  - %a: ipaddress
##  - %r: protocol
##  - %P: password
##  - %C: common name of client TLS cert
##  - %d: subject of client TLS cert
##
## Value: URL
auth.http.super_req = http://127.0.0.1:8080/mqtt/superuser
## Value: post | get | put
auth.http.super_req.method = post
## Value: Params
auth.http.super_req.params = clientid=%c,username=%u

##--------------------------------------------------------------------
## ACL request.
##
## Variables:
##  - %A: 1 | 2, 1 = sub, 2 = pub
##  - %u: username
##  - %c: clientid
##  - %a: ipaddress
##  - %r: protocol
##  - %m: mountpoint
##  - %t: topic
##
## Value: URL
auth.http.acl_req = http://127.0.0.1:8080/mqtt/acl
## Value: post | get | put
auth.http.acl_req.method = get
## Value: Params
auth.http.acl_req.params = access=%A,username=%u,clientid=%c,ipaddr=%a,topic=%t

Load the Plugin

./bin/emqx_ctl plugins load emqx_auth_http

HTTP API

200 if ok

4xx if unauthorized

License

Apache License Version 2.0

Author

EMQX Team.

最近版本更新:(数据更新于 2024-09-07 11:26:39)

主题(topics):

acl, authentication, emqx, emqx-plugin, http, http-authentication

emqx/emqx-auth-http同语言 Erlang最近更新仓库

2024-12-05 23:56:16 emqx/emqx

2024-04-12 18:15:12 esl/MongooseIM

2023-06-21 20:44:48 emqx/emqx-plugin-template

2021-12-17 19:39:07 emqx/ekka

2020-11-02 11:27:02 goBuildRun/buildrun-emqx-backend-mysql

1970-01-01 00:00:00 emqx/emqx-rule-engine