Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants