Skip to content

Add PAR request cleanup guide#6194

Merged
Thumimku merged 2 commits into
wso2:masterfrom
Thumimku:cleanup
Jun 18, 2026
Merged

Add PAR request cleanup guide#6194
Thumimku merged 2 commits into
wso2:masterfrom
Thumimku:cleanup

Conversation

@Thumimku

@Thumimku Thumimku commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Purpose

Adds documentation for cleaning up PAR request records and clarifies how tokens
and client credentials should be transmitted.

Changes

  • Added a Clean up PAR requests section to the PAR guide, with links to the
    per-database cleanup scripts (DB2, MSSQL, MySQL, Oracle, PostgreSQL). Shown for
    WSO2 Identity Server only.
  • Added notes on sending access tokens and refresh tokens in the request body /
    Authorization header rather than as URL query parameters.
  • Added a note to the private key JWT guide on sending the client assertion as a
    form parameter in the token request.
  • Added Referer to the spelling dictionary.

Related docs

  • Access tokens, refresh tokens, private key JWT client authentication, PAR guide
Screenshot 2026-06-17 at 18 42 21 Screenshot 2026-06-17 at 18 44 34 Screenshot 2026-06-17 at 18 45 03 Screenshot 2026-06-17 at 18 45 21

@coderabbitai

coderabbitai Bot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@Thumimku, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 30 minutes and 56 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more credits in the billing tab to continue.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro

Run ID: d0f3ac5f-f889-486d-954e-098b1953d75c

📥 Commits

Reviewing files that changed from the base of the PR and between 6c421a0 and b721cbd.

📒 Files selected for processing (1)
  • en/includes/guides/authentication/oidc/implement-login-with-par.md
📝 Walkthrough

Walkthrough

Five documentation files are updated: security warning callouts are added to access token, refresh token, and private-key JWT client authentication docs prohibiting URL query parameter transmission of tokens and credentials; a PAR record cleanup guide section is added for WSO2 IS; and "Referer" is added to the Asgardeo spelling dictionary.

Changes

Token security guidance and PAR maintenance docs

Layer / File(s) Summary
Token and credential transmission security warnings
en/includes/references/tokens/access-tokens.md, en/includes/references/tokens/refresh-tokens.md, en/includes/guides/authentication/oidc/private-key-jwt-client-auth.md, en/asgardeo/.spelling
Warning callouts added to access token and refresh token reference docs prohibiting URL query parameter usage and requiring Authorization: Bearer or POST body form parameters respectively. A matching warning is inserted in the private-key JWT guide for client_assertion and client_secret. "Referer" is added to the spelling dictionary to support the new content.
PAR cleanup guide for WSO2 IS
en/includes/guides/authentication/oidc/implement-login-with-par.md
A new "Clean up PAR requests" section is added, conditionally rendered for WSO2 Identity Server, covering IDN_OAUTH_PAR table cleanup with links to DB-specific scripts (DB2, MSSQL, MySQL, Oracle, PostgreSQL), optional backup via backupTables=TRUE, and notes on scheduling a periodic cleanup task.

Suggested labels

Team/API Access Mgt & Authorization

Suggested reviewers

  • ashanthamara
  • himeshsiriwardana
  • hwupathum
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title 'Add PAR request cleanup guide' accurately reflects the primary change in the PR, which adds documentation for cleaning up PAR request records to the PAR guide.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description check ✅ Passed The pull request description clearly outlines the purpose, specific changes made, and related documentation, providing sufficient context for reviewers.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
en/includes/guides/authentication/oidc/implement-login-with-par.md (1)

20-22: ⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Add a language tag to the code block on line 20.

The pipeline failure indicates a missing language specifier on the fenced code block. Although this is existing code (not part of this PR's changes), the MD040 error is blocking the build. Add a language tag to comply with markdown linting rules.

🔧 Proposed fix
 The `request_uri` functions as a reference to your authorization payload. You can receive a `request_uri` by invoking the following endpoint in {{product_name}}.
 
-```
+```bash
 {{par_endpoint}}

</details>

<details>
<summary>🤖 Prompt for AI Agents</summary>

Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @en/includes/guides/authentication/oidc/implement-login-with-par.md around
lines 20 - 22, The code block containing {{par_endpoint}} is missing a language
tag specifier, which is causing an MD040 linting error. Add a language tag
(bash) immediately after the opening triple backticks to specify the code block
language, changing the opening from tobash to comply with markdown
linting rules.


</details>

<!-- cr-comment:v1:f99354841e179d4447b910b0 -->

</blockquote></details>

</blockquote></details>
🧹 Nitpick comments (1)
en/includes/guides/authentication/oidc/private-key-jwt-client-auth.md (1)

132-133: 💤 Low value

Consider splitting the warning into two sentences for better readability.

The warning is comprehensive but combines two related instructions in a single long sentence. Breaking it into a directive sentence (Send...) followed by a prohibition sentence (Never send...) could improve clarity without losing impact.

✏️ Proposed refactoring (optional)
    !!! warning
-        Send the `client_assertion` (and the client secret, if you use the `client_secret_basic` or `client_secret_post` method) as form parameters in the body of the `POST` request to the token endpoint. Never send these credentials in custom HTTP headers or as URL query parameters, where they can leak through server logs, browser history, and the `Referer` header.
+        Send the `client_assertion` (and the client secret, if you use the `client_secret_basic` or `client_secret_post` method) as form parameters in the body of the `POST` request to the token endpoint. 
+        
+        Never send these credentials in custom HTTP headers or as URL query parameters. They can leak through server logs, browser history, and the `Referer` header.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@en/includes/guides/authentication/oidc/private-key-jwt-client-auth.md` around
lines 132 - 133, The warning block currently contains a single long sentence
combining both a directive instruction and a prohibition. Split this warning
into two separate sentences within the same warning block: first sentence should
contain the directive instruction about sending client_assertion and client
secret as form parameters in the POST request body, and the second sentence
should contain the prohibition about never sending these credentials in custom
HTTP headers or query parameters. This improves readability without losing the
comprehensive nature of the warning.

Source: Coding guidelines

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In `@en/includes/guides/authentication/oidc/implement-login-with-par.md`:
- Around line 20-22: The code block containing {{par_endpoint}} is missing a
language tag specifier, which is causing an MD040 linting error. Add a language
tag (bash) immediately after the opening triple backticks to specify the code
block language, changing the opening from ``` to ```bash to comply with markdown
linting rules.

---

Nitpick comments:
In `@en/includes/guides/authentication/oidc/private-key-jwt-client-auth.md`:
- Around line 132-133: The warning block currently contains a single long
sentence combining both a directive instruction and a prohibition. Split this
warning into two separate sentences within the same warning block: first
sentence should contain the directive instruction about sending client_assertion
and client secret as form parameters in the POST request body, and the second
sentence should contain the prohibition about never sending these credentials in
custom HTTP headers or query parameters. This improves readability without
losing the comprehensive nature of the warning.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro

Run ID: 079c8167-b02d-4829-9078-bee962c4262d

📥 Commits

Reviewing files that changed from the base of the PR and between 0173d07 and 6c421a0.

📒 Files selected for processing (5)
  • en/asgardeo/.spelling
  • en/includes/guides/authentication/oidc/implement-login-with-par.md
  • en/includes/guides/authentication/oidc/private-key-jwt-client-auth.md
  • en/includes/references/tokens/access-tokens.md
  • en/includes/references/tokens/refresh-tokens.md

Comment thread en/includes/guides/authentication/oidc/implement-login-with-par.md Outdated
Comment thread en/includes/guides/authentication/oidc/implement-login-with-par.md Outdated
Comment thread en/includes/guides/authentication/oidc/implement-login-with-par.md Outdated
Comment thread en/includes/guides/authentication/oidc/implement-login-with-par.md Outdated
Comment thread en/includes/guides/authentication/oidc/implement-login-with-par.md Outdated
@Thumimku Thumimku merged commit 3331dfb into wso2:master Jun 18, 2026
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants