> For the complete documentation index, see [llms.txt](https://selenium-4.gitbook.io/nexus-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://selenium-4.gitbook.io/nexus-docs/docs/party-authentication/execute-password-verification-and-validation/main.md).

# Execute Password Verification and Validation

| Campo              | Valor                                                                                  |
| ------------------ | -------------------------------------------------------------------------------------- |
| **Service Domain** | Party Authentication                                                                   |
| **BIAN Version**   | 14.0.0                                                                                 |
| **Operation**      | Execute Password Verification and Validation                                           |
| **Method**         | PUT                                                                                    |
| **API Name**       | Party Authentication API                                                               |
| **Versão**         | v1.0.0                                                                                 |
| **Endpoint**       | `PUT /v1/party-authentication/{partyAuthenticationId}/password-authentication/execute` |
| **Autenticação**   | Bearer Token (OAuth 2.0 / OIDC)                                                        |

***

## 1. Descrição da Operação

A operação permite executar a verificação e validação da password de um Party (cliente) no âmbito da autenticação de identidade, através do canal indicado no pedido.

O pedido identifica o canal de autenticação (ex.: aplicação móvel) e envia a password num formato cifrado (hash). A resposta indica o resultado da verificação, o número de tentativas restantes, a data de expiração da password, se é necessária a sua alteração e a data da última alteração.

***

## 2. Cabeçalhos HTTP

| Header          | Tipo   | Obrigatório | Descrição          |
| --------------- | ------ | ----------- | ------------------ |
| `Authorization` | string | Sim         | Bearer Token.      |
| `Content-Type`  | string | Sim         | `application/json` |
| `Accept`        | string | Sim         | `application/json` |

***

## 3. Path Parameters

| Parâmetro               | Obrigatório | Descrição                  |
| ----------------------- | ----------- | -------------------------- |
| `partyAuthenticationId` | Sim         | Identificador do contrato. |

***

## 4. Payload de Pedido (Request)

### 4.1 Exemplo

```json
{
  "AuthenticationChannelReference": {
    "Text": "MOBILE_APP"
  },
  "AuthenticationPasswordReference": {
    "PasswordFormat": {
      "Text": "Encrypted_Password_Hash"
    },
    "PasswordValue": {
      "Value": "ODdiZWUzYWIyZDU2YzI0ODYxMzkxMGFmYjNiYTI4NzY="
    }
  }
}
```

### 4.2 Dicionário de Campos

| Campo                                                 | Descrição                                                               |
| ----------------------------------------------------- | ----------------------------------------------------------------------- |
| `AuthenticationChannelReference.Text`                 | Canal através do qual a autenticação é realizada (ex.: `MOBILE_APP`).   |
| `AuthenticationPasswordReference.PasswordFormat.Text` | Formato em que a password é fornecida (ex.: `Encrypted_Password_Hash`). |
| `AuthenticationPasswordReference.PasswordValue.Value` | Valor da password, cifrado/codificado.                                  |

***

## 5. Payload de Resposta (Response)

### 5.1 Exemplo

```json
{
  "PasswordVerificationResult": "Success",
  "RemainingAttempts": 2,
  "PasswordExpiryDate": "2025-09-01",
  "RequiresPasswordChange": false,
  "LastPasswordChangeDate": "2025-06-15"
}
```

### 5.2 Dicionário de Campos

| Campo                        | Descrição                                              |
| ---------------------------- | ------------------------------------------------------ |
| `PasswordVerificationResult` | Resultado da verificação da password (ex.: `Success`). |
| `RemainingAttempts`          | Número de tentativas restantes antes do bloqueio.      |
| `PasswordExpiryDate`         | Data de expiração da password.                         |
| `RequiresPasswordChange`     | Indica se é necessária a alteração da password.        |
| `LastPasswordChangeDate`     | Data da última alteração de password.                  |


---

# 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 following URL with the `ask` and `goal` query parameters:

```
GET https://selenium-4.gitbook.io/nexus-docs/docs/party-authentication/execute-password-verification-and-validation/main.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 `build a script that syncs our docs to a CMS` 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.
