Skip to main content

A user authentication and management library.

Project description

ZenAuth-server

Server-side components for the ZenAuth monorepo.

日本語: see README_ja.md.

For how to run the server (Uvicorn) and environment variables, see the repository root README.

Bulk import (CSV)

You can bulk create/update users/apps/roles/scopes from CSV.

Script:

  • server/src/scripts/import_csv.py

Usage

python server/src/scripts/import_csv.py \
	--dsn "sqlite+pysqlite:////absolute/path/to/zenauth.sqlite3" \
	--roles roles.csv \
	--scopes scopes.csv \
	--apps apps.csv \
	--users users.csv
  • --mode create fails if a record already exists.
  • --mode upsert (default) creates or updates.

CSV formats

roles.csv

Headers:

  • role_name (required)
  • display_name (optional, defaults to role_name)
  • description (optional)
  • scopes (optional, comma-separated scope names; binds scopes to the role)

scopes.csv

Headers:

  • scope_name (required)
  • display_name (optional, defaults to scope_name)
  • description (optional)
  • roles (optional, comma-separated role names; binds roles to the scope)

apps.csv

Headers:

  • app_id (required)
  • display_name (optional)
  • description (optional)
  • return_to (required; absolute http(s) URL or absolute path starting with /)

users.csv

Headers:

  • user_name (required)
  • password (required for new users)
  • roles (optional, comma-separated role names)
  • real_name (optional)
  • division (optional)
  • description (optional)
  • policy_epoch (optional; used for new users; default=1)

If passwords are already hashed (bcrypt), pass --password-already-hashed.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zenauth_server-0.1.2.tar.gz (110.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zenauth_server-0.1.2-py3-none-any.whl (131.1 kB view details)

Uploaded Python 3

File details

Details for the file zenauth_server-0.1.2.tar.gz.

File metadata

  • Download URL: zenauth_server-0.1.2.tar.gz
  • Upload date:
  • Size: 110.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for zenauth_server-0.1.2.tar.gz
Algorithm Hash digest
SHA256 03921a7f9602099ec03fd47444dd1074f5fa24e38bbeb55c825a8aef29dbe9e1
MD5 a7bb68e9002e09f55e15e936f671eae5
BLAKE2b-256 7f247a27df2229915855cdadab2c17858404808207b968168a46425601d5d1c6

See more details on using hashes here.

File details

Details for the file zenauth_server-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: zenauth_server-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 131.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for zenauth_server-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 10641b2106c2241f912df4e5d6d2f27e5d141661d9800dbce5d8b7402fef6944
MD5 1308dd057731250fa1cf3b182b0e57d7
BLAKE2b-256 a432fc2e05dc1385a05283a9c0f8d2791073f5c84335642f46b1d8ef99a9f5f0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page