Commit 952b8c1d authored by GromeTT's avatar GromeTT
Browse files

Fix: adopting to new s3i version

parent 79c30504
https://git.rwth-aachen.de/kwh40/s3i/-/jobs/artifacts/master/raw/public/s3i-0.4-py3-none-any.whl?job=wheel https://git.rwth-aachen.de/kwh40/s3i/-/jobs/artifacts/master/raw/public/s3i-0.4-py3-none-any.whl?job=wheel
Pykka Pykka
pylint==2.4.4
#https://git.rwth-aachen.de/kwh40/s3i/-/jobs/758151/artifacts/raw/public/s3i-0.4-py3-none-any.whl #https://git.rwth-aachen.de/kwh40/s3i/-/jobs/758151/artifacts/raw/public/s3i-0.4-py3-none-any.whl
...@@ -13,6 +13,7 @@ def get_username_and_password(filepath=None): ...@@ -13,6 +13,7 @@ def get_username_and_password(filepath=None):
password = js_object["password"] password = js_object["password"]
else: else:
username = input("[S3I]: Please enter your username: ") username = input("[S3I]: Please enter your username: ")
# TODO: Use getpass
password = input("[S3I]: Please enter your password: ") password = input("[S3I]: Please enter your password: ")
return username, password return username, password
...@@ -46,12 +47,11 @@ def get_access_token(username, password, default_client, with_scope): ...@@ -46,12 +47,11 @@ def get_access_token(username, password, default_client, with_scope):
client_id=client, client_id=client,
username=username, username=username,
password=password, password=password,
scope=scope,
client_secret=client_secret, client_secret=client_secret,
realm="KWH", realm="KWH",
identity_provider_url="https://idp.s3i.vswf.dev/", identity_provider_url="https://idp.s3i.vswf.dev/",
) )
return idp.get_token(TokenType.ACCESS_TOKEN) return idp.get_token(TokenType.ACCESS_TOKEN, scope=scope)
def create_parser(): def create_parser():
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment