Git Product home page Git Product logo

Comments (2)

wwhai avatar wwhai commented on September 12, 2024

I am not able to pass auth.http.header.Authorization from Docker environment variables. Is there any other method to specify the parameters

You can reference document here:https://github.com/emqx/emqx-rel/tree/master/deploy/docker, also same issue here:#204 (comment).

from emqx-auth-http.

flapezoti avatar flapezoti commented on September 12, 2024

I am facing the same issue. Were you able to solve it @jayaraj ?

I am using the docker image emqx/emqx:v4.2.9, I have tried to pass it as the following env var, but no luck:

EMQX_AUTH__HTTP__HEADER__AUTHORIZATION = "text"

The broker logs while starting up shows that it's not recognizing it

emqx          | auth.http.acl_req=host.docker.internal:8080/api/v1/authenticate
emqx          | auth.http.acl_req.method=post
emqx          | auth.http.acl_req.params=username=%u,topic=%t
emqx          | auth.http.auth_req=host.docker.internal:8080/api/v1/authenticate
emqx          | auth.http.auth_req.content_type=json
emqx          | auth.http.auth_req.method=post
emqx          | auth.http.auth_req.params=username=%u,password=%P
emqx          | cluster.autoclean=5m
emqx          | cluster.autoclean=5m

I've tried the above because it's what is determined in the plugin conf file:

https://github.com/emqx/emqx-auth-http/blob/master/etc/emqx_auth_http.conf#L156-L162

and in the doc for this version : https://docs.emqx.io/en/broker/v4.2/advanced/auth-http.html#http-request-information

but I've also tried to pass it as the doc says using the below, but it didn't work as well

EMQX_AUTH__HTTP__AUTH_REQ__HEADERS__AUTHORIZATION = "text" (realized the doc I was seeing was from a different version)

from emqx-auth-http.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.