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

# TokenAuthentication

<span id="atoti.TokenAuthentication" />

> atoti.TokenAuthentication(<br />
>     *token*: [str](https://docs.python.org/3/library/stdtypes.html#str),<br />
>     \*,<br />
>     *token\_type*: [str](https://docs.python.org/3/library/stdtypes.html#str) = `'Bearer'`,<br />
> )

Authenticate requests by passing the given token in the `Authorization` header.

This is also called “Bearer authentication”.

### Attributes

<h4 id="atoti.TokenAuthentication.token">
  *token*
</h4>

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

<h4 id="atoti.TokenAuthentication.token_type">
  *token\_type*
</h4>

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