REST Source Authorizer
https://github.com/RADAR-base/RADAR-Rest-Source-Auth
The REST Source Authorizer is an application that allows the platform to get authorization data from users in order to get access to their data from 3rd party applications (through their REST API).
In order to get authorization data, the authorizer will redirect the user to the selected 3rd party web portal/dashboard. Once the credentials have been successfully authenticated, the user will then be redirected back to the REST Source authorizer where further details can be added and finally stored.
Currently, the following 3rd party APIs are supported:
Garmin Health API
See Push Endpoint
The Garmin Health API uses OAuth1 authorization.
Fitbit API
See REST Connector
The Fitbit API uses OAuth2 authorization.
Step-by-step Guide
Visit the authorizer web app by going to http://domain-name/rest-sources/authorizer. Please ask your administrator to provide you with the correct url of the application.
Once you open the application, click on “LOGIN WITH MANAGEMENT PORTAL”.
This will redirect you to a Management Portal login screen. Enter your Management Portal credentials to login.
Once you have successfully logged in, Please click on the Approve button.
You will then see the home screen of the application. You can either make a request to get authorization details (“Request to Authorize”) or Select a project to view a list of users (by project) that have been authenticated.
After selecting a project, you will see a list of authenticated users. You also have the option to View/Edit Info, Reset, or Delete the user.
In order to authorize a user, you will need to choose a the service/device type (supported by the platform). Currently only the Fitbit and Garmin APIs are supported. After choosing a device, select Request to Authorize.
This will then redirect you to the web portal of the selected service. In this case, we have chosen Fitbit. Enter your Fitbit credentials.
After successful authentication with Fitbit, you will be redirected back to the authorizer where you can enter the user’s details. After entering the user’s details, click Submit.
The user has now been successfully authorized and added to the platform. The platform (specifically the REST connector or Push Endpoint components) will now pull/receive data for this user from the 3rd party service.