viperscape / plugs

skeleton for getting an api key service up and running

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API Key Service

This is a basic template for generating and storing API keys, for some imagined service. You can run this in parallel on different systems for load balancing, ideally after verification you can pass the request on to some backend service. This should sit behind a SSL reverse proxy, such as Nginx

Persistent Storage

This example uses Azure Tables as a backend store. It's also one of the simplest cloud scaling data stores to set up. The created and verified API keys are cached in memory for faster, future comparison. Each key is encrypted using bcrypt hashing algorithm, considered a best practice.

License

Copyright 2022 Chris Gill

Licensed under the Apache License, Version 2.0

About

skeleton for getting an api key service up and running

License:Apache License 2.0


Languages

Language:JavaScript 100.0%