> For the complete documentation index, see [llms.txt](https://ajuda.rnp.br/cafe/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ajuda.rnp.br/cafe/idp-cafe/faq/instalacao-manual-do-mfa-cafe/configuracoes-importantes-captcha.md).

# 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="https://3706451151-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M94Z581aPIo4Bzo9ImS%2Fuploads%2FEyCclPbGQQLOIeUK5oat%2Fimage.png?alt=media&amp;token=f0466c37-9986-4d54-87bd-a22a1c0b3174" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://3706451151-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M94Z581aPIo4Bzo9ImS%2Fuploads%2FRMkJ3Vh3NCH8DOFhb3E2%2Fimage.png?alt=media&amp;token=088d04e9-3fc7-4115-ab03-56d10b9744fe" 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
