Giter Club home page Giter Club logo

Comments (3)

snej avatar snej commented on May 26, 2024

Looks like you're trying to connect to Couchbase Server directly. That won't work; Couchbase Server doesn't directly implement the sync protocol. That's what the Couchbase Sync Gateway is for.

from couchbase-lite-ios.

kinwahlai avatar kinwahlai commented on May 26, 2024

Thanks @snej, I understand i'll have to use sync_gateway for this task.
I'm not sure if i should create an issue in sync_gateway; i encounter another problem 401 error in sync_gateway
17:15:50.160957 Auth failed for username="", cookie=
17:15:50.161039 HTTP: --> 401 Invalid login

I have a few more questions

  1. is it mandatory to login/authenticated?
  2. besides persona or oauth, can i use custom login method? because i have an app server running that have authentication function.

kinwah

from couchbase-lite-ios.

snej avatar snej commented on May 26, 2024

That error is expected. Guest/anonymous access is disabled by default. You can change that in the config file or by altering the properties of that user account.

You can do custom login by having your app server ask the gateway to create a login session cookie for a user, then returning that cookie to the client. See the section "Indirect Authentication".

from couchbase-lite-ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.