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
Built Distribution
Hashes for ertis_auth_migrate-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5bf152f8309ebdd99ac9c023ad8040992419174ba40130833fd0dd0c5ec7d4b |
|
MD5 | 690b44132a07494093a022795f677b52 |
|
BLAKE2b-256 | 5c64bb482c229eb7c28c096a31cb8230d9322464e6caaf8f0c21c387f548c91b |