Skip to content

Commit 26fb9e7

Browse files
committed
Change the config adding order.
1 parent 5c31512 commit 26fb9e7

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

en/includes/references/token-hashing.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,28 +19,27 @@ authorization codes.
1919
## Set up OAuth token hashing
2020

2121
1. Add the following configurations to the `deployment.toml` file found in the `<IS_HOME>/repository/conf` folder.
22-
- Add the following token persistence processor to enable token hashing:
23-
24-
``` toml
25-
[oauth.extensions]
26-
token_persistence_processor = "org.wso2.carbon.identity.oauth.tokenprocessor.HashingPersistenceProcessor"
27-
```
28-
2922
- Add the following property and set it to true to enable hashing.
3023

3124
``` toml
3225
[oauth]
3326
hash_tokens_and_secrets = true
3427
```
3528

36-
- Add the following configuration to specify the algorithm to use
37-
for hashing:
29+
- Add the following configuration to specify the algorithm to use for hashing:
3830

3931
``` toml
4032
[oauth]
4133
hash_token_algorithm = "SHA-256"
4234
```
4335

36+
- Add the following token persistence processor to enable token hashing:
37+
38+
``` toml
39+
[oauth.extensions]
40+
token_persistence_processor = "org.wso2.carbon.identity.oauth.tokenprocessor.HashingPersistenceProcessor"
41+
```
42+
4443
!!! tip
4544
WSO2 Identity Server allows you to use hashing algorithms supported by MessageDigest. For more information on hashing algorithms supported by MessageDigest, see [MessageDigest Algorithms](https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#MessageDigest).
4645

0 commit comments

Comments
 (0)