Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D109E1048D for ; Thu, 19 Dec 2013 20:27:15 +0000 (UTC) Received: (qmail 96051 invoked by uid 500); 19 Dec 2013 20:27:14 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 96008 invoked by uid 500); 19 Dec 2013 20:27:14 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 96000 invoked by uid 99); 19 Dec 2013 20:27:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Dec 2013 20:27:14 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [80.244.253.218] (HELO mail.traeumt.net) (80.244.253.218) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Dec 2013 20:27:10 +0000 Received: from [10.0.0.11] (91-66-82-235-dynip.superkabel.de [91.66.82.235]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.traeumt.net (Postfix) with ESMTPSA id 86960215C8 for ; Thu, 19 Dec 2013 21:27:05 +0100 (CET) From: Jan Lehnardt Content-Type: multipart/signed; boundary="Apple-Mail=_B4AAE50E-2CC9-4F35-932C-3783CDBE31C8"; protocol="application/pgp-signature"; micalg=pgp-sha512 Message-Id: <48BBBDFE-51A3-4B38-B2B2-E3D691B8B0CD@apache.org> Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1812\)) Subject: Re: How to add BrowserId plugin to OSX binary install of CouchDB Date: Thu, 19 Dec 2013 21:26:47 +0100 References: <539E4F62-FA96-4603-A278-D798AF7983A2@weett.nl> <07069C08-FC0F-4961-8E32-9E8FC6E4EDFB@weett.nl> To: user@couchdb.apache.org In-Reply-To: <07069C08-FC0F-4961-8E32-9E8FC6E4EDFB@weett.nl> X-Mailer: Apple Mail (2.1812) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_B4AAE50E-2CC9-4F35-932C-3783CDBE31C8 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On 18 Dec 2013, at 23:08 , Sjoerd de Jong wrote: > Dave, >=20 > Thanks for the extensive description. It=92s a little hacky indeed but = I=92ve learned quite a bit from your approach. We=92re getting closer! >=20 > =46rom a different perspective, what is the reason to not include = Persona into the regular build of CouchDB? Is it to prevent growth of = the distribution? There is some preliminary work on a plugin system for CouchDB that would = allow anyone to publish and install plugins for CouchDB without the need = for us to include and maintain that code as part of core CouchDB. The Persona plugin can easily live in that infrastructure. Best Jan --=20 >=20 > =46rom my point of view, Persona is great way to have decent security = in a really simple setup. It enables couchapps to be fully secure, = without the need of installing any other services, which is a major = feature imho. As OAuth is already a bundled security plugin, I=92d love = too see Persona / BrowserId to be bundled too! >=20 > Cheers, > Sjoerd >=20 > On 18 Dec 2013, at 15:49, Dave Cottlehuber wrote: >=20 >> On 18. Dezember 2013 at 11:09:56, Sjoerd de Jong (sjoerd@weett.nl) = wrote: >>>=20 >>> Hello, >>>=20 >>> For some time I am struggling with getting the BrowserId (Persona) =20= >>> plugin running on my machine (OSX Mavericks). >>>=20 >>> Previously I compiled https://github.com/iriscouch/browserid_couchdb = =20 >>> using `rake plugin=3D"git://github.com/iriscouch/browserid_couchdb =20= >>> origin/master=94` on build-couchdb. For some reason this fails =20 >>> for 1.5 for me, and instead of diving into the error I=92d like to =20= >>> just use the download for OSX from the couchdb.apache.org main =20 >>> site. >>>=20 >>> In Jason Smiths talk on Plugins = (http://www.youtube.com/watch?v=3DsaNjXpE1h1Y) =20 >>> he showed installing a plugin is as easy as copying a .beam file =20 >>> into the CouchDB application. Is this also true for the downloadable = =20 >>> version from the main website? If so, is it possible to install =20 >>> the BrowserId plugin this way? >>>=20 >>> If not, what is the recommended way to get CouchDB running with =20 >>> the BrowserId plugin installed? >>>=20 >>> Thanks for the help! >>>=20 >>> Sjoerd >>=20 >> Hey Sjoerd, >>=20 >> I=92d love for Jan or Jason to chip in here, as it looks like we need >> some extra bits within the release, and I didn=92t quite get this = working >> either. Here=92s what I tried, all very hacky: >>=20 >> ```shell >> # download & unpack CouchDB 1.5.0 first >> # hack! >> cd ~/Applications/Apache\ = CouchDB*.app/Contents/Resources/couchdbx-core/ >>=20 >> # set up path helpers >> export COUCH_PATH=3D`pwd -P` >> export = PATH=3D$COUCH_PATH/lib/erlang/erts-5.10.2/bin:$COUCH_PATH/bin:$PATH >>=20 >> # install erlang to update erlexec script with current location >> ./lib/erlang/Install -minimal `pwd -P`/lib/erlang >> # `erl +V` should return Erlang (SMP,ASYNC_THREADS) (BEAM) emulator = version 5.10.2 >>=20 >> # we need erl_interface headers from a working R16B01 install as its = missing >> cp -R /some/path/to/erl_interface-3.7.13 $COUCH_PATH/lib/erlang/lib/ >>=20 >> # get browserid_couchdb with my modified rebar.config >> cd $COUCH_PATH/lib/couchdb/erlang/lib/ >> git clone git://github.com/jsonified/browserid_couchdb.git >> cd browserid_couchdb >> ./rebar compile >> # link in the browserid.ini so couchdb finds it >> ln -s = $COUCH_PATH/lib/couchdb/erlang/lib/browserid_couchdb/etc/couchdb/default.d= /browserid.ini $COUCH_PATH/etc/couchdb/default.d/browserid.ini >>=20 >> # have a go, I used the terminal so I can see what=92s going on >> cd $COUCH_PATH >> ./bin/couchdb -i >> 1> application:start(browserid_couchdb). >>=20 >> # follow instructions in = https://github.com/iriscouch/browserid_couchdb#so-simple >>=20 >> I pushed a new db and doc containing as attachment the .html snippet = from >> Jason=92s plugin, the logon worked fine but the account isn=92t = created. I=92m >> missing something about how the extension should be activated too. >>=20 >> A+ >> dch@ >>=20 >>=20 >>=20 >=20 --Apple-Mail=_B4AAE50E-2CC9-4F35-932C-3783CDBE31C8 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJSs1aHAAoJENnuAeR4Uq7kGPAP/3/H5IAi9Zy8B4DLl45em8Jm FuC1xnMtfssjISXJKfwvY3rjP1Y/WIS6JMupN9Lk6x4lED+Lw1Z1suFO7vpifFdd bqx5LP+LuhuGPS4EEwfICq0e8vwm2Y7IQDBqWzzanDIJGcJHtbS2z93BcL941Sli vN6ogbEUgjbHdGZD0B5P2zUR2DvNuRPkDA49DdkqYToBlyRv5iBf0YmV/r/svhIY wUeeHYEcXhAzcwqYPCcl3Srx20M2lkO8dsd3OA6pkp25QXS2vHP/an2en0K7U8nk Ml7Iqu7Qbsht7m+I0QzRIalTG2u0MlMd8+kKnFS80ZhBiOFpxBlrQh0/wdi4hNI1 BEJf/VEFApsx3AJOieo0FIMFWTcciNHpixOvPXYI11sKKJOtg+Je8W9dwh5Vz/mp Ehhnq8ZkWbtEoxI7gwUv/vS6z8A7rtwJki/KHMcrFhRpADgKtOrVoHFXy0b2gKof msO6hzWALW6FFOGpLHmn3tfcUKNtT/yVuzQMQlmIvAxHE5oXbGbuOtyTfQgH3qTd WGlgH8ICsxpUBdgDk01q6Ub4BuZ5Y7e7NvZ+EQ0OKcKu5GEYXAvvGY8HWrCXcTQ0 HO2R/qAD56n38vLvDfR4FHTKSHFqOQoudS/0QcEUnO3GodAKovQIJ7WBJmKrEXKA zl12VLuzbcVaC6+7LOYc =Cxqr -----END PGP SIGNATURE----- --Apple-Mail=_B4AAE50E-2CC9-4F35-932C-3783CDBE31C8--