okta / okta-sdk-python

Apache License 2.0
229 stars 143 forks source link

Properly clear access token #364

Closed haggrip closed 6 months ago

haggrip commented 11 months ago

Remove the access token from request headers and cache when calling clear_access_token. Also update the request headers in get_next to prevent usage of old token.

See issue 363 and issue 359

bryanapellanes-okta commented 10 months ago

@haggrip Thank you for your contribution. Before merging this change, I'd like to be sure we have unit tests covering the scenario in question. If you are in a position to add unit tests for this please feel free to do so. We will review further internally.

cc @justinabrokwah-okta

bryanapellanes-okta commented 10 months ago

Internal Ref#: OKTA-641384

bryanapellanes-okta commented 6 months ago

Merged to dev branch to prepare for the addition of unit tests. Will merge to master following standard process once complete.