Skip to main content

Ertis Auth initializer CLI

Project description

Ertis Auth Initializer CLI

Ertis Auth Command Line Interface.

Package Index

Migrate

Init your database (mongodb) for using ertis auth.

If you are using ertis auth, you should create first membership, role and user. This manually operation have some risks.

  • You may not be sure about Membership, user and role database models.
  • sys field. who is created that documents and when?
  • You can forget database indexes before using.

Ertis Auth CLI create first models and create mongodb indexes by your given mongodb connection string.

Usage

Installation

$ pip install ertis_auth_migrate

Help

$ ertis_auth_migrate --help

Setup

$ ertis_auth_migrate -c <mogno_connection_string> -d <datbase_name>

Then cli asks some questions to you.

Initialize you ertis auth service.
? Enter a membership name:  ertis
? Enter a role name:  admin
? Enter a username:  admin
? Enter a password:  mySecretP@assWord!
? Enter token ttl value as a minutes:  60
? Enter refresh token ttl value as a minutes:  120
? Enter max active token count by user:  120
? Do you want create indexes on mongodb for ertis auth? [y|N]  True

You can check your mongodb collections and indexes after installation.

Note: if you have memberships, roles and users collections already this cli will be created only documents. s And documents means new membership, new role under membership and new user under membership.

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

ertis_auth_migrate-0.1.6.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

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

ertis_auth_migrate-0.1.6-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file ertis_auth_migrate-0.1.6.tar.gz.

File metadata

  • Download URL: ertis_auth_migrate-0.1.6.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.2

File hashes

Hashes for ertis_auth_migrate-0.1.6.tar.gz
Algorithm Hash digest
SHA256 7f935179c41287172d3743c1ccf79f320b9a7d40ce06fa1ea7ca17f6a73d97cd
MD5 989f095c467aa68ee59f5153ae5ad791
BLAKE2b-256 ec442858f29b2d4f6401a5282f5ac114cf157dec5de648b81421b7ee25d2badc

See more details on using hashes here.

File details

Details for the file ertis_auth_migrate-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: ertis_auth_migrate-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.2

File hashes

Hashes for ertis_auth_migrate-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 dcd199f3be6c492fb6983ef3de3a679b982619234b3c2c8fa337813bcf106143
MD5 4d2867a8814a7575226ae224b99ffb2c
BLAKE2b-256 3673cc9c931bcb78283fd5b922b091729e2925981202516a125f06dfebe3ab9d

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