Ertis Auth initializer CLI
Project description
Ertis Auth Initializer CLI
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_cli
Help
$ ertis_auth_cli --help
Setup
$ ertis_auth_cli -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
After installation you can check your mongodb collections and indexes.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file ertis_auth_cli-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: ertis_auth_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.9 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b55b91357b1179083e3422bf2af9fd10f37420d190d16cb936b7cb388b4db02 |
|
MD5 | 8875ed8e4f52fc19a817b7b06ecd0883 |
|
BLAKE2b-256 | 9eda459aa2f2e5972672358b21e797b08b43e3b9f98f971cbdbb855f8198735c |