-
Notifications
You must be signed in to change notification settings - Fork 25
Not able to get Persona authentication working #10
Comments
Hm, looks like the client isn't even attempting a Persona login, else your server logs would be showing a POST to /couchchat/_persona. If you turn on SyncVerbose logging in the client, there'll be a message of the form "Logging in with CBLPersonaAuthorizer at..." when it tries the login. Probably that won't show up since apparently it isn't even getting to that point; but the client logs would be useful to look at. |
This is what I see when I turn SyncVerbose logging on:
|
Hm, that output doesn’t show any logs from CBL, only the NSLogs from the chat app itself.
The 404 makes me suspect you may have a mismatch between versions of CBL and the sync gateway. The API endpoint for Persona login changed from /_persona to /dbname/_persona a few weeks ago — if you have an older version of one or the other project, the login will fail with a 404. |
Oops, I totally forgot that I needed to add Either way, I did finally get everything to work ☺ Just a heads up to anyone that may face similar issues: the Persona auth stuff seemed to only work for me after I got rid of all my previous Couchbase buckets. I'm not sure if there may have been some kinda conflict with the way the old buckets dealt with handling the sessions/Persona/etc stuff in the past that prevented things from working with the more recent commits or what — but basically starting everything as if from scratch is what did the trick for me. |
I can't seem to get Persona authentication working — though I'm not sure if it's something on my end or what..
I'm trying this out with a real Couchbase bucket since I've already had success running multiple apps that way. I added the sync function that was provided to my own json config file (gist). Yet when I run
sync_gateway -personaOrigin="http://localhost:4984/" myconfig.json
, while I'm seemingly able to log in with Persona on the actual iOS app, I can't set up any chats.This is what I see in my sync_gateway logs:
I've tried quite a few different configurations but haven't been able to get any to work, not sure what I'm missing?
The text was updated successfully, but these errors were encountered: