{"id":21456058,"url":"https://github.com/etkecc/go-echo-basic-auth","last_synced_at":"2026-03-11T22:01:05.548Z","repository":{"id":253042663,"uuid":"840000400","full_name":"etkecc/go-echo-basic-auth","owner":"etkecc","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-22T16:18:06.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-22T17:36:07.897Z","etag":null,"topics":["auth","echo-framework","library"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/etkecc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null},"funding":{"liberapay":"etkecc"}},"created_at":"2024-08-08T18:55:16.000Z","updated_at":"2025-04-22T16:18:10.000Z","dependencies_parsed_at":"2024-12-19T11:20:04.883Z","dependency_job_id":"85f37607-eab8-4293-967f-f0a57aa36eb6","html_url":"https://github.com/etkecc/go-echo-basic-auth","commit_stats":null,"previous_names":["etkecc/go-echo-basic-auth"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/etkecc/go-echo-basic-auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etkecc%2Fgo-echo-basic-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etkecc%2Fgo-echo-basic-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etkecc%2Fgo-echo-basic-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etkecc%2Fgo-echo-basic-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/etkecc","download_url":"https://codeload.github.com/etkecc/go-echo-basic-auth/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etkecc%2Fgo-echo-basic-auth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30404048,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T21:51:19.558Z","status":"ssl_error","status_checked_at":"2026-03-11T21:50:57.892Z","response_time":84,"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":["auth","echo-framework","library"],"created_at":"2024-11-23T05:14:22.675Z","updated_at":"2026-03-11T22:01:05.542Z","avatar_url":"https://github.com/etkecc.png","language":"Go","funding_links":["https://liberapay.com/etkecc"],"categories":[],"sub_categories":[],"readme":"# echo basic auth\n\nBasic Auth middleware with constant time equality checks and optional IP whitelisting for Echo framework.\nCIDRs are supported for IP whitelisting as well\n\n## Usage\n\n```go\nauth := \u0026echobasicauth.Auth{Login: \"test\", Password: \"test\", IPs: []string{\"127.0.0.1\", \"10.0.0.0/24\"}}\ne.Use(echobasicauth.NewMiddleware(auth))\n// or you can use echobasicauth.NewValidator(auth) if you want to define the middleware yourself\n```\n\n### IP validation without credentials\n\nYou can use `AllowedIP` directly to check if an IP is allowed without validating credentials:\n\n```go\nauth := \u0026echobasicauth.Auth{IPs: []string{\"127.0.0.1\", \"10.0.0.0/24\"}}\nif auth.AllowedIP(c.RealIP()) {\n    // IP is allowed\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fetkecc%2Fgo-echo-basic-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fetkecc%2Fgo-echo-basic-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fetkecc%2Fgo-echo-basic-auth/lists"}