-
Notifications
You must be signed in to change notification settings - Fork 575
Hi Possible to add Header Bearer Token? #945
herrmann78
started this conversation in
General
-
Hi,
it's possible to use a header Authentication: Bearer token??
Thanks
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment 2 replies
-
what your looking for is the setAuthorization function.
arduinoWebSockets/src/WebSocketsClient.h
Line 105 in 1789a18
void setAuthorization(const char * auth);
e.g.
webSocket.setAuthorization("Bearer <token here>");Beta Was this translation helpful? Give feedback.
All reactions
2 replies
-
Hi,
thats not working.
I become a disconnect.
The same in Postmann with Authorization: Bearer Accesstoken works fine.
Beta Was this translation helpful? Give feedback.
All reactions
-
I have found the problem the host has integrated a url
with this works fine
webSocket.beginSslWithBundle("xxxxxxxxx.on3cx.de", 443, "/callcontrol/ws", NULL, 0, "");
Best thanks!!!
Beta Was this translation helpful? Give feedback.
All reactions
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment