Skip to content

Commit

Permalink
tests: update with workflow and dev aws env
Browse files Browse the repository at this point in the history
  • Loading branch information
EHadoux committed Nov 4, 2023
1 parent 46b704f commit 447b467
Show file tree
Hide file tree
Showing 4 changed files with 251 additions and 183 deletions.
3 changes: 1 addition & 2 deletions scribeauth/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
from .scribeauth import ScribeAuth
from .scribeauth import Tokens
from .scribeauth import ScribeAuth, Tokens
20 changes: 11 additions & 9 deletions scribeauth/__main__.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
import argparse
from scribeauth import ScribeAuth

if __name__ == '__main__':
from scribeauth import ScribeAuth

parser = argparse.ArgumentParser('scribeauth')
parser.add_argument('--client_id', help='Client ID provided by Scribe', type=str)
parser.add_argument('--user_pool_id', help='User pool ID provided by Scribe', type=str)
parser.add_argument('--username', help='Username', type=str)
parser.add_argument('--password', help='Password', type=str)
if __name__ == "__main__":
parser = argparse.ArgumentParser("scribeauth")
parser.add_argument("--client_id", help="Client ID provided by Scribe", type=str)
parser.add_argument(
"--user_pool_id", help="User pool ID provided by Scribe", type=str
)
parser.add_argument("--username", help="Username", type=str)
parser.add_argument("--password", help="Password", type=str)
args = parser.parse_args()
auth = ScribeAuth({'client_id': args.client_id, 'user_pool_id': args.user_pool_id})
auth = ScribeAuth({"client_id": args.client_id, "user_pool_id": args.user_pool_id})
tokens = auth.get_tokens(username=args.username, password=args.password)
print(tokens)
print(tokens)
Loading

0 comments on commit 447b467

Please sign in to comment.