Read the full docs at: authentication-as-a-service.
This service exposes several endpoints that are necessary in order to implement the Authorization Code Grant of the OAuth 2.0 protocol. It provides a secure way for to exchange tokens with a Frontend, protecting from the following attacks:
- CSRF attack
- XSS attack
This service should be used together with other microservices, as you can read in the full docs.
FastAPI: for the api creationPoetry: for dependency management- Dependency Injector for dependency injection, singleton pattern implementation, and project structure.
DynamoDBfor temporary session identifiers storage.DockerandDockerComposerfor containerization.
-
Clone the local-stack.
- Start a local DynamoDB server by running:
make start-databases - Start a reverse-proxy server by running:
make start-nginx
- Start a local DynamoDB server by running:
-
Add the following line to your
/etc/hosts:
172.30.0.8 dynamodb.local
172.30.1.0 authentication.local
- Start the service:
cd local-stack
./stack-run.sh