{"id":25115809,"url":"https://github.com/allancalix/auth0-rust-cf-worker","last_synced_at":"2026-04-15T22:34:20.284Z","repository":{"id":130356213,"uuid":"407027404","full_name":"allancalix/auth0-rust-cf-worker","owner":"allancalix","description":"A Cloudflare worker written in rust following the Auth0 integration guide.","archived":false,"fork":false,"pushed_at":"2021-09-16T05:15:03.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-30T05:43:33.802Z","etag":null,"topics":["auth0","authentication","cloudflare","cloudflare-workers","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/allancalix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-16T05:05:16.000Z","updated_at":"2021-09-16T05:15:06.000Z","dependencies_parsed_at":"2023-04-28T23:48:27.027Z","dependency_job_id":null,"html_url":"https://github.com/allancalix/auth0-rust-cf-worker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/allancalix/auth0-rust-cf-worker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allancalix%2Fauth0-rust-cf-worker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allancalix%2Fauth0-rust-cf-worker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allancalix%2Fauth0-rust-cf-worker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allancalix%2Fauth0-rust-cf-worker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/allancalix","download_url":"https://codeload.github.com/allancalix/auth0-rust-cf-worker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allancalix%2Fauth0-rust-cf-worker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31863493,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["auth0","authentication","cloudflare","cloudflare-workers","rust"],"created_at":"2025-02-08T02:34:20.959Z","updated_at":"2026-04-15T22:34:20.249Z","avatar_url":"https://github.com/allancalix.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Authentication Cloudflare Worker\n\nA Rust implementation of Cloudflare's authentication [integration guide for\nAuth0][Integration Guide]. This worker uses Cloudflare's [Rust bindings](\nhttps://github.com/cloudflare/workers-rs) and compiles targets a WASM binary.\nThis project was mainly an experiment to evaluate the platform and specifically\nthe Rust bindings. The goal here is _not to develop a production-ready\nsolution_, however it could be a useful starting place if you are following the\nguide yourself.\n\nSome things that could be implemented (among others) to further expand on this are:\n\n  * Logout\n  * PAT / Bearer token style authentication\n  * Invitation-only sign up\n\n## Trying it out\n\nIn order to try this yourself, you'll have to setup a Cloudflare account and\nsetup workers. You'll also need [Wrangler][], a CLI for managing Cloudflare\nworkers.\n\nThe [wrangler.toml](wrangler.toml) configuration should be updated with real\nvalues from your own configuration if you want to try this out for yourself. In\naddition, there are several secrets that you can setup for your worker through\nwrangler.\n\n```bash\n# The domain of your AUTH0 application.\nwrangler secret put AUTH0_DOMAIN\n# The client secret for your application.\nwrangler secret put AUTH0_CLIENT_SECRET\n# The client ID for your application.\nwrangler secret put AUTH0_CLIENT_ID\n# Can be anything, is used for salting state tokens on login. You can generate\n# one with `openssl rand -base64 12`.\nwrangler secret put AUTH_SALT\n```\n\n```toml\nname = \"\u003cINSERT DESIRED CLOUDFLARE WORKER NAME\u003e\"\ntype = \"javascript\"\nworkers_dev = true\ncompatibility_date = \"2021-08-27\"\ncompatibility_flags = [ \"formdata_parser_supports_files\" ]\n\nkv_namespaces = [\n  { binding = \"AUTH_STORE\", id = \"\u003cKV_BINDING\u003e\", preview_id = \"\u003cKV_BINDING\u003e\"}\n]\n\n[vars]\nHOST_DOMAIN = \"http://127.0.0.1:8787\"\nCOOKIE_DOMAIN = \"127.0.0.1\"\n\n[env.production]\nkv_namespaces = [\n  { binding = \"AUTH_STORE\", id = \"\u003cKV_BINDING\u003e\"}\n]\n\n[env.production.vars]\nHOST_DOMAIN = \"myaccounts.mydomain.com\"\nCOOKIE_DOMAIN = \"mydomain.com\"\n\n[build]\ncommand = \"cargo install -q worker-build \u0026\u0026 worker-build --release\" # required\n\n[build.upload]\ndir    = \"build/worker\"\nformat = \"modules\"\nmain   = \"./shim.mjs\"\n\n[[build.upload.rules]]\nglobs = [\"**/*.wasm\"]\ntype  = \"CompiledWasm\"\n```\n\n```sh\nwrangler dev\n```\n\n\u003c!-- FOOTER LINKS --\u003e\n[Integration Guide]: https://developers.cloudflare.com/workers/tutorials/authorize-users-with-auth0\n[Wrangler]: https://developers.cloudflare.com/workers/cli-wrangler/install-update\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallancalix%2Fauth0-rust-cf-worker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fallancalix%2Fauth0-rust-cf-worker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallancalix%2Fauth0-rust-cf-worker/lists"}