Bearer Token Authentication¶
Bases: IcebergRESTCatalogAuth, FrozenModel
Bearer Token Authentication for Iceberg REST Catalog.
All requests to REST catalog are made with HTTP header Authorization: Bearer {access_token}.
.. versionadded:: 0.15.0
Parameters:
-
access_token(str) –Access token <https://www.oauth.com/oauth2-servers/access-tokens/>_ for authentication.
Examples:
.. code:: python
from onetl.connection import Iceberg
auth = Iceberg.RESTCatalog.BearerAuth(
access_token="my_bearer_token",
)
get_config()
¶
Return REST catalog auth configuration.