From hrh@fmi.ch Fri Oct 30 05:32:14 2015 From: Hans-Rudolf Hotz To: galaxy-dev@lists.galaxyproject.org Subject: Re: [galaxy-dev] using Bioblend with external authentication Date: Fri, 30 Oct 2015 10:32:01 +0100 Message-ID: <56333911.6030105@fmi.ch> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4286827529116240214==" --===============4286827529116240214== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi all Thanks to a great effort by Dannon, we have solved the problem. Since I=20 took the discussion off-list after his initial reply, I now owe you the=20 solution: My initial mistake was the change in the apache config file. I should=20 have added: Satisfy Any Allow from all Since our Galaxy is not served from a sub directory (such as /galaxy) -=20 D'OH !! In the whole process, we identified a problem in the Galaxy code, which=20 is now nicely patched: https://github.com/galaxyproject/galaxy/pull/1003 Regards, Hans-Rudolf On 10/22/2015 04:09 PM, Dannon Baker wrote: > My guess is that it has to do with the prefix there. Is the Galaxy API > at galaxy-dev.fmi.ch/galaxy/api or > galaxy-dev.fmi.ch/api ? > > On Thu, Oct 22, 2015 at 6:41 AM Hans-Rudolf Hotz > wrote: > > Hi > > We would like to start using BioBlend on our production servers (which > use external authentication) as well. > > We have changed the apache conf file by adding > > > Satisfy Any > Allow from all > > > > > Nevertheless, we still get the following error, when using one of the > example scripts: > > > $ python list_data_libraries.py galaxy-dev.fmi.ch > *************** > Initiating Galaxy connection > Retrieving Data Library list > Traceback (most recent call last): > File "list_data_libraries.py", line 23, in > libraries =3D gi.libraries.get_libraries() > File > "/****/lib/python2.6/site-packages/bioblend-0.6.1-py2.6.egg/bioblend/ga= laxy/libraries/__init__.py", > line 216, in get_libraries > libraries =3D Client._get(self, deleted=3Ddeleted) > File > "/****/lib/python2.6/site-packages/bioblend-0.6.1-py2.6.egg/bioblend/ga= laxy/client.py", > line 147, in _get > raise ConnectionError(msg) > bioblend.galaxy.client.ConnectionError: GET: error 401: ' PUBLIC "-//IETF//DTD HTML 2.0//EN">\n\n401 > Authorization Required\n\n

Authorization > Required

\n

This server could not verify that you\nare authorized > to access the document\nrequested. Either you supplied the > wrong\ncredentials (e.g., bad password), or your\nbrowser doesn\'t > understand how to supply\nthe credentials > required.

....\n', 0 attempts left: None > $ > > > Is there anything else we need to change in the conf file, or do we have > to do something different? > > > > Thank you very much for any help with this > Hans-Rudolf > > > > -- > > > > Hans-Rudolf Hotz, PhD > Bioinformatics Support > > Friedrich Miescher Institute for Biomedical Research > Maulbeerstrasse 66 > 4058 Basel/Switzerland > ___________________________________________________________ > Please keep all replies on the list by using "reply all" > in your mail client. To manage your subscriptions to this > and other Galaxy lists, please use the interface at: > https://lists.galaxyproject.org/ > > To search Galaxy mailing lists use the unified search at: > http://galaxyproject.org/search/mailinglists/ > --===============4286827529116240214==--