> For the complete documentation index, see [llms.txt](https://docs.contextual.io/documentation-and-resources/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.contextual.io/documentation-and-resources/components-and-data/connections/types-of-connections/password-grant.md).

# Password Grant

**Description**

The OAuth 2.0 Password Grant, also known as the Resource Owner Password Credentials (ROPC) grant, is a type of authorization grant in OAuth 2.0 that allows an application to obtain an access token by directly using the resource owner's credentials (i.e., username and password). This grant type is primarily used in scenarios where the application is highly trusted by the user, such as first-party applications, and the user can provide their credentials directly to the application.

### **Required Information**

* **API Endpoint:** The URL of the API endpoint.
* **Auth Endpoint**: The ID for the client application.
* **Username:** The username of the resource owner account.
* **Password:** The password of the resource owner account.
* **Client ID:** The client Id for the client application
* **Client Secret**: The secret key for the client application.
* **Audience**: Specifies the intended recipients of the token.
* **Scope**: Defines the level of access and permissions the token grants.
* **Connection Type:** Indicates the data formatting required by the connection server. Currently supported formats are:
  * application/json
  * xxx-www-form-encoded


---

# 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://docs.contextual.io/documentation-and-resources/components-and-data/connections/types-of-connections/password-grant.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.
