# Configurações importantes - CAPTCHA

{% hint style="warning" %}
O CAPTCHA por padrão vem desabilitado. Para habilitá-lo, deve ser configurado as chaves do CAPTCHA.
{% endhint %}

As configurações devem ser realizadas no arquivo “/opt/shibboleth-idp/conf/idp.propeties”. Devem ser configuradas as informações indicadas a seguir:

```properties
rnp.authn.CaptchaToken.key
rnp.authn.CaptchaToken.secret
```

{% hint style="danger" %}
Deixe os valores vazio caso não deseje habilitar o CAPTCHA.
{% endhint %}

#### Para obter os valores a serem preenchidos, deve ser realizado o procedimento de cadastro da junto ao Google. Procedimentos em: <https://www.google.com/recaptcha/admin/create>

&#x20;

A figura a seguir detalha o processo de cadastro. No processo de cadastro, selecione a opção “reCAPTCHA v2”. e depois “Selo de reCaptcha invisível”. EM etiqueta digite qualquer palavra que te ajude a lembrar do que se trata o cadastro. Importante é cadastrar adequadamente o domínio em “Domínios” (digitar o domínio ao lado do botão “+”).

<figure><img src="/files/Lopl772IAC1BqsvkyoTc" alt=""><figcaption></figcaption></figure>

Ao final, clique em “Enviar”. Será exibida uma tela como a seguir.

<figure><img src="/files/jiBZ9pJXYKRbvWPZPaP2" alt=""><figcaption></figcaption></figure>

Basta copiar os dados e configurar no arquivo de propriedade.

**●   rnp.authn.CaptchaToken.key=\[colocar aqui o valor de “Chave de site”]**

**●   rnp.authn.CaptchaToken.secret=\[colocar aqui o valor de “Chave secreta”]**

&#x20;

{% hint style="danger" %}
ATENÇÃO:  ao cadastrar o domínio, certifique-se que cadastrou o FDQN do servidor IDP de sua instituição. Lembre também de configurar os dados tanto no servidor principal como nos secundários (em caso de ambiente redundante).
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ajuda.rnp.br/cafe/idp-cafe/faq/instalacao-manual-do-mfa-cafe/configuracoes-importantes-captcha.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
