Scratch the part 3, we've got it to work without that..i just wanted to 
mention that, no clue why i did that.

1. We post a user to the server. /$DB/_user/
2. We do the exact same stuff that you do in CouchChat - NSURLCredential = 
repl.credential

I'm just really confused right now, been working non-stop to trying to make 
this work and i just don't get it :(

Do you even post a user to the server? 

Seems like the only thing your doing is - NSURLCredentials *cred without 
the need of NSURLProtectionSpace
 and then just put CBLReplcation.credentials = cred. You don't even post a 
user to the server (/$DB/_user/)?

Where is your session? And how could our logic work fine when continuous is 
false, is it because you don't need a session when it's set to false? 

Sorry for my bad grammar, and i really do appreciate you trying and giving 
me quick response :)
//CouchbaseLover



Den lördagen den 14:e juni 2014 kl. 01:09:09 UTC+2 skrev Jens Alfke:
>
>
> On Jun 13, 2014, at 3:54 PM, CouchbaseLover <[email protected] 
> <javascript:>> wrote: 
>
> > #3763: GET /horse/_changes?feed=websocket 
> > 23:38:29.922535 HTTP: #3763:     --> 401 Login required  (0.0 ms 
> > No clue what's "going wrong" cause we have no idea what the process 
> should be.. 
>
> CBL is using a WebSocket to connect to the continuous _changes feed, and 
> it looks like the credentials aren't getting sent along with that request 
> for some reason, so it gets a 401 error. This could be a CBL bug, but to 
> diagnose it I need to know how you’re authenticating the CBLReplication. 
>
> I’m not clear on how you’re setting up authentication. First you show code 
> for configuring a username/password with NSURLCredential, but then in step 
> 3 you say you’re creating a session cookie through a custom protocol to 
> your application server. Those shouldn’t both be necessary. And once you 
> get the session cookie from the app server, what’s the code you’re using to 
> register it with the CBL replication? 
>
> —Jens

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/ce4c195d-7bbe-4d6e-af7d-f76d8f2ba7f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to