{"id":21708571,"url":"https://github.com/xc2/fix-aws-cognito-userinfo","last_synced_at":"2026-05-05T09:31:54.338Z","repository":{"id":264311043,"uuid":"892933813","full_name":"xc2/fix-aws-cognito-userinfo","owner":"xc2","description":"An interceptor to make AWS Cognito works with PVE and openidconnect-rs","archived":false,"fork":false,"pushed_at":"2024-11-23T13:26:59.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-03T22:40:06.045Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xc2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2024-11-23T04:50:47.000Z","updated_at":"2024-11-23T13:27:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"a0f96182-a4f9-45cc-a4e8-baa972c322f4","html_url":"https://github.com/xc2/fix-aws-cognito-userinfo","commit_stats":null,"previous_names":["xc2/fix-aws-cognito-userinfo"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/xc2/fix-aws-cognito-userinfo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xc2%2Ffix-aws-cognito-userinfo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xc2%2Ffix-aws-cognito-userinfo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xc2%2Ffix-aws-cognito-userinfo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xc2%2Ffix-aws-cognito-userinfo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xc2","download_url":"https://codeload.github.com/xc2/fix-aws-cognito-userinfo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xc2%2Ffix-aws-cognito-userinfo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32643547,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"online","status_checked_at":"2026-05-05T02:00:06.033Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-25T22:27:54.215Z","updated_at":"2026-05-05T09:31:54.326Z","avatar_url":"https://github.com/xc2.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## What's this?\n\nA Cloudflare Worker that enhances AWS Cognito's [userinfo endpoint](https://docs.aws.amazon.com/cognito/latest/developerguide/userinfo-endpoint.html) compatibility with OpenID Connect standards.\n\n## What does it do\n\nThis worker intercepts AWS Cognito's userinfo endpoint responses and transforms specific attributes to ensure OpenID Connect compliance:\n\n- Converts `email_verified` from `string` to `boolean`\n- Converts `phone_verified` from `string` to `boolean`\n\nThese transformations ensure compatibility with the OpenID Connect [Standard Claims](https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims) specification.\n\n## Use Cases\n\nThis worker will be useful when integrating AWS Cognito with:\n\n- [openidconnect-rs](https://github.com/ramosbugs/openidconnect-rs)\n- [Proxmox VE](https://www.proxmox.com/en/proxmox-ve)\n- Other systems requiring strict OpenID Connect compliance\n\nWithout this worker, you might encounter errors like:\n\n```shell\npvedaemon[1234]: openid authentication failure; rhost=::ffff:100.88.111.216 msg=Failed to contact userinfo endpoint: Failed to parse server response\n```\n\n## Prerequisites\n\nBefore deployment, ensure you have:\n\n- An AWS Cognito user pool with a custom domain configured (Figure 1) \n- The custom domain's DNS records managed in Cloudflare (Figure 2)\n\n## Instructions\n\n### Enable Proxy Status of the custom domain (Figure 2)\n\n- Log into your Cloudflare dashboard\n- Locate your custom domain record\n- Enable the \"Proxy\" status (orange cloud)\n\n### Deploy the Worker\n\n- Clone this repository\n- Deploy to Cloudflare Workers using Wrangler or the Cloudflare dashboard\n\n### Configure Worker Route (Figure 3)\n\n- [Add a Worker route](https://developers.cloudflare.com/workers/configuration/routing/routes/) to intercept the userinfo endpoint\n- Pattern: `your.custom-domain.com/oauth2/userInfo` which is the same as the `userinfo_endpoint` of your user pool's openid configuraiton.\n\n### Figures\n\n| | |\n| -- | -- |\n| 1 | ![image](https://github.com/user-attachments/assets/00f0bec7-4d1d-4aa3-9ca8-dc185b377a22) |\n| 2 | ![image](https://github.com/user-attachments/assets/f89e0aa2-fc13-48b4-8b2d-662352b70c4e) |\n| 3 | ![image](https://github.com/user-attachments/assets/1d58750d-e8cc-4c31-9258-f88699299e52) |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxc2%2Ffix-aws-cognito-userinfo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxc2%2Ffix-aws-cognito-userinfo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxc2%2Ffix-aws-cognito-userinfo/lists"}