Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Hi Possible to add Header Bearer Token? #945

herrmann78 started this conversation in General
Discussion options

Hi,

it's possible to use a header Authentication: Bearer token??

Thanks

You must be logged in to vote

Replies: 1 comment 2 replies

Comment options

what your looking for is the setAuthorization function.

void setAuthorization(const char * auth);

e.g.

webSocket.setAuthorization("Bearer <token here>");
You must be logged in to vote
2 replies
Comment options

Hi,

thats not working.

I become a disconnect.
The same in Postmann with Authorization: Bearer Accesstoken works fine.

Comment options

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!!!

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

AltStyle によって変換されたページ (->オリジナル) /