VolantMQ / volantmq

High-Performance MQTT Server
Apache License 2.0
981 stars 169 forks source link

How to disable authorization? #176

Closed 4nte closed 3 years ago

4nte commented 3 years ago

Since auth.anonymous config option has been removed, is there another way of disabling authorization?

troian commented 3 years ago

yeah, i think it was hastily. i'll make it to work

troian commented 3 years ago

oh, i forgot (and need to update the documentation). you can add this kind of user to simplyAuth config entry

      - name: internal
        backend: simpleAuth
        config:
          users:
            "": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" # this hash is effectively sha256 of empty string
4nte commented 3 years ago

oh, i forgot (and need to update the documentation). you can add this kind of user to simplyAuth config entry

      - name: internal
        backend: simpleAuth
        config:
          users:
            "": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" # this hash is effectively sha256 of empty string

Neat trick, will do :slightly_smiling_face: Thanks

troian commented 3 years ago

closing, reopen if issue remains