Skip to content

Okta v2: Add revokeOauthTokens argument to okta-clear-user-sessions command#42920

Open
almog2296 wants to merge 7 commits intomasterfrom
CIAC-15065-okta-clear-user-sessions-oauth-tokens
Open

Okta v2: Add revokeOauthTokens argument to okta-clear-user-sessions command#42920
almog2296 wants to merge 7 commits intomasterfrom
CIAC-15065-okta-clear-user-sessions-oauth-tokens

Conversation

@almog2296
Copy link
Contributor

Status

  • In Progress
  • Ready
  • In Hold - (Reason for hold)

Related Issues

fixes: CIAC-15065

Description

Added a new optional revokeOauthTokens argument to the okta-clear-user-sessions command that allows revoking OpenID Connect and OAuth refresh/access tokens in addition to clearing user sessions.

@content-bot
Copy link
Contributor

🤖 AI-Powered Code Review Available

You can leverage AI-powered code review to assist with this PR!

Available Commands:

  • @content-bot start review - Initiate a full AI code review
  • @content-bot re-review - Incremental review for new commits

@github-actions
Copy link

github-actions bot commented Feb 4, 2026

@almog2296 almog2296 added ready-for-pipeline-running Whether the pr is ready for running the whole pipeline, including testing on SAAS machines ready-for-ai-review The PR is ready for reviewing the PR with the AI Reviewer. labels Feb 4, 2026
@content-bot content-bot removed the ready-for-ai-review The PR is ready for reviewing the PR with the AI Reviewer. label Feb 4, 2026
@content-bot
Copy link
Contributor

🤖 Content AI Reviewer: Analysis started. Please wait for results...

@content-bot
Copy link
Contributor

🤖 Content-bot Review Disclaimer

This review was generated by an AI-powered tool and may contain inaccuracies. Please be advised, and we extend our sincere apologies for any inconvenience this may cause.

Copy link
Contributor

@content-bot content-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi there, thanks for the contribution to the Okta integration. I've reviewed the changes and have a few recommendations to align with our standards.

Please update the boolean argument in the YAML to use type: 8 (Boolean) instead of a predefined list for a better user experience. In the unit tests, I recommend testing the command function directly rather than the client method to ensure argument parsing logic is verified. Lastly, please adjust the Release Notes formatting and ensure the README argument names match the command table.

Great work otherwise!

Additionally, please address the following file-level notes:

  • Packs/Okta/Integrations/Okta_v2/Okta_v2_test.py: The new unit tests (test_clear_user_sessions_with_oauth_tokens) appear to call the client method directly. It is recommended to test the command function clear_user_sessions_command instead. This ensures that the argument parsing logic (specifically argToBoolean) is verified along with the client call.

@JudahSchwartz please review and approve the results generated by the AI Reviewer by responding 👍 on this comment.

@content-bot
Copy link
Contributor

Validate summary
The following errors were reported as warnings: DO106.
The following errors were thrown as a part of this pr: .
If the AG100 validation in the pre-commit GitHub Action fails, the pull request cannot be force-merged.

Verdict: PR can be force merged from validate perspective? ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-pipeline-running Whether the pr is ready for running the whole pipeline, including testing on SAAS machines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants