diff --git a/README.md b/README.md index 5de6afc..254798b 100644 --- a/README.md +++ b/README.md @@ -60,14 +60,14 @@ uotp Run the following commands in your uotp directory ```shell -pipenv run python uotp/scripts/get-admin.py +uotp-client get-admin ``` #### Create Auth Account (or any account) Run the following command in your uotp directory: ```shell -pipenv run python uotp/client create \ +uotp-client create \ --name auth --realm ungleich-auth \ --admin-name admin --admin-realm ungleich-admin \ --admin-seed admin_seed_here @@ -78,14 +78,14 @@ Credentials of newly created account. #### List All Accounts with credentials ```shell -pipenv run python uotp/client.py list \ +uotp-client list \ --admin-name admin_name_jere --admin-realm admin_realm_here \ --admin-seed admin_seed_here ``` #### Verify OTP Credentials ```shell -pipenv run python uotp/client.py verify \ +uotp-client verify \ --name user_name_here --realm user_realm_here \ --seed user_seed_here --auth-name auth_name_here \ --auth-realm auth_realm_here --auth-seed auth_seed_here diff --git a/uotp/scripts/create-auth.py b/uotp/scripts/create-auth.py deleted file mode 100644 index 10bb2b4..0000000 --- a/uotp/scripts/create-auth.py +++ /dev/null @@ -1,19 +0,0 @@ -import requests -import pyotp -import json -import decouple -import argparse - -arg_parser = argparse.ArgumentParser() -arg_parser.add_argument("admin_seed") -args = arg_parser.parse_args() - -r = requests.post("http://localhost:{}/create/".format(decouple.config("PORT")), - json={ - "name": "auth", - "realm": ["ungleich-auth"], - "admin_name": "admin", - "admin_realm": "ungleich-admin", - "admin_token": pyotp.TOTP(args.admin_seed).now() - }) -print(json.loads(r.content.decode("utf-8")))