Skip to content

Commit bde712b

Browse files
Merge pull request #4942 from Sachin-Mamoru/fix-issue-7.0
Added condition to remove features from 7.0.0
2 parents bf618eb + 3c82c6c commit bde712b

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

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

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,26 @@ There are two ways to add a conditional authentication script:
2525
- Write a [new conditional auth script]({{base_path}}/guides/authentication/conditional-auth/write-your-first-script/).
2626

2727
## Add a secret to the script
28-
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. You can securely store these secret values on the {{ product_name }} Console and retrieve them whenever required for `callChoreo()` conditional authentication function.
28+
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.
29+
30+
{% if product_name == "Asgardeo" or (product_name == "WSO2 Identity Server" and is_version != "7.0.0") %}
31+
32+
You can securely store these secret values on the {{ product_name }} Console and retrieve them whenever required for conditional authentication script.
33+
34+
{% else %}
35+
36+
You can securely store these secret values on the {{ product_name }} Console and retrieve them whenever required for `callChoreo()` conditional authentication function.
37+
38+
{% endif %}
39+
40+
{% if product_name == "Asgardeo" or (product_name == "WSO2 Identity Server" and is_version != "7.0.0") %}
2941

3042
!!! warning "Before you proceed"
3143

3244
When working with conditional authentication scripts, <b>never log secrets</b> or sensitive information within your authentication flows.
3345

46+
{% endif %}
47+
3448
### Create a new secret
3549

3650
To add a new secret:
@@ -81,6 +95,8 @@ To add a new secret:
8195

8296
6. Click **Finish** to complete the creation.
8397

98+
{% if product_name == "Asgardeo" or (product_name == "WSO2 Identity Server" and is_version != "7.0.0") %}
99+
84100
### Use secret in the script
85101

86102
You may refer to the previously added secrets in your conditional authentication scripts using the `secrets.{secret name}` syntax. For example, to retrieve a secret value, you may use:
@@ -91,6 +107,8 @@ var secretValue = secrets.secretName;
91107

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

110+
{% endif %}
111+
94112
### Delete an existing secret
95113

96114
To delete an existing secret:

0 commit comments

Comments
 (0)