authentik/README.md

68 lines
2.8 KiB
Markdown
Raw Normal View History

<img src="docs/images/logo.svg" height="50" alt="passbook logo"><img src="passbook/static/static/passbook/brand_inverted.svg" height="50" alt="passbook">
2020-07-12 21:53:25 +01:00
[![CI Build status](https://img.shields.io/azure-devops/build/beryjuorg/passbook/1?style=flat-square)](https://dev.azure.com/beryjuorg/passbook/_build?definitionId=1)
![Tests](https://img.shields.io/azure-devops/tests/beryjuorg/passbook/1?compact_message&style=flat-square)
2020-07-12 21:53:25 +01:00
[![Code Coverage](https://img.shields.io/codecov/c/gh/beryju/passbook?style=flat-square)](https://codecov.io/gh/BeryJu/passbook)
2020-06-15 10:56:20 +01:00
![Docker pulls](https://img.shields.io/docker/pulls/beryju/passbook.svg?style=flat-square)
![Latest version](https://img.shields.io/docker/v/beryju/passbook?sort=semver&style=flat-square)
![LGTM Grade](https://img.shields.io/lgtm/grade/python/github/BeryJu/passbook?style=flat-square)
2020-05-27 16:26:35 +01:00
## What is passbook?
2020-05-27 16:57:43 +01:00
passbook is an open-source Identity Provider focused on flexibility and versatility. You can use passbook in an existing environment to add support for new protocols. passbook is also a great solution for implementing signup/recovery/etc in your application, so you don't have to deal with it.
2020-05-27 16:26:35 +01:00
## Installation
For small/test setups it is recommended to use docker-compose.
```
2020-05-27 16:26:35 +01:00
wget https://raw.githubusercontent.com/BeryJu/passbook/master/docker-compose.yml
# Optionally enable Error-reporting
# export PASSBOOK_ERROR_REPORTING=true
2020-05-27 16:26:35 +01:00
# Optionally deploy a different version
2020-09-10 13:35:17 +01:00
# export PASSBOOK_TAG=0.10.0-rc6
2020-05-27 16:26:35 +01:00
# If this is a productive installation, set a different PostgreSQL Password
# export PG_PASS=$(pwgen 40 1)
docker-compose pull
docker-compose up -d
docker-compose run --rm server migrate
```
2020-05-27 16:26:35 +01:00
2020-06-05 19:18:26 +01:00
For bigger setups, there is a Helm Chart in the `helm/` directory. This is documented [here](https://passbook.beryju.org//installation/kubernetes/)
2020-05-27 16:26:35 +01:00
## Screenshots
![](docs/images/screen_apps.png)
![](docs/images/screen_admin.png)
2020-05-27 16:26:35 +01:00
## Development
To develop on passbook, you need a system with Python 3.7+ (3.8 is recommended). passbook uses [pipenv](https://pipenv.pypa.io/en/latest/) for managing dependencies.
To get started, run
```
python3 -m pip install pipenv
git clone https://github.com/BeryJu/passbook.git
cd passbook
pipenv shell
pipenv sync -d
```
Since passbook uses PostgreSQL-specific fields, you also need a local PostgreSQL instance to develop. passbook also uses redis for caching and message queueing.
2020-05-28 18:29:28 +01:00
For these databases you can use [Postgres.app](https://postgresapp.com/) and [Redis.app](https://jpadilla.github.io/redisapp/) on macOS or use it the docker-compose file in `scripts/docker-compose.yml`.
2020-05-27 16:26:35 +01:00
To tell passbook about these databases, create a file in the project root called `local.env.yml` with the following contents:
```yaml
debug: true
postgresql:
user: postgres
log_level: debug
```
## Security
See [SECURITY.md](SECURITY.md)