user creation using API

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

user creation using API

Hagai
Hi,
I would like to auto create users on my local Galaxy instance.

I saw that in the "create user" on the API, I should enable use_remote_user (which as I understand means that I have to use Apache or nginx).
Is there another way besides using Apache to create users automatically?

Thanks,
Hagai


___________________________________________________________
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:

  http://lists.bx.psu.edu/
Reply | Threaded
Open this post in threaded view
|

Re: user creation using API

John Chilton
I am pretty confident there is no way to do this via the API
currently, though I imagine it wouldn't be terribly complicated to add
and the community would appreciate the contribution. If API-based
access isn't a strong requirement and you have direct access to the
Galaxy server here is a script-template I have used to automatically
create users:

https://gist.github.com/4475646

The above gist is probably enough to get going, but here is the full
context of how I create such a file if that is of interest:
https://github.com/jmchilton/cloudbiolinux/blob/deploy/cloudbio/deploy/galaxy.py

-John

On Mon, Jan 7, 2013 at 3:37 AM, Hagai Cohen <[hidden email]> wrote:

> Hi,
> I would like to auto create users on my local Galaxy instance.
>
> I saw that in the "create user" on the API, I should enable use_remote_user
> (which as I understand means that I have to use Apache or nginx).
> Is there another way besides using Apache to create users automatically?
>
> Thanks,
> Hagai
>
>
> ___________________________________________________________
> 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:
>
>   http://lists.bx.psu.edu/
___________________________________________________________
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:

  http://lists.bx.psu.edu/
Reply | Threaded
Open this post in threaded view
|

Re: user creation using API

Hagai
This is really helpful,
Works great.
Thanks,
Hagai


On Mon, Jan 7, 2013 at 5:13 PM, John Chilton <[hidden email]> wrote:
I am pretty confident there is no way to do this via the API
currently, though I imagine it wouldn't be terribly complicated to add
and the community would appreciate the contribution. If API-based
access isn't a strong requirement and you have direct access to the
Galaxy server here is a script-template I have used to automatically
create users:

https://gist.github.com/4475646

The above gist is probably enough to get going, but here is the full
context of how I create such a file if that is of interest:
https://github.com/jmchilton/cloudbiolinux/blob/deploy/cloudbio/deploy/galaxy.py

-John

On Mon, Jan 7, 2013 at 3:37 AM, Hagai Cohen <[hidden email]> wrote:
> Hi,
> I would like to auto create users on my local Galaxy instance.
>
> I saw that in the "create user" on the API, I should enable use_remote_user
> (which as I understand means that I have to use Apache or nginx).
> Is there another way besides using Apache to create users automatically?
>
> Thanks,
> Hagai
>
>
> ___________________________________________________________
> 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:
>
>   http://lists.bx.psu.edu/


___________________________________________________________
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:

  http://lists.bx.psu.edu/
Reply | Threaded
Open this post in threaded view
|

Re: user creation using API

Rémy Dernat
Hi,

This is an old topic now, but here is a little update (fork from Git / John Chilton) of this code:

https://gist.github.com/remyd1/5524162

Regards
Remy



2013/1/8 Hagai Cohen <[hidden email]>
This is really helpful,
Works great.
Thanks,
Hagai



On Mon, Jan 7, 2013 at 5:13 PM, John Chilton <[hidden email]> wrote:
I am pretty confident there is no way to do this via the API
currently, though I imagine it wouldn't be terribly complicated to add
and the community would appreciate the contribution. If API-based
access isn't a strong requirement and you have direct access to the
Galaxy server here is a script-template I have used to automatically
create users:

https://gist.github.com/4475646

The above gist is probably enough to get going, but here is the full
context of how I create such a file if that is of interest:
https://github.com/jmchilton/cloudbiolinux/blob/deploy/cloudbio/deploy/galaxy.py

-John

On Mon, Jan 7, 2013 at 3:37 AM, Hagai Cohen <[hidden email]> wrote:
> Hi,
> I would like to auto create users on my local Galaxy instance.
>
> I saw that in the "create user" on the API, I should enable use_remote_user
> (which as I understand means that I have to use Apache or nginx).
> Is there another way besides using Apache to create users automatically?
>
> Thanks,
> Hagai
>
>
> ___________________________________________________________
> 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:
>
>   http://lists.bx.psu.edu/


___________________________________________________________
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:

  http://lists.bx.psu.edu/


___________________________________________________________
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:
  http://lists.bx.psu.edu/

To search Galaxy mailing lists use the unified search at:
  http://galaxyproject.org/search/mailinglists/