access to api when using apache ldap auth
I need to access the api using an api key… Does anybody have a working apache configuration for that? A search at galaxyproject.org/search<http://galaxyproject.org/search> didn't turn anything up. I tried this: but that causes the history to fail to update. <Location "/"> Order allow,deny allow from all AuthType Basic AuthName "NEB Credentials" AuthBasicProvider ldap AuthzLDAPAuthoritative off AuthLDAPBindDN xxxx@yyyy AuthLDAPBindPassword xxxxx AuthLDAPURL "ldap://<host…>?sAMAccountName" require valid-user RequestHeader set REMOTE_USER %{AUTHENTICATE_sAMAccountName}e SetOutputFilter DEFLATE SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary SetEnvIfNoCase Request_URI \.(?:t?gz|zip|bz2)$ no-gzip dont-vary SetEnvIfNoCase Request_URI /history/export_archive no-gzip dont-vary XSendFile on XSendFileAllowAbove on </Location> <Location "/api"> Satisfy Any Allow from all </Location> I must keep that /api location commented out for history updates to work. If i uncomment it, i can use the api. What's the right solution? Maybe i should add a /api2 alias that does not require valid-user? Maybe my apache foo is just too weak and I'm missing something obvious? Thanks for any advice! Brad -- Brad Langhorst langhorst@neb.com<mailto:langhorst@neb.com>
Hi Brad, I think the method that Thon deBoer is using here is probably the best way to do it: http://dev.list.galaxyproject.org/Setting-up-a-proxy-with-authentication-whi... --nate On Feb 27, 2013, at 5:34 PM, Langhorst, Brad wrote:
I need to access the api using an api key… Does anybody have a working apache configuration for that? A search at galaxyproject.org/search didn't turn anything up.
I tried this: but that causes the history to fail to update.
<Location "/"> Order allow,deny allow from all
AuthType Basic AuthName "NEB Credentials" AuthBasicProvider ldap AuthzLDAPAuthoritative off AuthLDAPBindDN xxxx@yyyy AuthLDAPBindPassword xxxxx AuthLDAPURL "ldap://<host…>?sAMAccountName" require valid-user
RequestHeader set REMOTE_USER %{AUTHENTICATE_sAMAccountName}e
SetOutputFilter DEFLATE SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary SetEnvIfNoCase Request_URI \.(?:t?gz|zip|bz2)$ no-gzip dont-vary SetEnvIfNoCase Request_URI /history/export_archive no-gzip dont-vary
XSendFile on XSendFileAllowAbove on </Location>
<Location "/api"> Satisfy Any Allow from all </Location>
I must keep that /api location commented out for history updates to work. If i uncomment it, i can use the api.
What's the right solution? Maybe i should add a /api2 alias that does not require valid-user? Maybe my apache foo is just too weak and I'm missing something obvious?
Thanks for any advice!
Brad -- Brad Langhorst langhorst@neb.com
___________________________________________________________ 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:
participants (2)
-
Langhorst, Brad
-
Nate Coraor