Examples to get started with Hyperfluid, and how to use with Service Accounts:
-
An account on Hyperfluid demo (or your own instance)
-
Create an organization
- Create an Harbor
- Create a DataDock with a Kind to
TrinoInternal
(choose your own options) - In your DataDock details page, go to the "Data Containers" tab
- Click on "TPCH" catalog to add it to your Trino Data Dock
-
Create a service account
-
Move it to
./bun/service_account.json
-
Go to
cd ./bun/
-
Execute the bun script
pnpm install
pnpm dev
Note
When starting the example program, you can change the service account path with the environment variable SERVICE_ACCOUNT_PATH
(defaulting to : ./bun/service_account.json
).
You can choose between two authentication methods:
- Client Credentials Flow: your client will authenticate as a service account
- Example on how to use it:
./bun/src/auth_utils/client_credentials.ts
- Example on how to use it:
- Authorization Code Flow: your client will authenticate as a user (like when you login to the web app)
- Example on how to use it:
./bun/src/auth_utils/authorization_code.ts
- Example on how to use it: