openfoodnetwork icon indicating copy to clipboard operation
openfoodnetwork copied to clipboard

DFC auth

Open RachL opened this issue 4 years ago • 0 comments

What is the problem we are solving

The DFC prototype is moving forward. https://github.com/datafoodconsortium

It has reached a stage where it can read information from platforms and link a product from platform A to the same product on a platform B... C etc.

This has been done so far without the practical example of OFN. Now the time has come to eat our own dog's food :)

We need to perform those tasks to help the DFC community:

  1. Create an OIDC account on http://185.25.192.252:8080/ui/#/x-home
  2. Find a way to save the token on OFN side (enterprise)
  3. Manage a catalog of products, with DFC JSON format (with or without Simon's semantic bus.... to be decided)
  4. Deal with the link between DFC and OFN, through OIDC token
  • Decode the token
  • Step 1: Get matching user from harcode
  • Step 2: Get matching user through email
  • Step 3: Get matching user from token saved at OFN side

Success factors = expected outcome

At the end of the epic, we should be able to:

  1. Import data from OFN (using an authenticated user account) to the DFC prototype
  2. Get data from the DFC protype to OFN :sunglasses:

This will be tested with a real use case.

Useful information for inception

Discourse post to come

RachL avatar Apr 02 '20 17:04 RachL