Sign inSign up

radarbase/radar-device-auth-backend

By radarbase

•Updated about 7 years ago

The service to authorize and persist user information

Image
Security
Integration & delivery
Internet of things
0

1.3K

radarbase/radar-device-auth-backend repository overview

⁠RADAR-REST-Source-Auth

An application to get authorization from users to access their data through 3rd party APIs. Mainly supports OAuth2 Authorization code follow to request authorization and processes the returned authorization code to add new entries of users. It creates new users and adds properties compatible and required by the RADAR-REST-CONNECTOR/RADAR-FITBIT-REST-CONNECTOR.

⁠Features supported

  1. It has one active entity where we store user properties.
  2. Has liquibase support to enable seamless database schema migration.
  3. Has a simple web-service with REST Endpoints to share configured source-type client details and authorized users.
  4. Currently various source-types can be configured using a YAML file and these entries are stored in memory.

⁠APIs to be used by REST Source-Connectors

RADAR REST Source-Connectors can use the APIs as follows.

  1. To get all configured users for a particular source-type use GET */users/{source-type} .
  2. To get details of a particular user use GET */users/{id}.
  3. To get the token details of a particular user use GET */users/{id}/token.
  4. To refresh the token of a particular user use POST /users/{id}/token.

⁠Usage

To run this application from source:

./gradlew build assemble
java -jar radar-rest-sources-authorizer*.jar

To build and run this application from Docker:


docker build -t radarbase/radar-rest-source-auth-backend:1.0.1 .

docker run -p 8080:8080 radarbase/radar-rest-source-auth-backend:latest

Tag summary

Content type

Image

Digest

Size

91.1 MB

Last updated

about 7 years ago

docker pull radarbase/radar-device-auth-backend