Skip to content

Commit 8e9dd23

Browse files
Merge pull request #5972 from NutharaNR/u2-docs-6512
2 parents 5956d7b + 0024f5b commit 8e9dd23

1 file changed

Lines changed: 4 additions & 11 deletions

File tree

en/includes/guides/authentication/conditional-auth/configure-conditional-auth.md

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,13 @@ There are two ways to add a conditional authentication script:
3939

4040
{% endif %}
4141

42+
{% if product_name == "Asgardeo" or (product_name == "WSO2 Identity Server" and is_version >= "7.1.0") %}
43+
4244
## Add a secret to the script
4345
Secrets securely store values associated with external APIs. These secret values are used in conditional authentication scripts when {{ product_name }} is required to interact with an external API (service endpoint) during the authentication process.
4446

45-
{% if product_name == "Asgardeo" or (product_name == "WSO2 Identity Server" and is_version != "7.0.0") %}
46-
4747
You can securely store these secret values on the {{ product_name }} Console and retrieve them whenever required for conditional authentication script.
4848

49-
{% else %}
50-
51-
You can securely store these secret values on the {{ product_name }} Console and retrieve them whenever required for `callChoreo()` conditional authentication function.
52-
53-
{% endif %}
54-
5549

5650

5751
### Create a new secret
@@ -104,7 +98,6 @@ To add a new secret:
10498

10599
6. Click **Finish** to complete the creation.
106100

107-
{% if product_name == "Asgardeo" or (product_name == "WSO2 Identity Server" and is_version != "7.0.0") %}
108101

109102
### Use secret in the script
110103

@@ -116,8 +109,6 @@ var secretValue = secrets.secretName;
116109

117110
This allows you to securely access secret values within your authentication scripts, enhancing the security and flexibility of your authentication process.
118111

119-
{% endif %}
120-
121112
### Delete an existing secret
122113

123114
To delete an existing secret:
@@ -144,3 +135,5 @@ To delete an existing secret:
144135
4. Click the trash icon next to the secret you wish to delete.
145136

146137
5. Select the checkbox and confirm your action.
138+
139+
{% endif %}

0 commit comments

Comments
 (0)