I changed so ToDoLite would work on our server instead of yours with success, except sharing the "lists" didn't work ? But we get the right documents in our todo bucket - sync user/sessions and so forth. Why is this?
I tried to replicate this "user management" you got in ToDoLite but without fb login and instead create a user account/session with the sync gateway API ( custom authentication etc) with success.
What's the next step? The sync function has guest disabled, but the app still asks for login (running the app) and we get still get the "401 Login required (0.0 ms)" error.
"You can also embed the username/password directly in the replication URL if you want, like
Is this really secure though?
// CouchbaseLover
1. Why is it working differently if you set it to continuous false/true when it comes to User Management ?
#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..
1. POST request to /$DB/_user/
. -> Successfull, we have a sync user now.
2. NSURLCredential *cred = [NSURLCredential
credentialWithUser: xxxx
password:xxxx
persistence: NSURLCredentialPersistencePermanent];
NSLog(@"cred = %@", cred);
NSURLProtectionSpace* space;
space = [[NSURLProtectionSpace alloc]
initWithHost: @"http://xxxx"
port: xxxx
protocol: @"https"
realm: @"xxxx"
authenticationMethod: NSURLAuthenticationMethodDefault];
NSLog(@"space = %@", space);
[[NSURLCredentialStorage sharedCredentialStorage] setDefaultCredential: nil forProtectionSpace: space];
- The realm is correct yes.
3. Create session for user trough Custom (Indirect) Authentication protocol.
The session "documents" looks correct and the response is successfull.
//CouchbaseLover
1. We post a user to the server. /$DB/_user/
Seems like the only thing your doing is - NSURLCredentials *cred without the need of NSURLProtectionSpace
and then just put CBLReplcation.credentials = cred.
Where is your session?
Are you using persona for authentication/sessions in CouchChat?
And i see in the Gateway your using walrus…
It didn't work at all just doing NSURLCredential + repl.credentials, now we're back to square one :)13:36:23.143512 HTTP auth failed for username="z...@za.za"13:36:23.143626 HTTP: #3814: --> 401 Invalid login (0.0 ms)
Just seems like everything is problems problems problems, we can't even check what you did with CouchChat. It doesn't compile at all after the normal git clone + git submodule init + submodule update, after that you have a bunch of errors.
First off i think an apology is in order, sorry for my behaviour :)
The end result is that we want a simple Login/Register with Email&Password and that works with continuous. ...
Ok so to really succeed i think you need to tell me what's needed to make it work from A-Z with Email&Password + continuous if you don't mind.
On Jun 14, 2014, at 11:52 AM, CouchbaseLover <sharess...@gmail.com> wrote:First off i think an apology is in order, sorry for my behaviour :)Thanks for apologizing; all forgiven :) I understand the kind of frustration you’re having.The end result is that we want a simple Login/Register with Email&Password and that works with continuous. ...Ok so to really succeed i think you need to tell me what's needed to make it work from A-Z with Email&Password + continuous if you don't mind.OK. I outlined this on another thread but I’ll go into more detail here. The short answer is that if you want to register username/password accounts you’ll need to write a small bit of server-side code to do it.Registration:
- User enters desired credentials in your app’s UI.
- App sends these to a custom server-side script, probably via a POST.
- Server-side script calls the Gateway’s admin API with a PUT /db/username to register the user.