Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Add support for API Keys #4504

Closed
nwmac opened this issue Aug 13, 2020 · 0 comments · Fixed by #4515
Closed

Add support for API Keys #4504

nwmac opened this issue Aug 13, 2020 · 0 comments · Fixed by #4515
Assignees
Projects
Milestone

Comments

@nwmac
Copy link
Contributor

nwmac commented Aug 13, 2020

At present, the backend API only supports auth via an interactive user session - the user must login via the UI and have a valid session cookie.

There are several use cases that would be helped by allowing users to create API Keys, much like many other systems, such as GitHub.

  • Add a table to the db to store API Keys, these should be bound to a given userid
  • Add middleware to the backend echo router that detects if there is no session but an Authorization header is present and then validates the API Key and creates a session for the duration of the API Call, so that it can proceed
  • Add Rest API for creating, listing and deleting API keys - the API Key should only be returned once with the creation API

The main parts of the Stratos API that we want to expose are:

  • Adding, deleting, updating and listing endpoints
  • Adding, deleting, updating and listing tokens
@nwmac nwmac added this to In progress in Sprint Aug 18, 2020
@richard-cox richard-cox added this to the 4.1.0 milestone Aug 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Sprint
  
In progress
Development

Successfully merging a pull request may close this issue.

3 participants