Skip to content
opensensorPublic
forked from fief-dev/fief

About

Users and authentication management SaaS

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

1,408 Commits

Folders and files

Repository files navigation

Fief

Users and authentication management SaaS

Important

This is the OpenSensor fork of Fief, maintained for OpenSensor authentication infrastructure. The original upstream no longer maintains this codebase. Fork-specific changes, validation results, and upgrade instructions are recorded in the maintenance notes.

Getting started

Contributing

All Contributors

All contributions to improve the project are welcome! In particular, bug and documentation fixes are really appreciated.

Report bugs and discuss larger changes in the OpenSensor fork's issues.

Thanks goes to these wonderful people (emoji key):

shrike71
shrike71

🐛 🤔
trisongz
trisongz

💡 🤔
David Brochart
David Brochart

📖 💻
Paolo Dina
Paolo Dina

🐛
duber000
duber000

💻
Danilo Polani
Danilo Polani

🌍
Moritz
Moritz

🌍
plpsanchez
plpsanchez

🌍
William Mayor
William Mayor

💻
Rui Oliveira
Rui Oliveira

🌍 💻
Jimmy Angel Pérez Díaz
Jimmy Angel Pérez Díaz

🌍
Michał Rosiak
Michał Rosiak

🌍
olimcc
olimcc

🛡️
Joe Hamman
Joe Hamman

🛡️
zfei
zfei

🌍 💻
Bartosz Magiera
Bartosz Magiera

📖
oaltun
oaltun

💻
Cesar Smaniotto Júnior
Cesar Smaniotto Júnior

🌍
rotil
rotil

🛡️
李秉祐
李秉祐

🌍
Lev Dubinets
Lev Dubinets

💵
Mathieu Virbel
Mathieu Virbel

🐛
corv89
corv89

🐛
Yaroslav Polyakov
Yaroslav Polyakov

💻
Scott Fredericksen
Scott Fredericksen

💻
Robert Babaev
Robert Babaev

💻
Cameron
Cameron

🐛 💻
i-am-mike-davis
i-am-mike-davis

💻

Development

Use Python 3.14 (3.12–3.14 supported), uv, and the Node LTS version in .nvmrc. The lockfiles cover runtime, development, and container dependencies.

uv sync --locked
npm ci
uv run python scripts/init-dev-env.py
docker compose up -d
npm run build
uv run pybabel compile --domain=messages --directory=fief/locale
uv run fief run-server

The setup script creates .env with independent application and MFA encryption keys. Re-running it preserves existing keys and settings. Never replace keys for an existing database: they protect stored client secrets and MFA secrets.

The sample configuration creates a local development admin on server startup. These sample credentials are for local development only.

Admin user credentials

Email: anne@bretagne.duchy

Password: herminetincture

Start the worker in another terminal:

uv run fief run-worker -p 1 -t 1

The devcontainer provides PostgreSQL and Redis and uses the same environment setup. Existing PostgreSQL 14 development data needs an explicit dump/restore into the new PostgreSQL 18 volume; see the maintenance notes before upgrading.

Run the checks and container smoke test:

uv run --locked pytest -n 4 --no-cov -q
uv run --locked mypy fief/
npm test
npm audit
uv export --locked --all-groups --no-emit-project -o /tmp/fief-requirements.txt
uv run --locked pip-audit --no-deps --disable-pip -r /tmp/fief-requirements.txt
docker build -f docker/Dockerfile.source -t opensensor/fief:local .
bash scripts/smoke-container.sh opensensor/fief:local

License

Fief is fair-code distributed under Elastic License 2.0 (ELv2).

About

Users and authentication management SaaS

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages