API Proxy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Archie 01a586f791 Added docker-compose.yml to .gitignore 2 weeks ago
.gitignore Added docker-compose.yml to .gitignore 2 weeks ago
Dockerfile Docker 2 weeks ago
LICENSE License 2 weeks ago
README.md README file 2 weeks ago
config.example.json Specify port in config 2 weeks ago
docker-compose-example.yml Docker 2 weeks ago
index.js Default Page 2 weeks ago
package.json Helmet 2 weeks ago
yarn.lock Helmet 2 weeks ago



authspok is an API proxy by Alles for handling requests between microservices

Config File

The config.json file can contain 3 parts: port, services and clients.

  • port is optional and defaults to 8080. It is the port that authspok listens on.
  • services are the service names and the URLs that requests should be proxied to. For example, if there is {"users": "http://localhost:8081"}, then https://authspok.example.com/users/example goes to http://localhost:8081/example
  • clients specified credentials and which services they have access to. The client secret is specified in secret and access is an array of service names that the client can access.

Client Authentication

Use HTTP Basic Auth to access services through authspok. A client can only access the services specified in the config file.


authspok can be used with Docker and Docker Compose. Copy the docker-compose-example.yml file to docker-compose.yml and change the port to the one you want to use.