You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Mark Lybarger <ml...@gmail.com> on 2017/11/15 18:27:52 UTC

[users@httpd] extract auth header from query string

i have a user who is connecting to a websocket that requires a basic
authenticaion header.  they're doing this from the browser's javascript as

wss://user:pass@myhost.com/endpoint

that's not supported in all browsers (Safari on iphone). as a workaround,
perhaps they can use:

wss://myhost.com/browserendpoint?creds=user:pass

then apache can rewrite to the correct url and add the needed Authorization
header.?

Any help on implementing or other ideas would be most appreciated.

Thanks!
-mark-

Re: [users@httpd] extract auth header from query string

Posted by Daniel <df...@gmail.com>.
iirc httpd does not deal with wss as of now, only for reverse proxying.

2017-11-15 19:27 GMT+01:00 Mark Lybarger <ml...@gmail.com>:
> i have a user who is connecting to a websocket that requires a basic
> authenticaion header.  they're doing this from the browser's javascript as
>
> wss://user:pass@myhost.com/endpoint
>
> that's not supported in all browsers (Safari on iphone). as a workaround,
> perhaps they can use:
>
> wss://myhost.com/browserendpoint?creds=user:pass
>
> then apache can rewrite to the correct url and add the needed Authorization
> header.?
>
> Any help on implementing or other ideas would be most appreciated.
>
> Thanks!
> -mark-



-- 
Daniel Ferradal
IT Specialist

email         dferradal at gmail.com
linkedin     es.linkedin.com/in/danielferradal

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org