OpenFn / adaptors

The new home for OpenFn adaptors; re-usable connectors for the most common DPGs and DPI building blocks.
GNU General Public License v3.0
6 stars 8 forks source link

new adaptor for `ona` with Oauth2 #580

Open aleksa-krolls opened 4 months ago

aleksa-krolls commented 4 months ago

Request

New adaptor to connect with ona API to:

  1. handle authentication using Oauth2 (see docs)
  2. generic GET helper so we can get a list of forms, paginate, get data for one submission, and query data points from 1 submission
  3. generic POST to add tags to a submission

Resources

Customer considerations

No actual client work yet, but this would be really nice to have for an upcoming demo with UNICEF's UNICARE team on June 6th. If not possible, we'll make do without - but good to add to roadmap.

Toggl

adaptors

aleksa-krolls commented 4 months ago

@christad92 this is an adaptor that would be nice to have soon and that we have a demo credential for, but it requires Oauth. Let's discuss in our call tomorrow - not sure if all Oauth adaptors still need to go through product team, or if this is something Mtuchi/Hunter could deliver given the new generic Oauth implementation.

christad92 commented 4 months ago

@aleksa-krolls from the call, I think Mtichi/Hunter can implement this regardless of the OAuth requirement.

cc: @josephjclark

aleksa-krolls commented 4 months ago

@hunterachieng this is a new adaptor, so pls align with Joe on the approach before starting work next week :)

hunterachieng commented 4 months ago

@aleksa-krolls Do we have creds for Ona that I can use for authentication?

josephjclark commented 4 months ago

Hey, before starting this, do you think we could update the template https://github.com/OpenFn/adaptors/issues/583?

We can take the learnings from satusehat, implement them in the template, then run the template to do this adaptor. That should do 90% of the work "for free" and ensure good practice. We can then work out how to plug in oauth on top

If we can wait a day or two I may be able to update the template myself

aleksa-krolls commented 4 months ago

hey @josephjclark is that^ a question for me or @hunterachieng? Should @hunterachieng rather plug into the template #583 next?

josephjclark commented 4 months ago

Hey @aleksa-krolls this is done - ignore my comment please!

aleksa-krolls commented 3 months ago

@hunterachieng we're still blocked here, so we will wait until later in June to pick this back up. Keep you posted.