This project is a microservice for authentication using FastAPI and python-keycloak. It leverages the power of Keycloak for secure and robust authentication.
Keycloak is an open-source Identity and Access Management solution. It provides features such as Single Sign-On (SSO), user federation, and centralized authentication management.
To run the project locally, follow these steps:
- Activate environment
poetry shell
- Install dependencies
poetry install
- Run the server
poetry run app auth runserver
or app auth runserver
or make run
Execute the following commands to run tests and check code coverage:
- Run tests
poetry run coverage run -m pytest -v tests
- Check code test coverage
poetry run coverage report -m
Feel free to explore and extend the functionality by adding more routes and features to suit your authentication needs.
Contributions are welcome! If you have any ideas or improvements, please open an issue or submit a pull request.