esdee
esdee
CDCloudflare Developers
Created by esdee on 1/17/2024 in #workers-help
Anyone have a n example of Validating Cf-Access-Jwt-Assertion from a worker
The JS example in the docs https://developers.cloudflare.com/cloudflare-one/identity/authorization-cookie/validating-json/ uses npm libraries, which means I have to use node_compat = true in wrangler.toml Are they any examples that do not require this?
2 replies
CDCloudflare Developers
Created by esdee on 3/1/2023 in #workers-help
Authentication error deploying Worker using Github actions
I've set up a Github action to deploy a Cloudflare worker based on the instructions here https://github.com/cloudflare/wrangler-action I created my API-Token as per the instructions and the deploy worked fine, until I added a preCommand to apply D1 migrations. The text pf the command is wrangler d1 migrations apply env_var_db --env production which works just fine from the command line That gives me an error Authentication error [code: 10000] from the Github action. I do have "All accounts - D1 Read, D1: Edit" set on the Api-Token I'm using. Is there anything else I need to add or some way to isolate the issue?
1 replies