Title: Support service account tokens · Issue #17 · lightdash/python-sdk · GitHub
Open Graph Title: Support service account tokens · Issue #17 · lightdash/python-sdk
X Title: Support service account tokens · Issue #17 · lightdash/python-sdk
Description: Current sdk sets the token header as Apikey. with httpx.Client( headers={ "Authorization": f"ApiKey {self.access_token}", "Accept": "application/json", }, timeout=self.timeout ) But the lightdash api expects the service account tokens to...
Open Graph Description: Current sdk sets the token header as Apikey. with httpx.Client( headers={ "Authorization": f"ApiKey {self.access_token}", "Accept": "application/json", }, timeout=self.timeout ) But the lightdash a...
X Description: Current sdk sets the token header as Apikey. with httpx.Client( headers={ "Authorization": f"ApiKey {self.access_token}", "Accept": "application/json", }, ti...
Opengraph URL: https://github.com/lightdash/python-sdk/issues/17
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support service account tokens","articleBody":"Current sdk sets the token header as [`Apikey`](https://github.com/lightdash/python-sdk/blob/main/lightdash/client.py#L91).\n```python\nwith httpx.Client(\n headers={\n \"Authorization\": f\"ApiKey {self.access_token}\",\n \"Accept\": \"application/json\",\n },\n timeout=self.timeout\n) \n``` \nBut the lightdash api expects the service account tokens to be prefixed with [`Bearer`](https://github.com/lightdash/lightdash/blob/main/packages/backend/src/ee/authentication/middlewares.ts#L95)\n\n```typescript\n// If it is not a specific Bearer token, we do next, without throwing an error\n// This could be an ApiKey token, or already authenticated user\nif (tokenParts.length !== 2 || tokenParts[0] !== 'Bearer') {\n // We will execute the next middleware\n next();\n return;\n}\n``` \n","author":{"url":"https://github.com/vijaybandari","@type":"Person","name":"vijaybandari"},"datePublished":"2026-04-22T00:33:41.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/17/python-sdk/issues/17"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d342ea20-d0f4-af32-c1f0-831843db415f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BC0C:8CD9D:10020F5:161821C:6A4DF277 |
| html-safe-nonce | 321483e0a93d1b78a84a2a064d59400abf05efba4fa758f3d5ae1feb078df346 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzBDOjhDRDlEOjEwMDIwRjU6MTYxODIxQzo2QTRERjI3NyIsInZpc2l0b3JfaWQiOiI1ODYyMjEyMzUzMTMxNDEwMDM5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 6b7b35b484fa98888e5193d8d451bebfa92efea8ac08eefc242e55b8c5dffbac |
| hovercard-subject-tag | issue:4306025055 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/lightdash/python-sdk/17/issue_layout |
| twitter:image | https://opengraph.githubassets.com/92ff1e44647b3987bbbc8439b6bdf1322e6a2bf3f48a3ae0c3d6bf99d81c703c/lightdash/python-sdk/issues/17 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/92ff1e44647b3987bbbc8439b6bdf1322e6a2bf3f48a3ae0c3d6bf99d81c703c/lightdash/python-sdk/issues/17 |
| og:image:alt | Current sdk sets the token header as Apikey. with httpx.Client( headers={ "Authorization": f"ApiKey {self.access_token}", "Accept": "application/json", }, timeout=self.timeout ) But the lightdash a... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vijaybandari |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5818716c93c6a2925b815402541a32814e43a7b1261c322b0c2df75224289566 |
| turbo-cache-control | no-preview |
| go-import | github.com/lightdash/python-sdk git https://github.com/lightdash/python-sdk.git |
| octolytics-dimension-user_id | 65912827 |
| octolytics-dimension-user_login | lightdash |
| octolytics-dimension-repository_id | 932695849 |
| octolytics-dimension-repository_nwo | lightdash/python-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 932695849 |
| octolytics-dimension-repository_network_root_nwo | lightdash/python-sdk |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f4bb89367ca678f057d79b1abc45d6675b1bd5b2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width