> For the complete documentation index, see [llms.txt](https://docs.konnekt.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.konnekt.io/pt/configuration/system-settings/enhanced-authentication.md).

# Autenticação melhorada

A Autenticação Aprimorada permite que o KONNEKT use uma versão melhorada [autorização OAuth 2.0](https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-auth-code-flow#protocol-details).

{% hint style="danger" %}
Ao ativar esta definição:

* **Uma nova** [**registo de aplicação Azure**](/pt/installation/security/grant-admin-consent-in-enterprise-applications.md) **é necessário**
* Os utilizadores precisam de se autenticar novamente!
* Os namespaces são construídos a partir de [domínio predefinido](https://learn.microsoft.com/en-us/microsoft-365/admin/setup/domains-faq?view=o365-worldwide#how-do-i-set-or-change-the-default-domain-in-microsoft-365) (\\\onedrive-\<DefaultDomainName>\\\\...), já não a partir de [domínio inicial](https://learn.microsoft.com/en-us/microsoft-365/admin/setup/domains-faq?view=o365-worldwide#how-do-i-set-or-change-the-default-domain-in-microsoft-365) (\\\onedrive-\<InitialDomainName>\\\\...).
  * Os possíveis efeitos secundários incluem:
    * As pastas fixadas do KONNEKT no Acesso Rápido não funcionarão
    * Os caminhos UNC do KONNEKT nas aplicações Office ainda podem referir-se a nomes anteriores
      {% endhint %}

{% hint style="info" %}
Esta política é aplicável à versão 2.10 do KONNEKT e superior.
{% endhint %}

Para ativar esta definição, configure-a em todo o Tenant. A ativação disto fará com que o Azure registe uma nova app com menos permissões.

Com permissões mais detalhadas, os utilizadores terão de se autenticar novamente. Além disso, o caminho UNC e o nome do Tenant apresentado mudarão para o nome do Tenant predefinido em vez do nome inicial do Tenant.

Esta funcionalidade permite o uso de políticas de Conditional Access com aplicações excluídas no Microsoft Entra ID.

<figure><img src="https://1241930089-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8zLVuKYctMIUr68_fs%2Fuploads%2F4rxJp5xlmaA8AQ8pTldi%2Fimage.png?alt=media&amp;token=e230ddc6-92f8-44ee-812d-5061cb19cb2d" alt=""><figcaption></figcaption></figure>

### Política

Nome da política: OAuth Aprimorado

Valores possíveis: pode ser ativado ou desativado.

O valor predefinido é desativado.

{% hint style="info" %}
Recomendamos utilizar a nossa versão mais recente [modelo ADMX](/pt/configuration/management-options/settings-via-gpo.md#admx-file) para configurar esta definição. Encontrará a política em "Definições do sistema" no editor de GPO.
{% endhint %}

{% hint style="info" %}
Depois de o novo registo de aplicação Azure estar configurado, o antigo deve ser eliminado.
{% endhint %}

### Registo

Nome da chave: EnhancedOAuth

Tipo: REG\_DWORD de 32 bits

|   Função  |             Valor             | Comportamento                                               |
| :-------: | :---------------------------: | ----------------------------------------------------------- |
| Desativar | <p>0</p><p>(predefinição)</p> | O KONNEKT usará os procedimentos tradicionais do OAuth 2.0. |
|   Ativar  |               1               | O KONNEKT usará um código OAuth 2.0 melhorado com.          |

O valor predefinido é 0 (desativado).


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.konnekt.io/pt/configuration/system-settings/enhanced-authentication.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
