I’ve downloaded the docker container and have it running locally, with Postman I managed to send messages to localhost:9000 just fine as well.
But now, through Access Control I enabled basic authentication with the internal database, created a user in User Mgmt, gave that user a password, but with that user I can’t POST messages, using Postman, like I could before I enabled authentication. What am I missing here?
And also, creating client users is done by adding “client usernames” via the Access Control menu as well, be careful not to mistake it with the Administrator users management from the bottom of the left menu.
Can you post a screenshot of your postman? It’s difficult to know if you entered the correct fields with just the base64 value for username:password (blur the password is fine).
Also, can you show your list of Client Usernames from Broker Manager gui?
Ok interesting, I assumed it would take usernames from the User Mgmt (bottom section in the sidebar). I have found the “default” user, but it doesn’t work for me with the API calls that worked before I enabled basic auth.
Also with clients I can’t specify a password, is that correct?
Ari is correct. In your screenshot of activating the Internal Database 2 posts ago, notice the “Client Usernames” tab. This is where you would add your user for messaging access and assign a password.
Yep that did the trick, I’ve been on different pages. Also, the default user didn’t have password ‘default’, so when I changed it it worked also. Thanks a lot!
Management users and messaging users are completely separate in PubSub+. This is for security reasons where a management user cannot view potentially sensitive message payloads and messaging users cannot change broker configuration, etc.