ODK Collect v1.4.3 does not send username/password

Hi,

I am working on integrating ODK Collect functionality into DHIS2. I have
set up a servlet that implements /formList endpoint. When I set my server
address (http://my-machine:8080), username and password in ODK collect then
ODK collect directly calls the URL http://my-machine:8080/formList but does
not send authentication credentials username/password.

How can I tell ODK collect to send username/password so that I can
authenticate requester with existing dhis user database.

Thanks.

Anum,

Are you using the Collect-Aggregate APIs at
http://opendatakit.org/use/aggregate/data-transfer/#APIs?

Yaw

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

On Tue, Jun 10, 2014 at 12:31 PM, Anum Naveed anumnaveed1989@gmail.com wrote:

I am working on integrating ODK Collect functionality into DHIS2. I have set
up a servlet that implements /formList endpoint. When I set my server
address (http://my-machine:8080), username and password in ODK collect then
ODK collect directly calls the URL http://my-machine:8080/formList but does
not send authentication credentials username/password.

Yaw,

At the moment I just put the server URL of my server, username and password
in ODK Collect. How can I tell ODK collect to use Collect-Aggregate APIs
please?

Thanks

··· On Tue, Jun 10, 2014 at 8:33 PM, Yaw Anokwa wrote:

Anum,

Are you using the Collect-Aggregate APIs at
http://opendatakit.org/use/aggregate/data-transfer/#APIs?

Yaw

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

On Tue, Jun 10, 2014 at 12:31 PM, Anum Naveed anumnaveed1989@gmail.com wrote:

I am working on integrating ODK Collect functionality into DHIS2. I have
set
up a servlet that implements /formList endpoint. When I set my server
address (http://my-machine:8080), username and password in ODK collect
then
ODK collect directly calls the URL http://my-machine:8080/formList but
does
not send authentication credentials username/password.

--
You received this message because you are subscribed to a topic in the
Google Groups "ODK Developers" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/opendatakit-developers/U_sD_bchwf0/unsubscribe
.
To unsubscribe from this group and all its topics, send an email to
opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Anum,

Collect already uses those APIs. Per the spec, you have to implement a
servlet that knows about OpenRosa auth and form submission. See
https://bitbucket.org/javarosa/javarosa/wiki/OpenRosaAPI for those
APIs.

Yaw

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

On Tue, Jun 10, 2014 at 12:42 PM, Anum Naveed anumnaveed1989@gmail.com wrote:

Yaw,

At the moment I just put the server URL of my server, username and password
in ODK Collect. How can I tell ODK collect to use Collect-Aggregate APIs
please?

Thanks

On Tue, Jun 10, 2014 at 8:33 PM, Yaw Anokwa yanokwa@nafundi.com wrote:

Anum,

Are you using the Collect-Aggregate APIs at
http://opendatakit.org/use/aggregate/data-transfer/#APIs?

Yaw

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

On Tue, Jun 10, 2014 at 12:31 PM, Anum Naveed anumnaveed1989@gmail.com wrote:

I am working on integrating ODK Collect functionality into DHIS2. I have
set
up a servlet that implements /formList endpoint. When I set my server
address (http://my-machine:8080), username and password in ODK collect
then
ODK collect directly calls the URL http://my-machine:8080/formList but
does
not send authentication credentials username/password.

--
You received this message because you are subscribed to a topic in the
Google Groups "ODK Developers" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/opendatakit-developers/U_sD_bchwf0/unsubscribe.
To unsubscribe from this group and all its topics, 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.

Yaw,

How can my servlet class tell the ODK collect to send the authentication
packet using Authentication API, rather than sending 'GET' request on
formList endpoint?

Thanks

··· On Tue, Jun 10, 2014 at 8:47 PM, Yaw Anokwa wrote:

Anum,

Collect already uses those APIs. Per the spec, you have to implement a
servlet that knows about OpenRosa auth and form submission. See
https://bitbucket.org/javarosa/javarosa/wiki/OpenRosaAPI for those
APIs.

Yaw

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

On Tue, Jun 10, 2014 at 12:42 PM, Anum Naveed anumnaveed1989@gmail.com wrote:

Yaw,

At the moment I just put the server URL of my server, username and
password
in ODK Collect. How can I tell ODK collect to use Collect-Aggregate APIs
please?

Thanks

On Tue, Jun 10, 2014 at 8:33 PM, Yaw Anokwa yanokwa@nafundi.com wrote:

Anum,

Are you using the Collect-Aggregate APIs at
http://opendatakit.org/use/aggregate/data-transfer/#APIs?

Yaw

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

On Tue, Jun 10, 2014 at 12:31 PM, Anum Naveed <anumnaveed1989@gmail.com wrote:

I am working on integrating ODK Collect functionality into DHIS2. I
have

set
up a servlet that implements /formList endpoint. When I set my server
address (http://my-machine:8080), username and password in ODK
collect

then
ODK collect directly calls the URL http://my-machine:8080/formList
but

does
not send authentication credentials username/password.

--
You received this message because you are subscribed to a topic in the
Google Groups "ODK Developers" group.
To unsubscribe from this topic, visit

https://groups.google.com/d/topic/opendatakit-developers/U_sD_bchwf0/unsubscribe
.

To unsubscribe from this group and all its topics, 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.

--
You received this message because you are subscribed to a topic in the
Google Groups "ODK Developers" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/opendatakit-developers/U_sD_bchwf0/unsubscribe
.
To unsubscribe from this group and all its topics, send an email to
opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Authentication follows http://tools.ietf.org/html/rfc2617 per
https://bitbucket.org/javarosa/javarosa/wiki/AuthenticationAPI

The standard interaction is that the client sends a request, without
Authentication credentials, and the server then responds with an
authentication challenge.

The client then responds with the requested type of credentials.

So if the server does not demand credentials, the client does not provide
them.

One of the advantages of doing a HEAD request at the start of a submission
is that the client sends very little data during this authentication
challenge, and the actual POST only occurs after authentication has
occurred, saving bandwidth.

··· On Tue, Jun 10, 2014 at 1:13 PM, Christopher Robert wrote:

Anum,

You may need to play around a little, and/or take a look at the Collect
sources. It may well try anonymously first, then, if challenged for
authentication credentials (access denied), supply them in a subsequent
request. Not sure, but it's an empirical question. Surely Collect is able
to authenticate to Aggregate -- so you could set up an Aggregate server and
use a sniffer to watch what's happening.

Best,

Chris

On Tue, Jun 10, 2014 at 4:01 PM, Anum Naveed anumnaveed1989@gmail.com wrote:

Yaw,

How can my servlet class tell the ODK collect to send the authentication
packet using Authentication API, rather than sending 'GET' request on
formList endpoint?

Thanks

On Tue, Jun 10, 2014 at 8:47 PM, Yaw Anokwa yanokwa@nafundi.com wrote:

Anum,

Collect already uses those APIs. Per the spec, you have to implement a
servlet that knows about OpenRosa auth and form submission. See
https://bitbucket.org/javarosa/javarosa/wiki/OpenRosaAPI for those
APIs.

Yaw

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

On Tue, Jun 10, 2014 at 12:42 PM, Anum Naveed anumnaveed1989@gmail.com wrote:

Yaw,

At the moment I just put the server URL of my server, username and
password
in ODK Collect. How can I tell ODK collect to use Collect-Aggregate
APIs
please?

Thanks

On Tue, Jun 10, 2014 at 8:33 PM, Yaw Anokwa yanokwa@nafundi.com wrote:

Anum,

Are you using the Collect-Aggregate APIs at
http://opendatakit.org/use/aggregate/data-transfer/#APIs?

Yaw

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

On Tue, Jun 10, 2014 at 12:31 PM, Anum Naveed < anumnaveed1989@gmail.com> wrote:

I am working on integrating ODK Collect functionality into DHIS2. I
have

set
up a servlet that implements /formList endpoint. When I set my
server

address (http://my-machine:8080), username and password in ODK
collect

then
ODK collect directly calls the URL http://my-machine:8080/formList
but

does
not send authentication credentials username/password.

--
You received this message because you are subscribed to a topic in the
Google Groups "ODK Developers" group.
To unsubscribe from this topic, visit

https://groups.google.com/d/topic/opendatakit-developers/U_sD_bchwf0/unsubscribe
.

To unsubscribe from this group and all its topics, 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.

--
You received this message because you are subscribed to a topic in the
Google Groups "ODK Developers" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/opendatakit-developers/U_sD_bchwf0/unsubscribe
.
To unsubscribe from this group and all its topics, 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.

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

Anum,

You may need to play around a little, and/or take a look at the Collect
sources. It may well try anonymously first, then, if challenged for
authentication credentials (access denied), supply them in a subsequent
request. Not sure, but it's an empirical question. Surely Collect is able
to authenticate to Aggregate -- so you could set up an Aggregate server and
use a sniffer to watch what's happening.

Best,

Chris

··· On Tue, Jun 10, 2014 at 4:01 PM, Anum Naveed wrote:

Yaw,

How can my servlet class tell the ODK collect to send the authentication
packet using Authentication API, rather than sending 'GET' request on
formList endpoint?

Thanks

On Tue, Jun 10, 2014 at 8:47 PM, Yaw Anokwa yanokwa@nafundi.com wrote:

Anum,

Collect already uses those APIs. Per the spec, you have to implement a
servlet that knows about OpenRosa auth and form submission. See
https://bitbucket.org/javarosa/javarosa/wiki/OpenRosaAPI for those
APIs.

Yaw

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

On Tue, Jun 10, 2014 at 12:42 PM, Anum Naveed anumnaveed1989@gmail.com wrote:

Yaw,

At the moment I just put the server URL of my server, username and
password
in ODK Collect. How can I tell ODK collect to use Collect-Aggregate APIs
please?

Thanks

On Tue, Jun 10, 2014 at 8:33 PM, Yaw Anokwa yanokwa@nafundi.com wrote:

Anum,

Are you using the Collect-Aggregate APIs at
http://opendatakit.org/use/aggregate/data-transfer/#APIs?

Yaw

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

On Tue, Jun 10, 2014 at 12:31 PM, Anum Naveed < anumnaveed1989@gmail.com> wrote:

I am working on integrating ODK Collect functionality into DHIS2. I
have

set
up a servlet that implements /formList endpoint. When I set my server
address (http://my-machine:8080), username and password in ODK
collect

then
ODK collect directly calls the URL http://my-machine:8080/formList
but

does
not send authentication credentials username/password.

--
You received this message because you are subscribed to a topic in the
Google Groups "ODK Developers" group.
To unsubscribe from this topic, visit

https://groups.google.com/d/topic/opendatakit-developers/U_sD_bchwf0/unsubscribe
.

To unsubscribe from this group and all its topics, 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.

--
You received this message because you are subscribed to a topic in the
Google Groups "ODK Developers" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/opendatakit-developers/U_sD_bchwf0/unsubscribe
.
To unsubscribe from this group and all its topics, 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.

Hi Mitch,

Does ODKCollect 1.4.3 supports 'Basic Authentication'? If yes then what is
the procedure to enable that. I am implement custom aggregate server for
DHIS. I want ODKcollect to authenticate with DHIS through basic
authentication over https.

I could do digest auth which is explained on '
https://bitbucket.org/javarosa/javarosa/wiki/AuthenticationAPI' but I don't
know how to do basic auth.

Thanks

··· On Tue, Jun 10, 2014 at 9:31 PM, Mitch Sundt wrote:

Authentication follows http://tools.ietf.org/html/rfc2617 per
https://bitbucket.org/javarosa/javarosa/wiki/AuthenticationAPI

The standard interaction is that the client sends a request, without
Authentication credentials, and the server then responds with an
authentication challenge.

The client then responds with the requested type of credentials.

So if the server does not demand credentials, the client does not provide
them.

One of the advantages of doing a HEAD request at the start of a submission
is that the client sends very little data during this authentication
challenge, and the actual POST only occurs after authentication has
occurred, saving bandwidth.

On Tue, Jun 10, 2014 at 1:13 PM, Christopher Robert <crobert@surveycto.com wrote:

Anum,

You may need to play around a little, and/or take a look at the Collect
sources. It may well try anonymously first, then, if challenged for
authentication credentials (access denied), supply them in a subsequent
request. Not sure, but it's an empirical question. Surely Collect is able
to authenticate to Aggregate -- so you could set up an Aggregate server and
use a sniffer to watch what's happening.

Best,

Chris

On Tue, Jun 10, 2014 at 4:01 PM, Anum Naveed anumnaveed1989@gmail.com wrote:

Yaw,

How can my servlet class tell the ODK collect to send the authentication
packet using Authentication API, rather than sending 'GET' request on
formList endpoint?

Thanks

On Tue, Jun 10, 2014 at 8:47 PM, Yaw Anokwa yanokwa@nafundi.com wrote:

Anum,

Collect already uses those APIs. Per the spec, you have to implement a
servlet that knows about OpenRosa auth and form submission. See
https://bitbucket.org/javarosa/javarosa/wiki/OpenRosaAPI for those
APIs.

Yaw

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

On Tue, Jun 10, 2014 at 12:42 PM, Anum Naveed anumnaveed1989@gmail.com wrote:

Yaw,

At the moment I just put the server URL of my server, username and
password
in ODK Collect. How can I tell ODK collect to use Collect-Aggregate
APIs
please?

Thanks

On Tue, Jun 10, 2014 at 8:33 PM, Yaw Anokwa yanokwa@nafundi.com wrote:

Anum,

Are you using the Collect-Aggregate APIs at
http://opendatakit.org/use/aggregate/data-transfer/#APIs?

Yaw

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

On Tue, Jun 10, 2014 at 12:31 PM, Anum Naveed < anumnaveed1989@gmail.com> wrote:

I am working on integrating ODK Collect functionality into DHIS2.
I have

set
up a servlet that implements /formList endpoint. When I set my
server

address (http://my-machine:8080), username and password in ODK
collect

then
ODK collect directly calls the URL http://my-machine:8080/formList
but

does
not send authentication credentials username/password.

--
You received this message because you are subscribed to a topic in
the

Google Groups "ODK Developers" group.
To unsubscribe from this topic, visit

https://groups.google.com/d/topic/opendatakit-developers/U_sD_bchwf0/unsubscribe
.

To unsubscribe from this group and all its topics, 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.

--
You received this message because you are subscribed to a topic in the
Google Groups "ODK Developers" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/opendatakit-developers/U_sD_bchwf0/unsubscribe
.
To unsubscribe from this group and all its topics, 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.

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

--
You received this message because you are subscribed to a topic in the
Google Groups "ODK Developers" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/opendatakit-developers/U_sD_bchwf0/unsubscribe
.
To unsubscribe from this group and all its topics, send an email to
opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi Anum,

Collect supports basic auth. How it communicates with compliant
servers is outlined at
https://bitbucket.org/javarosa/javarosa/wiki/AuthenticationAPI.

Explaining how to do basic auth is beyond the kind of help the mailing
list can provide, but there are plenty of resources online that do
exactly that. If you have a more specific question, then I'm sure the
community is glad to help with that.

Yaw

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

On Mon, Aug 25, 2014 at 3:58 AM, Anum Naveed anumnaveed1989@gmail.com wrote:

Hi Mitch,

Does ODKCollect 1.4.3 supports 'Basic Authentication'? If yes then what is
the procedure to enable that. I am implement custom aggregate server for
DHIS. I want ODKcollect to authenticate with DHIS through basic
authentication over https.

I could do digest auth which is explained on
'https://bitbucket.org/javarosa/javarosa/wiki/AuthenticationAPI' but I don't
know how to do basic auth.

Thanks

On Tue, Jun 10, 2014 at 9:31 PM, Mitch Sundt mitchellsundt@gmail.com wrote:

Authentication follows http://tools.ietf.org/html/rfc2617 per
https://bitbucket.org/javarosa/javarosa/wiki/AuthenticationAPI

The standard interaction is that the client sends a request, without
Authentication credentials, and the server then responds with an
authentication challenge.

The client then responds with the requested type of credentials.

So if the server does not demand credentials, the client does not provide
them.

One of the advantages of doing a HEAD request at the start of a submission
is that the client sends very little data during this authentication
challenge, and the actual POST only occurs after authentication has
occurred, saving bandwidth.

On Tue, Jun 10, 2014 at 1:13 PM, Christopher Robert crobert@surveycto.com wrote:

Anum,

You may need to play around a little, and/or take a look at the Collect
sources. It may well try anonymously first, then, if challenged for
authentication credentials (access denied), supply them in a subsequent
request. Not sure, but it's an empirical question. Surely Collect is able to
authenticate to Aggregate -- so you could set up an Aggregate server and use
a sniffer to watch what's happening.

Best,

Chris

On Tue, Jun 10, 2014 at 4:01 PM, Anum Naveed anumnaveed1989@gmail.com wrote:

Yaw,

How can my servlet class tell the ODK collect to send the authentication
packet using Authentication API, rather than sending 'GET' request on
formList endpoint?

Thanks

On Tue, Jun 10, 2014 at 8:47 PM, Yaw Anokwa yanokwa@nafundi.com wrote:

Anum,

Collect already uses those APIs. Per the spec, you have to implement a
servlet that knows about OpenRosa auth and form submission. See
https://bitbucket.org/javarosa/javarosa/wiki/OpenRosaAPI for those
APIs.

Yaw

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

On Tue, Jun 10, 2014 at 12:42 PM, Anum Naveed anumnaveed1989@gmail.com wrote:

Yaw,

At the moment I just put the server URL of my server, username and
password
in ODK Collect. How can I tell ODK collect to use Collect-Aggregate
APIs
please?

Thanks

On Tue, Jun 10, 2014 at 8:33 PM, Yaw Anokwa yanokwa@nafundi.com wrote:

Anum,

Are you using the Collect-Aggregate APIs at
http://opendatakit.org/use/aggregate/data-transfer/#APIs?

Yaw

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

On Tue, Jun 10, 2014 at 12:31 PM, Anum Naveed anumnaveed1989@gmail.com wrote:

I am working on integrating ODK Collect functionality into DHIS2.
I have
set
up a servlet that implements /formList endpoint. When I set my
server
address (http://my-machine:8080), username and password in ODK
collect
then
ODK collect directly calls the URL http://my-machine:8080/formList
but
does
not send authentication credentials username/password.

--
You received this message because you are subscribed to a topic in
the
Google Groups "ODK Developers" group.
To unsubscribe from this topic, visit

https://groups.google.com/d/topic/opendatakit-developers/U_sD_bchwf0/unsubscribe.
To unsubscribe from this group and all its topics, 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.

--
You received this message because you are subscribed to a topic in the
Google Groups "ODK Developers" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/opendatakit-developers/U_sD_bchwf0/unsubscribe.
To unsubscribe from this group and all its topics, 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.

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

--
You received this message because you are subscribed to a topic in the
Google Groups "ODK Developers" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/opendatakit-developers/U_sD_bchwf0/unsubscribe.
To unsubscribe from this group and all its topics, 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.

Additionally -- note that Basic Auth *requires *an https (TLS) connection
-- ODK Collect only enables this authentication mechanism when https is in
use. This requires an SSL certificate on your server.

··· On Mon, Aug 25, 2014 at 9:06 AM, Yaw Anokwa wrote:

Hi Anum,

Collect supports basic auth. How it communicates with compliant
servers is outlined at
https://bitbucket.org/javarosa/javarosa/wiki/AuthenticationAPI.

Explaining how to do basic auth is beyond the kind of help the mailing
list can provide, but there are plenty of resources online that do
exactly that. If you have a more specific question, then I'm sure the
community is glad to help with that.

Yaw

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

On Mon, Aug 25, 2014 at 3:58 AM, Anum Naveed anumnaveed1989@gmail.com wrote:

Hi Mitch,

Does ODKCollect 1.4.3 supports 'Basic Authentication'? If yes then what
is
the procedure to enable that. I am implement custom aggregate server for
DHIS. I want ODKcollect to authenticate with DHIS through basic
authentication over https.

I could do digest auth which is explained on
'https://bitbucket.org/javarosa/javarosa/wiki/AuthenticationAPI' but I
don't
know how to do basic auth.

Thanks

On Tue, Jun 10, 2014 at 9:31 PM, Mitch Sundt mitchellsundt@gmail.com wrote:

Authentication follows http://tools.ietf.org/html/rfc2617 per
https://bitbucket.org/javarosa/javarosa/wiki/AuthenticationAPI

The standard interaction is that the client sends a request, without
Authentication credentials, and the server then responds with an
authentication challenge.

The client then responds with the requested type of credentials.

So if the server does not demand credentials, the client does not
provide

them.

One of the advantages of doing a HEAD request at the start of a
submission

is that the client sends very little data during this authentication
challenge, and the actual POST only occurs after authentication has
occurred, saving bandwidth.

On Tue, Jun 10, 2014 at 1:13 PM, Christopher Robert crobert@surveycto.com wrote:

Anum,

You may need to play around a little, and/or take a look at the Collect
sources. It may well try anonymously first, then, if challenged for
authentication credentials (access denied), supply them in a subsequent
request. Not sure, but it's an empirical question. Surely Collect is
able to

authenticate to Aggregate -- so you could set up an Aggregate server
and use

a sniffer to watch what's happening.

Best,

Chris

On Tue, Jun 10, 2014 at 4:01 PM, Anum Naveed <anumnaveed1989@gmail.com wrote:

Yaw,

How can my servlet class tell the ODK collect to send the
authentication

packet using Authentication API, rather than sending 'GET' request on
formList endpoint?

Thanks

On Tue, Jun 10, 2014 at 8:47 PM, Yaw Anokwa yanokwa@nafundi.com wrote:

Anum,

Collect already uses those APIs. Per the spec, you have to implement
a

servlet that knows about OpenRosa auth and form submission. See
https://bitbucket.org/javarosa/javarosa/wiki/OpenRosaAPI for those
APIs.

Yaw

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

On Tue, Jun 10, 2014 at 12:42 PM, Anum Naveed anumnaveed1989@gmail.com wrote:

Yaw,

At the moment I just put the server URL of my server, username and
password
in ODK Collect. How can I tell ODK collect to use Collect-Aggregate
APIs
please?

Thanks

On Tue, Jun 10, 2014 at 8:33 PM, Yaw Anokwa yanokwa@nafundi.com wrote:

Anum,

Are you using the Collect-Aggregate APIs at
http://opendatakit.org/use/aggregate/data-transfer/#APIs?

Yaw

Need ODK services? http://nafundi.com provides form design,
server

setup, professional support, and software development for ODK.

On Tue, Jun 10, 2014 at 12:31 PM, Anum Naveed anumnaveed1989@gmail.com wrote:

I am working on integrating ODK Collect functionality into
DHIS2.

I have
set
up a servlet that implements /formList endpoint. When I set my
server
address (http://my-machine:8080), username and password in ODK
collect
then
ODK collect directly calls the URL
http://my-machine:8080/formList

but
does
not send authentication credentials username/password.

--
You received this message because you are subscribed to a topic in
the
Google Groups "ODK Developers" group.
To unsubscribe from this topic, visit

https://groups.google.com/d/topic/opendatakit-developers/U_sD_bchwf0/unsubscribe
.

To unsubscribe from this group and all its topics, 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.

--
You received this message because you are subscribed to a topic in
the

Google Groups "ODK Developers" group.
To unsubscribe from this topic, visit

https://groups.google.com/d/topic/opendatakit-developers/U_sD_bchwf0/unsubscribe
.

To unsubscribe from this group and all its topics, 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.

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

--
You received this message because you are subscribed to a topic in the
Google Groups "ODK Developers" group.
To unsubscribe from this topic, visit

https://groups.google.com/d/topic/opendatakit-developers/U_sD_bchwf0/unsubscribe
.

To unsubscribe from this group and all its topics, 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.

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