roqua / physiqual

Ruby Engine for merging various datasources with diary questionnaire data
MIT License
1 stars 1 forks source link

Only allow the use of one token per participant #69

Closed frbl closed 8 years ago

frbl commented 8 years ago

In order to only allow the use of one token per participant, the following needs to change:

Furthermore, we need to remove the code where the data from multiple tokens gets merged and where data is retrieved from multiple sensor provider services.

frbl commented 8 years ago

How do we deal with incomplete tokens?

My suggestion, allow a person to have multiple tokens IF there is not yet a valid one.

emerencia commented 8 years ago

I don't see why we should make an exception for incomplete tokens. Once a user has clicked on a service, we lock them into that service. So if they click "Google Fit", we create an incomplete google fit token. If they can cancel that process and at a later time try to resume it, we'll resuse that same incomplete token (and since they've already chosen for Google Fit, we don't allow them to switch to a different service). When the oauth registration completes successfully, the incomplete token is updated and becomes a complete token.

frbl commented 8 years ago

https://github.com/roqua/physiqual/tree/fb-remove-merging

emerencia commented 8 years ago

Fixed in #73.