Skip to main content

Backend Backend coverage Frontend Frontend coverage

Latest Version PyPI - Python Version License Documentation

privacyIDEA: Open-Source Multi-Factor Authentication

privacyIDEA is an open-source MFA platform for orchestrating all your multi-factor authentication needs. Secure your entire stack with a flexible, self-hosted solution that puts you in control. As an on-premise platform, your sensitive user data always remains within your infrastructure.

Key Features

  • Universal MFA: Add a second factor to virtually any application—from SSH and VPNs to IdPs like Keycloak and web portals.

  • Extensive Factor Support: Go beyond simple OTP. We support everything from cutting-edge Passkeys and push authentication to various OTP types.

  • Vendor-Agnostic: Connect to your existing user stores (AD, LDAP, SQL, EntraID) without being locked into a specific ecosystem.

  • Truly Open: Licensed under AGPLv3 to guarantee your software freedom, always.

Supported Authentication Factors

  • 🔑 Passkeys & Hardware: FIDO2/WebAuthn devices (like YubiKey, Plug-Up).

  • 💳 Smartcards (PIV/x509): Connect to a Microsoft CA using the ms-ca-service and enroll certificates directly to PIV-compatible devices with our enrollment client for Windows.

  • 📱 Software & Mobile: Use the privacyIDEA Authenticator for PUSH notifications, TOTP, and HOTP; for standard TOTP/HOTP, other apps like Google Authenticator are also compatible. TiQR is also supported.

  • 📜 Classic & Remote: SMS, Email, SSH Keys, Security Questionnaires, and simple Registration Codes for easy rollout.

Seamless Integration

Enhance the security of your existing infrastructure:


Join the Community

Have feedback, questions, or ideas? Join the discussion on our community forum: https://community.privacyidea.org

Docker Quickstart

The Docker Compose stack in deploy/docker runs privacyIDEA with a MariaDB database and a maintenance scheduler. You need Docker with the Compose plugin 2.24 or newer, git, make, python3 and openssl.

Replace <version> with the version of the latest release. Then run these commands:

git clone --depth 1 --branch v<version> https://github.com/privacyidea/privacyidea.git
cd privacyidea/deploy/docker
make init    # generates the secrets and prints the admin password once
make up

Open http://localhost:8080 and log in as admin. The stack serves plain HTTP on localhost only. Before you use the stack in production, read README.Docker.md in that directory. It describes TLS, backups and upgrades.

Setup

For setting up the system to run it, please read install instructions at privacyidea.readthedocs.io.

If you want to setup a development environment start like this:

git clone https://github.com/privacyidea/privacyidea.git
cd privacyidea
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt

You may additionally want to set up your environment for testing, by adding the additional dependencies:

pip install -r tests/requirements.txt

You may also want to read the blog post about development and debugging at https://www.privacyidea.org/privacyidea-development-howto/

Running it

First You need to create a config-file.

Then create the database tables and the encryption key:

./pi-manage setup create_tables
./pi-manage setup create_enckey

Create the key for the audit log:

./pi-manage setup create_audit_keys

Create the first administrator:

./pi-manage admin add <username>

Run it:

./pi-manage run

Now you can connect to http://localhost:5000 with your browser and login as administrator.

Run tests

If you have followed the steps above to set up your environment for testing, running the test suite should be as easy as running pytest with the following options:

python -m pytest -v --cov=privacyidea --cov-report=html tests/

Contributing

There are a lot of different ways to contribute to privacyIDEA, even if you are not a developer.

If you found a security vulnerability please report it to security@privacyidea.org.

You can find detailed information about contributing here: https://github.com/privacyidea/privacyidea/blob/master/CONTRIBUTING.md

Code structure

The database models are defined in models.py and tested in tests/test_db_model.py.

Based on the database models there are the libraries lib/config.py which is responsible for basic configuration in the database table config. And the library lib/resolver.py which provides functions for the database table resolver. This is tested in tests/test_lib_resolver.py.

Based on the resolver there is the library lib/realm.py which provides functions for the database table realm. Several resolvers are combined into a realm.

Based on the realm there is the library lib/user.py which provides functions for users. There is no database table user, since users are dynamically read from the user sources like SQL, LDAP, SCIM or flat files.

Subscriptions and limitations of community edition

Using privacyIDEA Server and the privacyIDEA FreeRADIUS plugin there is technically no limitation of the community edition or the code in this repository. Admins will receive a welcome message about possible support, if more than 50 users are enrolled.

Plugins

The privacyIDEA project also provides several plugins for 3rd party applications like SSO Identity Providers or Windows Login.

Plugins can be limited in the number of users. I.e. the plugin will complain, if the total number of users in privacyIDEA with an active token exceeds a certain limit. There is a certain base number of users, with which the plugin will work. To enhance this number, you will need a subscription. In some cases an additional demo subscription can be found in the release list of the corresponding github plugin repository, you can get a subscription from the company NetKnights or if you have a very good understanding of this Open Source code, you could create a subscription on your own.

Plugin

Number of users

Name

contained

in demo subscription

Keycloak

10000

N/A

SimpleSAMLphp

10000

N/A

Shibboleth

10000

N/A

ADFS

50

50

privacyIDEA PAM

10000

N/A

Credential Provider

50

50

nextCloud

50

N/A

ownCloud

50

N/A

LDAP proxy

50

N/A

Versioning

privacyIDEA adheres to Semantic Versioning.

Metadata

Release files for privacyIDEA 3.14.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for privacyIDEA 3.14.1
File Size Uploaded Provenance Actions
privacyidea-3.14.1.tar.gz 70.1 MB Without provenance Details for privacyidea-3.14.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for privacyIDEA 3.14.1
File Interpreter ABI Platform Actions
privacyidea-3.14.1-py3-none-any.whl Python 3 none any Details for privacyidea-3.14.1-py3-none-any.whl

Total release size: 137.5 MB

Release files / privacyidea-3.14.1.tar.gz

Download URL privacyidea-3.14.1.tar.gz
Size 70.1 MB
Tags Source
SHA-256 checksum
How to use checksums
e0bb394c23bb67f2bcf8df0307aacad8ef5a76e739f915c9aa50367f1130e1a7
BLAKE2b-256 checksum
How to use checksums
c5b883eb59bafb93477d1c6400408db9e2d545d409a2cd7c1e1db5d812ee5063
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.12

Release files / privacyidea-3.14.1-py3-none-any.whl

Download URL privacyidea-3.14.1-py3-none-any.whl
Size 67.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
d15efbc221f0a352d70ce3275a9611da8cf0a65972a44fc2bd5166084f02857a
BLAKE2b-256 checksum
How to use checksums
a46893c082b5e9d878c2c171496effa265cc556dd5c4e17136c9798290e80120
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.12

Security for privacyIDEA 3.14.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

3.14.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page