Skip to content

Commit

Permalink
Merge pull request #4942 from Sachin-Mamoru/fix-issue-7.0
Browse files Browse the repository at this point in the history
Added condition to remove features from 7.0.0
  • Loading branch information
Sachin-Mamoru authored Jan 2, 2025
2 parents bf618eb + 3c82c6c commit bde712b
Showing 1 changed file with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,26 @@ There are two ways to add a conditional authentication script:
- Write a [new conditional auth script]({{base_path}}/guides/authentication/conditional-auth/write-your-first-script/).

## Add a secret to the script
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.
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.

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

You can securely store these secret values on the {{ product_name }} Console and retrieve them whenever required for conditional authentication script.

{% else %}

You can securely store these secret values on the {{ product_name }} Console and retrieve them whenever required for `callChoreo()` conditional authentication function.

{% endif %}

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

!!! warning "Before you proceed"

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

{% endif %}

### Create a new secret

To add a new secret:
Expand Down Expand Up @@ -81,6 +95,8 @@ To add a new secret:

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

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

### Use secret in the script

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:
Expand All @@ -91,6 +107,8 @@ var secretValue = secrets.secretName;

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

{% endif %}

### Delete an existing secret

To delete an existing secret:
Expand Down

0 comments on commit bde712b

Please sign in to comment.