> ## Documentation Index
> Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# OAuth2ResourceOwnerPasswordAuthentication

<span id="atoti.OAuth2ResourceOwnerPasswordAuthentication" />

> atoti.OAuth2ResourceOwnerPasswordAuthentication(<br />
>     \*,<br />
>     *client\_id*: [str](https://docs.python.org/3/library/stdtypes.html#str),<br />
>     *client\_secret*: [str](https://docs.python.org/3/library/stdtypes.html#str),<br />
>     *issuer\_url*: [str](https://docs.python.org/3/library/stdtypes.html#str),<br />
>     *password*: [str](https://docs.python.org/3/library/stdtypes.html#str),<br />
>     *scopes*: [Set](https://docs.python.org/3/library/collections.abc.html#collections.abc.Set)\[[str](https://docs.python.org/3/library/stdtypes.html#str)] = `frozenset({})`,<br />
>     *username*: [str](https://docs.python.org/3/library/stdtypes.html#str),<br />
> )

Authenticate requests with OAuth 2’s [Resource Owner Password Credentials Grant](https://datatracker.ietf.org/doc/html/rfc6749#section-4.3).

<Callout icon="link">
  **See also**:
  [`atoti.OidcConfig.access_token_format`](./atoti.config.security.OidcConfig#atoti.OidcConfig.access_token_format).
</Callout>

### Attributes

<h4 id="atoti.OAuth2ResourceOwnerPasswordAuthentication.client_id">
  *client\_id*
</h4>

> [str](https://docs.python.org/3/library/stdtypes.html#str)

<h4 id="atoti.OAuth2ResourceOwnerPasswordAuthentication.client_secret">
  *client\_secret*
</h4>

> [str](https://docs.python.org/3/library/stdtypes.html#str)

<h4 id="atoti.OAuth2ResourceOwnerPasswordAuthentication.issuer_url">
  *issuer\_url*
</h4>

> [str](https://docs.python.org/3/library/stdtypes.html#str)

<h4 id="atoti.OAuth2ResourceOwnerPasswordAuthentication.password">
  *password*
</h4>

> [str](https://docs.python.org/3/library/stdtypes.html#str)

<h4 id="atoti.OAuth2ResourceOwnerPasswordAuthentication.scopes">
  *scopes*
</h4>

> [Set](https://docs.python.org/3/library/collections.abc.html#collections.abc.Set)\[[str](https://docs.python.org/3/library/stdtypes.html#str)]

<h4 id="atoti.OAuth2ResourceOwnerPasswordAuthentication.username">
  *username*
</h4>

> [str](https://docs.python.org/3/library/stdtypes.html#str)
