Login API

Hello Developers,

I am new to Android, I am using odk platform to customize the app as per our organization requirement. I want to add login activity when the app starts, could anyone teach me how to use login API and find whether that user is valid or not?

Thanks in Advance,

Regards,
Gaurab Pradhan

Gaurab,

The relevant APIs are at
https://opendatakit.org/use/aggregate/data-transfer/#APIs and you can
look at the Aggregate or Briefcase source code if you need examples.

Yaw

··· -- Need ODK services? http://nafundi.com provides form design, server setup, professional support, and software development for ODK.

On Mon, Sep 21, 2015 at 11:51 PM, gaurab.pradhan@gmail.com wrote:

Hello Developers,

I am new to Android, I am using odk platform to customize the app as per our organization requirement. I want to add login activity when the app starts, could anyone teach me how to use login API and find whether that user is valid or not?

Thanks in Advance,

Regards,
Gaurab Pradhan

--
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.

Dear Yaw,

Thanks for your response, but i did not find the example for login. I have
created an Login Activity, can you teach me how to check whether the user
is valid or not? How do i connect with the server and check?

Thanks

··· On Wednesday, September 23, 2015 at 2:45:24 PM UTC+5:45, Yaw Anokwa wrote: > > Gaurab, > > The relevant APIs are at > https://opendatakit.org/use/aggregate/data-transfer/#APIs and you can > look at the Aggregate or Briefcase source code if you need examples. > > Yaw > -- > Need ODK services? http://nafundi.com provides form design, server > setup, professional support, and software development for ODK. > > > On Mon, Sep 21, 2015 at 11:51 PM, <gaurab....@gmail.com > wrote: > > Hello Developers, > > > > I am new to Android, I am using odk platform to customize the app as per > our organization requirement. I want to add login activity when the app > starts, could anyone teach me how to use login API and find whether that > user is valid or not? > > > > Thanks in Advance, > > > > Regards, > > Gaurab Pradhan > > > > -- > > 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. >

Dear Yaw,

