-
Notifications
You must be signed in to change notification settings - Fork 296
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
HTTP auth failure with P2P replication #1633
Comments
I am a person who originally reported this issue on forum. |
I'm sure that it's used to work by putting credentials in the URL (not with Basic Authenticator). Need to debug what is causing the issue. |
Yeah, I seen a lot of similar code with putting credentials in the URL on forums and people confirmed it works. That posts were 1-2 years old. It seems bug was introduced in one of last versions. |
FYI @Visput I think if you make an HTTPS listener (instead of HTTP) then this will work. The issue here is that for security reasons basic auth is not allowed over regular http since it basically sends the username and password in the clear. Instead it uses the more secure digest auth format, but the authorizer is still trying to send basic auth credentials. |
@borrrden, thanks for quick response. Obviously simple change from
|
https://github.com/couchbase/couchbase-lite-ios/wiki/SSL This page describes it. You are correct, you need to set it up with a certificate but it can generate its own. |
Thanks @borrrden. Very useful page.
|
Issue reported on the forum by user vlad.popko. Everything below is from his post:
I am trying to configure basic login / password authentication for p2p replication.
Replication works fine with no authentication. So I pretty sure my issue relates to authentication configuration.
CBListener
configuration:CBLReplication
configuration:Here is what I am getting in Xcode console:
I think the most important log here is this line:
Alternatively I tried to use
CBLAuthenticator
instead of injecting login/password into url. Still doesn't work, however I am getting different error messages in log:What is changed:
Here is what I am getting in Xcode console after updating the code:
Could anybody point me to place where I am doing something wrong?
PS. I replaced
//
with??
in urls because system doesn't allow to post more than two links in post by new users.The text was updated successfully, but these errors were encountered: