You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: en/identity-server/5.11.0/docs/setup/token-persistence.md
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -601,7 +601,7 @@ In large-scale WSO2 Identity Server deployments, especially with millions of use
601
601
```
602
602
603
603
??? Example "Postgres"
604
-
604
+
605
605
```sql
606
606
CREATE TABLE IF NOT EXISTS IDN_OAUTH2_REFRESH_TOKEN (
607
607
REFRESH_TOKEN_ID VARCHAR(255) PRIMARY KEY,
@@ -683,6 +683,7 @@ In large-scale WSO2 Identity Server deployments, especially with millions of use
683
683
[oauth.token_persistence]
684
684
retain_revoked_access_token = false
685
685
```
686
+
686
687
### Removing unused refresh tokens and revoke entries from the Database
687
688
688
689
!!! note
@@ -694,8 +695,8 @@ However, over time, the accumulation of such records can impact overall server p
694
695
695
696
The following sections guide you through the difference ways to perform cleanup and how to configure them.
696
697
697
-
- [**Token Cleanup via Stored Procedure** (Recommended)](#token-cleanup-via-stored-procedure)
698
-
- [**Configuring WSO2 Identity Server for token cleanup**](#configuring-wso2-identity-server-for-token-cleanup)
698
+
- [**Token Cleanup via Stored Procedure** (Recommended)](#token-cleanup-via-stored-procedure)
699
+
- [**Configuring WSO2 Identity Server for token cleanup**](#configuring-wso2-identity-server-for-token-cleanup)
699
700
700
701
#### Token Cleanup via Stored Procedure
701
702
@@ -722,9 +723,9 @@ method.
722
723
723
724
This script:
724
725
725
-
* Backs up token-related tables (if enabled)
726
-
* Deletes eligible expired, revoked, or inactive entries
727
-
726
+
- Backs up token-related tables (if enabled)
727
+
- Deletes eligible expired, revoked, or inactive entries
728
+
728
729
3.**Restart the Server**
729
730
Once cleanup is complete, restart **WSO2 Identity Server** with the updated and cleaned database. You can optionally **schedule periodic execution** of the cleanup procedure.
0 commit comments