RADAR-base / RADAR-Rest-Source-Auth

A simple application to support authorization of wearable devices using OAuth using a webservice with REST Endpoints.
https://radar-base.org/
Apache License 2.0
1 stars 0 forks source link

Oura Oauth2 Integration #241

Closed Hsankesara closed 8 months ago

Hsankesara commented 8 months ago

Extended OAuth2 and created new Oura Oauth2 integration.

Hsankesara commented 8 months ago

Thanks, @mpgxvii, I have made the changes.

mpgxvii commented 8 months ago

@Hsankesara do we have a serviceUserId or equivalent that we receive from Oura that identifies the users? Similar to Fitbit?

Hsankesara commented 8 months ago

@Hsankesara do we have a serviceUserId or equivalent that we receive from Oura that identifies the users? Similar to Fitbit?

I don't think so. it doesn't seem to returning any service_id equivalent.

Hsankesara commented 8 months ago

Thanks, @mpgxvii!

yatharthranjan commented 8 months ago

I don't think so. it doesn't seem to returning any service_id equivalent.

We need this in the push-endpoint as the webhook only provides a user_id for mapping to users in our user repository. Seems it is on the API path https://api.ouraring.com/v1/userinfo?access_token=xyz , we should get this and add it to user.