https://bitbucket.org/javarosa/javarosa/wiki/AuthenticationAPI
https://bitbucket.org/javarosa/javarosa/wiki/AuthenticationAPI from this
reference I tried to login even if i give right username and password http
code is 401.
So i tested in Firefox using httpfox after entering the url (
http://username:password@myhost.org/mypage) dialog box appears, in which
http status code is 401, and after pressing ok button only my status code
will be 200.,

Can you please help me
Thanks

··· On Wednesday, September 23, 2015 at 3:56:58 PM UTC+5:45, Gaurab Pradhan wrote: > > Dear Yaw, > > Thanks for your response, but i did not find the example for login. I have > created an Login Activity, can you teach me how to check whether the user > is valid or not? How do i connect with the server and check? > > Thanks > > On Wednesday, September 23, 2015 at 2:45:24 PM UTC+5:45, Yaw Anokwa wrote: >> >> Gaurab, >> >> The relevant APIs are at >> https://opendatakit.org/use/aggregate/data-transfer/#APIs and you can >> look at the Aggregate or Briefcase source code if you need examples. >> >> Yaw >> -- >> Need ODK services? http://nafundi.com provides form design, server >> setup, professional support, and software development for ODK. >> >> >> On Mon, Sep 21, 2015 at 11:51 PM, wrote: >> > Hello Developers, >> > >> > I am new to Android, I am using odk platform to customize the app as >> per our organization requirement. I want to add login activity when the app >> starts, could anyone teach me how to use login API and find whether that >> user is valid or not? >> > >> > Thanks in Advance, >> > >> > Regards, >> > Gaurab Pradhan >> > >> > -- >> > 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. >> >

Gaurab,

I can't help more beyond pointing you to the API. If you aren't
familiar with HTTP Basic and HTTP Auth, perhaps try implementing those
first against a test server.

Yaw

··· -- Need ODK services? http://nafundi.com provides form design, server setup, professional support, and software development for ODK.

On Wed, Sep 23, 2015 at 6:14 PM, Gaurab Pradhan gaurab.pradhan@gmail.com wrote:

Dear Yaw,

https://bitbucket.org/javarosa/javarosa/wiki/AuthenticationAPI from this
reference I tried to login even if i give right username and password http
code is 401.
So i tested in Firefox using httpfox after entering the url
(http://username:password@myhost.org/mypage) dialog box appears, in which
http status code is 401, and after pressing ok button only my status code
will be 200.,

Can you please help me
Thanks

On Wednesday, September 23, 2015 at 3:56:58 PM UTC+5:45, Gaurab Pradhan wrote:

Dear Yaw,

Thanks for your response, but i did not find the example for login. I have
created an Login Activity, can you teach me how to check whether the user is
valid or not? How do i connect with the server and check?

Thanks

On Wednesday, September 23, 2015 at 2:45:24 PM UTC+5:45, Yaw Anokwa wrote:

Gaurab,

The relevant APIs are at
https://opendatakit.org/use/aggregate/data-transfer/#APIs and you can
look at the Aggregate or Briefcase source code if you need examples.

Yaw

Need ODK services? http://nafundi.com provides form design, server
setup, professional support, and software development for ODK.

On Mon, Sep 21, 2015 at 11:51 PM, gaurab....@gmail.com wrote:

Hello Developers,

I am new to Android, I am using odk platform to customize the app as
per our organization requirement. I want to add login activity when the app
starts, could anyone teach me how to use login API and find whether that
user is valid or not?

Thanks in Advance,

Regards,
Gaurab Pradhan

--
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.

--
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.

Dear Yaw,

Thanks for your kind support. I will look on that,

Kind Regards,
Gaurab Pradhan

··· On Thursday, September 24, 2015 at 2:42:59 PM UTC+5:45, Yaw Anokwa wrote: > > Gaurab, > > I can't help more beyond pointing you to the API. If you aren't > familiar with HTTP Basic and HTTP Auth, perhaps try implementing those > first against a test server. > > Yaw > -- > Need ODK services? http://nafundi.com provides form design, server > setup, professional support, and software development for ODK. > > On Wed, Sep 23, 2015 at 6:14 PM, Gaurab Pradhan <gaurab....@gmail.com > wrote: > > Dear Yaw, > > > > https://bitbucket.org/javarosa/javarosa/wiki/AuthenticationAPI from > this > > reference I tried to login even if i give right username and password > http > > code is 401. > > So i tested in Firefox using httpfox after entering the url > > (http://username:password@myhost.org/mypage) dialog box appears, in > which > > http status code is 401, and after pressing ok button only my status > code > > will be 200., > > > > Can you please help me > > Thanks > > > > On Wednesday, September 23, 2015 at 3:56:58 PM UTC+5:45, Gaurab Pradhan wrote: > >> > >> Dear Yaw, > >> > >> Thanks for your response, but i did not find the example for login. I > have > >> created an Login Activity, can you teach me how to check whether the > user is > >> valid or not? How do i connect with the server and check? > >> > >> Thanks > >> > >> On Wednesday, September 23, 2015 at 2:45:24 PM UTC+5:45, Yaw Anokwa wrote: > >>> > >>> Gaurab, > >>> > >>> The relevant APIs are at > >>> https://opendatakit.org/use/aggregate/data-transfer/#APIs and you can > >>> look at the Aggregate or Briefcase source code if you need examples. > >>> > >>> Yaw > >>> -- > >>> Need ODK services? http://nafundi.com provides form design, server > >>> setup, professional support, and software development for ODK. > >>> > >>> > >>> On Mon, Sep 21, 2015 at 11:51 PM, wrote: > >>> > Hello Developers, > >>> > > >>> > I am new to Android, I am using odk platform to customize the app as > >>> > per our organization requirement. I want to add login activity when > the app > >>> > starts, could anyone teach me how to use login API and find whether > that > >>> > user is valid or not? > >>> > > >>> > Thanks in Advance, > >>> > > >>> > Regards, > >>> > Gaurab Pradhan > >>> > > >>> > -- > >>> > 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. > > > > -- > > 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. >

Problem Solved. I have used Basic Auth
Thanks a lot.

··· On Thursday, September 24, 2015 at 2:50:41 PM UTC+5:45, Gaurab Pradhan wrote: > > Dear Yaw, > > Thanks for your kind support. I will look on that, > > Kind Regards, > Gaurab Pradhan > > On Thursday, September 24, 2015 at 2:42:59 PM UTC+5:45, Yaw Anokwa wrote: >> >> Gaurab, >> >> I can't help more beyond pointing you to the API. If you aren't >> familiar with HTTP Basic and HTTP Auth, perhaps try implementing those >> first against a test server. >> >> Yaw >> -- >> Need ODK services? http://nafundi.com provides form design, server >> setup, professional support, and software development for ODK. >> >> On Wed, Sep 23, 2015 at 6:14 PM, Gaurab Pradhan wrote: >> > Dear Yaw, >> > >> > https://bitbucket.org/javarosa/javarosa/wiki/AuthenticationAPI from >> this >> > reference I tried to login even if i give right username and password >> http >> > code is 401. >> > So i tested in Firefox using httpfox after entering the url >> > (http://username:password@myhost.org/mypage) dialog box appears, in >> which >> > http status code is 401, and after pressing ok button only my status >> code >> > will be 200., >> > >> > Can you please help me >> > Thanks >> > >> > On Wednesday, September 23, 2015 at 3:56:58 PM UTC+5:45, Gaurab Pradhan wrote: >> >> >> >> Dear Yaw, >> >> >> >> Thanks for your response, but i did not find the example for login. I >> have >> >> created an Login Activity, can you teach me how to check whether the >> user is >> >> valid or not? How do i connect with the server and check? >> >> >> >> Thanks >> >> >> >> On Wednesday, September 23, 2015 at 2:45:24 PM UTC+5:45, Yaw Anokwa wrote: >> >>> >> >>> Gaurab, >> >>> >> >>> The relevant APIs are at >> >>> https://opendatakit.org/use/aggregate/data-transfer/#APIs and you >> can >> >>> look at the Aggregate or Briefcase source code if you need examples. >> >>> >> >>> Yaw >> >>> -- >> >>> Need ODK services? http://nafundi.com provides form design, server >> >>> setup, professional support, and software development for ODK. >> >>> >> >>> >> >>> On Mon, Sep 21, 2015 at 11:51 PM, wrote: >> >>> > Hello Developers, >> >>> > >> >>> > I am new to Android, I am using odk platform to customize the app >> as >> >>> > per our organization requirement. I want to add login activity when >> the app >> >>> > starts, could anyone teach me how to use login API and find whether >> that >> >>> > user is valid or not? >> >>> > >> >>> > Thanks in Advance, >> >>> > >> >>> > Regards, >> >>> > Gaurab Pradhan >> >>> > >> >>> > -- >> >>> > 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. >> > >> > -- >> > 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. >> >