{"id":20973887,"url":"https://github.com/nprail/static-auth-poc","last_synced_at":"2026-04-27T19:03:10.693Z","repository":{"id":66139165,"uuid":"131200344","full_name":"nprail/static-auth-poc","owner":"nprail","description":"🔑 Authentication middleware for static websites (POC)","archived":false,"fork":false,"pushed_at":"2019-01-24T13:01:57.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-12-26T08:36:06.623Z","etag":null,"topics":["authentication","authorization","middleware","static-site"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/nprail.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}},"created_at":"2018-04-26T19:16:49.000Z","updated_at":"2019-01-24T13:04:58.000Z","dependencies_parsed_at":"2023-04-26T10:33:39.892Z","dependency_job_id":null,"html_url":"https://github.com/nprail/static-auth-poc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nprail/static-auth-poc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nprail%2Fstatic-auth-poc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nprail%2Fstatic-auth-poc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nprail%2Fstatic-auth-poc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nprail%2Fstatic-auth-poc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nprail","download_url":"https://codeload.github.com/nprail/static-auth-poc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nprail%2Fstatic-auth-poc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32350245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T17:12:42.749Z","status":"ssl_error","status_checked_at":"2026-04-27T17:12:41.658Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["authentication","authorization","middleware","static-site"],"created_at":"2024-11-19T04:22:20.818Z","updated_at":"2026-04-27T19:03:10.669Z","avatar_url":"https://github.com/nprail.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Static Site Auth (POC)\n\n## Instructions\n\nClone the repo.\n\n```bash\ngit clone git@github.com:nprail/static-auth-poc.git\ncd static-auth-poc\n```\n\nInstall the dependencies.\n\n```bash\nnpm install\n```\n\nStart the proxy and login server.\n\n```bash\nnpm start\n```\n\nBrowse to http://localhost:3000\n\n- **Username:** demo@example.com\n- **Password:** demo\n\n## Components\n\n### Proxy Server\n\nThe proxy server simply proxies the a site and adds middleware that verifies that the token exists and is valid.\n\n### Login Server\n\nThe login server hosts the login page and acts as the login API.\n\n## Flow\n\n1.  User goes to a password protected site (e.g. protected.example.com)\n2.  User is redirected to the Login Server and logs in\n3.  User is redirected back to protected.example.com with new JWT token stored in a cookie\n4.  The JWT token is then used to verify that the user has access to the site\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnprail%2Fstatic-auth-poc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnprail%2Fstatic-auth-poc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnprail%2Fstatic-auth-poc/lists"}