OS2iot / OS2iot-backend

This repository contains the backend to the project OS2iot.
Mozilla Public License 2.0
10 stars 7 forks source link

Add controller for retrieving API key info #162

Closed AramAlsabti closed 2 years ago

AramAlsabti commented 2 years ago

With an API key, you need to know which organization id it's tied to as some endpoints require it. You cannot acquire this with the API key as the /organization endpoint requires a JWT token and an admin role.

This adds a new API key controller whose purpose is to harbor information such as the corresponding organization to an API key. Keeping it separate from the other controllers makes scoping and maintenance easier

Related docs PR