> ## 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

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

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

**See also**:
[`atoti.OidcConfig.access_token_format`](./atoti.config.security.OidcConfig#atoti.OidcConfig.access_token_format).

### Attributes

#### *client\_id*

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

#### *client\_secret*

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

#### *issuer\_url*

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

#### *password*

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

#### *scopes*

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

#### *username*

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