Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Full verification of Cloudflare Access token #74

Open
mseebach opened this issue Mar 9, 2024 · 0 comments
Open

Full verification of Cloudflare Access token #74

mseebach opened this issue Mar 9, 2024 · 0 comments

Comments

@mseebach
Copy link

mseebach commented Mar 9, 2024

Hey -- thanks for making this, it's been very helpful for me!

I added a bit to it to enable end-to-end verification of the CF Zero-Trust access token, which is slightly involved because you have to dynamically load the cert from a CF endpoint.

The code is here -- I won't attempt a PR as my Javascript (and certainly TypeScript) skills are rudimentary:

https://gist.github.com/mseebach/f2c7dc1f6fd741070e52253ad8067275

It expects an environment variable of "TEAM_NAME" and optionally one of JWT, for local dev (copy the CF_Authorization cookie from DevTools on a real authenticated session and stick it in .dev.vars.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant