From 9d993e16258fa0e096eea52254a7e5f562ef4c1b Mon Sep 17 00:00:00 2001 From: Parham Alvani <1995parham@tuta.io> Date: Wed, 15 Sep 2021 05:18:52 +0430 Subject: [PATCH] chore(auth-http): Disable Superuser Request by Defualt --- apps/emqx_auth_http/etc/emqx_auth_http.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/emqx_auth_http/etc/emqx_auth_http.conf b/apps/emqx_auth_http/etc/emqx_auth_http.conf index b72055963..2dd131dec 100644 --- a/apps/emqx_auth_http/etc/emqx_auth_http.conf +++ b/apps/emqx_auth_http/etc/emqx_auth_http.conf @@ -42,18 +42,18 @@ auth.http.auth_req.params = clientid=%c,username=%u,password=%P ## Value: URL ## ## Examples: http://127.0.0.1:80/mqtt/superuser, https://[::1]:80/mqtt/superuser -auth.http.super_req.url = http://127.0.0.1:80/mqtt/superuser +# auth.http.super_req.url = http://127.0.0.1:80/mqtt/superuser ## HTTP Request Method for SuperUser Request ## ## Value: post | get -auth.http.super_req.method = post +# auth.http.super_req.method = post ## HTTP Request Headers for SuperUser Request, Content-Type header is configured by default. ## The possible values of the Content-Type header: application/x-www-form-urlencoded, application/json ## ## Examples: auth.http.super_req.headers.accept = */* -auth.http.super_req.headers.content-type = application/x-www-form-urlencoded +# auth.http.super_req.headers.content-type = application/x-www-form-urlencoded ## Parameters used to construct the request body or query string parameters ## When the request method is GET, these parameters will be converted into query string parameters @@ -70,7 +70,7 @@ auth.http.super_req.headers.content-type = application/x-www-form-urlencoded ## - %d: subject of client TLS cert ## ## Value: =,=,... -auth.http.super_req.params = clientid=%c,username=%u +# auth.http.super_req.params = clientid=%c,username=%u ## HTTP URL API path for ACL Request ## Comment out this config to disable ACL checks