What is the best way to create ODK Aggregate users from a third party application

Hi there,

I'm making an app that users will register into it. But I want to replicate
those users (with the same credentials) to ODK Aggregate because I want
them to be able to collect data through (Enketo -> ODK Aggregate) using
the same credentials they registered in my app.

I can create the Digest Hash easily but I am afraid creating rows in ODKs *_registered_users
*and *_user_granted_authority *tables will not be enough. Should I touch
other tables as well? I did a quick test, the external user was able to
authenticate but my changes caused problems for other users so I rolled
back.

Or is there any other safer method you would suggest to try? (by calling
some ODK code or anything else, without touching tables directly).

Ps. my app will not be in java.

Best,
piqo

You should be able to create rows in just those two tables and everything
should work. What was happening with the other users?

··· On Fri, Apr 17, 2015 at 1:50 AM, piqo wrote:

Hi there,

I'm making an app that users will register into it. But I want to
replicate those users (with the same credentials) to ODK Aggregate because
I want them to be able to collect data through (Enketo -> ODK Aggregate)
using the same credentials they registered in my app.

I can create the Digest Hash easily but I am afraid creating rows in ODKs *_registered_users
*and *_user_granted_authority *tables will not be enough. Should I touch
other tables as well? I did a quick test, the external user was able to
authenticate but my changes caused problems for other users so I rolled
back.

Or is there any other safer method you would suggest to try? (by calling
some ODK code or anything else, without touching tables directly).

Ps. my app will not be in java.

Best,
piqo

--
You received this message because you are subscribed to the Google Groups
"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

The other users had issue logging in, but probably I had done some mistake.
Or perhaps it was unrelated. I rolled back pretty quickly.

I will check again.

Thanks for your answer.
piqo

··· On Friday, April 17, 2015 at 8:10:20 PM UTC+2, Mitch wrote: > > You should be able to create rows in just those two tables and everything > should work. What was happening with the other users? > > > On Fri, Apr 17, 2015 at 1:50 AM, piqo <piq...@gmail.com > wrote: > >> Hi there, >> >> I'm making an app that users will register into it. But I want to >> replicate those users (with the same credentials) to ODK Aggregate because >> I want them to be able to collect data through (Enketo -> ODK Aggregate) >> using the same credentials they registered in my app. >> >> I can create the Digest Hash easily but I am afraid creating rows in ODKs *_registered_users >> *and *_user_granted_authority *tables will not be enough. Should I touch >> other tables as well? I did a quick test, the external user was able to >> authenticate but my changes caused problems for other users so I rolled >> back. >> >> Or is there any other safer method you would suggest to try? (by calling >> some ODK code or anything else, without touching tables directly). >> >> Ps. my app will not be in java. >> >> Best, >> piqo >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "ODK Developers" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to opendatakit-developers+unsubscribe@googlegroups.com >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Mitch Sundt > Software Engineer > University of Washington > mitche...@gmail.com >