Skip to content

Commit

Permalink
Upgrade to the latest version of the Okta library
Browse files Browse the repository at this point in the history
  • Loading branch information
epierce committed Nov 20, 2023
1 parent 2350b7e commit 7e5520b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions gimme_aws_creds/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7e5520b

Please sign in to comment.