diff --git a/gimme_aws_creds/main.py b/gimme_aws_creds/main.py index a5a1577..65cc853 100644 --- a/gimme_aws_creds/main.py +++ b/gimme_aws_creds/main.py @@ -23,8 +23,8 @@ import boto3 import requests from botocore.exceptions import ClientError -from okta.framework.ApiClient import ApiClient -from okta.framework.OktaError import OktaError +from okta.api_client import APIClient +from okta.errors.error import Error as OktaError # local imports from . import errors, ui, version @@ -221,8 +221,8 @@ def _get_aws_account_info(okta_org_url, okta_api_key, username): """ Call the Okta User API and process the results to return just the information we need for gimme_aws_creds""" # We need access to the entire JSON response from the Okta APIs, so we need to - # use the low-level ApiClient instead of UsersClient and AppInstanceClient - users_client = ApiClient(okta_org_url, okta_api_key, pathname='/api/v1/users') + # use the low-level APIClient instead of UsersClient and AppInstanceClient + users_client = APIClient(okta_org_url, okta_api_key, pathname='/api/v1/users') # Get User information try: diff --git a/requirements.txt b/requirements.txt index 7ebe294..8826a8b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,7 +3,7 @@ beautifulsoup4>=4.6.0,<5.0.0 keyring>=21.4.0 requests>=2.25.0,<3.0.0 fido2>=0.9.1,<0.10.0 -okta>=0.0.4,<1.0.0 +okta>=2.9.3,<3.0.0 ctap-keyring-device==1.0.6 pyjwt>=2.4.0,<3.0.0 urllib3>=1.26.0,<2.0.0