Skip to main content

Bearer Token

The bearer-token provider sends the configured token in the HTTP request header:

Authorization: Bearer <token>

Obtain a token from your catalog service. The service defines how tokens are issued and validated; the Paimon client supplies the token with each request.

CREATE CATALOG `paimon-rest-catalog` WITH (
'type' = 'paimon',
'uri' = '<catalog server url>',
'metastore' = 'rest',
'warehouse' = 'my_instance_name',
'token.provider' = 'bear',
'token' = '<token>'
);

The provider identifier is bear, even though the HTTP authentication scheme is called Bearer. For Alibaba Cloud DLF authentication, see DLF Token.