You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 20, 2024. It is now read-only.
The client doesn't recognize HTTP auth challenges, i.e. a 401 response status. Instead the connection just fails (with no indication why, because the API doesn't expose what the HTTP status was.)
There would need to be new API to support this. At the very least allowing the caller to register a username and password for Basic auth, but it'd be better to have a delegate-based auth-challenge callback similar to the one NSURLConnection uses.
The text was updated successfully, but these errors were encountered:
snej
added a commit
to couchbasedeps/PocketSocket
that referenced
this issue
Apr 12, 2015
* Added -server:acceptWebSocketWithRequest:response: delegate method
that allows the delegate to return an HTTP status code and headers.
* PSWebSocketServer now sends an HTTP response on failure instead of
just closing the socket.
* PSWebSocket now captures an HTTP error response from the peer and
stores it in custom userInfo properties of the returned NSError so
the client can see the HTTP status and headers when the connection
fails.
* Replaced custom CRLF-scanning code with calls to memmem().
* Removed a no-op line that triggered a static analyzer warning.
Fixeszwopple#28
robertjpayne
changed the title
Doesn't handle HTTP auth
Support for HTTP auth challenges
Mar 19, 2016
The client doesn't recognize HTTP auth challenges, i.e. a 401 response status. Instead the connection just fails (with no indication why, because the API doesn't expose what the HTTP status was.)
There would need to be new API to support this. At the very least allowing the caller to register a username and password for Basic auth, but it'd be better to have a delegate-based auth-challenge callback similar to the one NSURLConnection uses.
The text was updated successfully, but these errors were encountered: