Add get-token script to retrieve authentication token
All checks were successful
/ unit-tests (push) Successful in 48s
All checks were successful
/ unit-tests (push) Successful in 48s
This commit is contained in:
11
get-token.py
Executable file
11
get-token.py
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
from sk.azure import get_token
|
||||
|
||||
token = get_token(
|
||||
tenant_id="a7740229-47b6-45de-ad22-83721462b1bf",
|
||||
client_id="840671c4-5dc4-40e5-aab9-7c3a07bbd652",
|
||||
pem_path="./slawek-mba.pem"
|
||||
)
|
||||
|
||||
print(f"Obtained token: {token}")
|
||||
Reference in New Issue
Block a user