Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Token based authenticaion not documened #291

Open
i-g-g-y opened this issue Dec 27, 2022 · 2 comments
Open

Token based authenticaion not documened #291

i-g-g-y opened this issue Dec 27, 2022 · 2 comments

Comments

@i-g-g-y
Copy link

i-g-g-y commented Dec 27, 2022

Hello.

I can't seem to find the token authentication method?

Is this supported?

I am using Beebotte and this is what it says about authentication: https://beebotte.com/docs/mqtt

@bertmelis
Copy link
Contributor

there's nothing special about this from an MQTT point of view. Just set the username to the token. I don't know if you need to set the password to an empty string const char* passwd = ""; or copy your token as the documentation says.

@i-g-g-y
Copy link
Author

i-g-g-y commented Dec 28, 2022

You are right about that. I rolled the dice and put the token as user name as string: "token_user" and as password I omitted the parameter:

Async_Mqtt_Client.setCredentials("token_blabla123");

This worked for Bebotte.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants