Adding Google ReCaptcha⚓︎
- Ensure you comply with the pre-requisites at Pre Requisites Virtual Networks and Pre Requisites (in that order) and you have access to the Google Developer Console.
- Login with your Google account and navigate to the ReCaptcha Admin Console for your site.
- Copy the Site Key and Secret Key to a secure place, you will need these later.
- Add the domain of your current SmartDocumentor instance to the ReCaptcha configuration (do not include http:// or https://):
- If you have a Custom Domain set according to Adding A Custom Domain, set "my.domain.net" to that value.
- If you do not have a Custom Domain, use the default domain Azure assigned to the
smart-documentorContainer App. You can find this by navigating to thesmart-documentorresource and copying the URL in the Initial/Overwiew page in the top right underApplication Url
- With these two values copied, navigate to the resource group and find the Key Vault resource with the name
kv-app-config-xxxxxx, where the last 6 characters are unique to your deployment.- Click the "Secrets" tab under "Objects" on the left.
- Add the following three secrets with the following parameters:
- Name: Recaptcha--Active , with value
true. - Name: Recaptcha--Settings--SecretKeyV3 , with the value set to the Secret Key you copied in the previous step.
- Name: Recaptcha--Settings--SiteKeyV3 , with the value set to the Site Key you copied in the previous step.
- Name: Recaptcha--Active , with value
- Navigate to the
smart-documentorContainer App and click the "Containers" tab under "Application". In this page, click "Save as a new revision" and wait until the revision is applied. If "Save as a new revision" is not available, simply disable and re-enable the container in the "Overview" tab. - If your open SmartDocumentor in your browser and try to register a new account, the register page should display a ReCaptcha badge at the bottom right corner.
Info
"Save as a new revision" is equivalent to an application restart. For configuration secrets to be applied, a restart is always necessary.