Skip to content

Commit eadccea

Browse files
authored
Update packages (#74)
* update packages and remove username and password auth * add nextToken
1 parent 73278c4 commit eadccea

File tree

6 files changed

+396
-568
lines changed

6 files changed

+396
-568
lines changed

cirro/api/auth/__init__.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
from cirro.api.auth.base import AuthInfo
22
from cirro.api.auth.iam import IAMAuth
33
from cirro.api.auth.oauth_client import ClientAuth
4-
from cirro.api.auth.username import UsernameAndPasswordAuth
54

65
__all__ = [
76
'AuthInfo',
87
'IAMAuth',
9-
'UsernameAndPasswordAuth',
108
'ClientAuth',
119
'get_auth_info_from_config'
1210
]
@@ -23,7 +21,6 @@ def get_auth_info_from_config(app_config: AppConfig):
2321

2422
auth_methods = [
2523
ClientAuth,
26-
UsernameAndPasswordAuth,
2724
IAMAuth
2825
]
2926
matched_auth_method = next((m for m in auth_methods if m.__name__ == user_config.auth_method), None)
@@ -43,9 +40,3 @@ def get_auth_info_from_config(app_config: AppConfig):
4340

4441
if matched_auth_method == IAMAuth:
4542
return IAMAuth(region=app_config.region, **auth_config)
46-
47-
if matched_auth_method == UsernameAndPasswordAuth:
48-
return UsernameAndPasswordAuth(region=app_config.region,
49-
client_id=app_config.client_id,
50-
user_pool_id=app_config.user_pool_id,
51-
**auth_config)

cirro/api/auth/username.py

Lines changed: 0 additions & 51 deletions
This file was deleted.

cirro/api/services/process.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ def list(self, process_type: Executor = None) -> List[Process]:
5151
}
5252
}
5353
}
54+
nextToken
5455
}
5556
}
5657
'''

cirro/api/services/project.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def list(self) -> List[Project]:
2727
desc
2828
status
2929
}
30+
nextToken
3031
}
3132
}
3233
'''

0 commit comments

Comments
 (0)