-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Basic Authentication using username and password #3024
Comments
No idea what you're trying to do there... setting info.alpn with it... Instead take a look at how minimal-examples-lowlevel/http-client/minimal-http-client/minimal-http-client.c works. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I am trying to use Authentication using username and password, But I am not sure where can I get those values from the header in my server:
I tried to use WSI_TOKEN_X_AUTH_TOKEN but it is not part of the header:
lws_hdr_copy(wsi, auth_header, sizeof(auth_header), WSI_TOKEN_X_AUTH_TOKEN)
LWS_CALLBACK_VERIFY_BASIC_AUTHORIZATION is not hit my server callback !
here is my client code: But I am not getting these Authorization as part of header. Looks like I am not using it correctly.
how to set Authorization header correctly for Basic Auth?
The text was updated successfully, but these errors were encountered: