{"id":40983133,"url":"https://github.com/dapperlabs/dappauth","last_synced_at":"2026-01-22T07:19:23.128Z","repository":{"id":52839884,"uuid":"153241605","full_name":"dapperlabs/dappauth","owner":"dapperlabs","description":"A Go util for ERC-1654","archived":false,"fork":false,"pushed_at":"2021-04-16T22:04:05.000Z","size":75,"stargazers_count":8,"open_issues_count":1,"forks_count":8,"subscribers_count":60,"default_branch":"master","last_synced_at":"2024-06-19T02:58:57.792Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/ethereum/EIPs/issues/1654","language":"Go","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/dapperlabs.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}},"created_at":"2018-10-16T07:29:11.000Z","updated_at":"2024-06-19T02:58:57.793Z","dependencies_parsed_at":"2022-08-20T02:01:24.826Z","dependency_job_id":null,"html_url":"https://github.com/dapperlabs/dappauth","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/dapperlabs/dappauth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dapperlabs%2Fdappauth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dapperlabs%2Fdappauth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dapperlabs%2Fdappauth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dapperlabs%2Fdappauth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dapperlabs","download_url":"https://codeload.github.com/dapperlabs/dappauth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dapperlabs%2Fdappauth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28658102,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"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":"2026-01-22T07:19:22.960Z","updated_at":"2026-01-22T07:19:23.116Z","avatar_url":"https://github.com/dapperlabs.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.com/dapperlabs/dappauth.svg?branch=master)](https://travis-ci.com/dapperlabs/dappauth)\n[![Coverage Status](https://coveralls.io/repos/github/dapperlabs/dappauth/badge.svg?branch=master)](https://coveralls.io/github/dapperlabs/dappauth?branch=master)\n# dappauth\n\n## Example usage within a webserver\n\n```Go\npackage main\n\nimport (\n\t\"log\"\n\t\"net/http\"\n\n\t\"github.com/ethereum/go-ethereum/ethclient\"\n\t\"github.com/dapperlabs/dappauth\"\n)\n\n// AuthenticationHandler ..\ntype AuthenticationHandler struct {\n\tclient *ethclient.Client\n}\n\n// NewAuthenticationHandler ..\nfunc NewAuthenticationHandler(rawurl string) (*AuthenticationHandler, error) {\n\tclient, err := ethclient.Dial(rawurl)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn \u0026AuthenticationHandler{client: client}, nil\n}\n\n// ServeHTTP serves just a single route for authentication as an example\nfunc (a *AuthenticationHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\n\tchallenge := r.PostFormValue(\"challenge\")\n\tsignature := r.PostFormValue(\"signature\")\n\taddrHex := r.PostFormValue(\"addrHex\")\n\n\tauthenticator := dappauth.NewAuthenticator(r.Context(), a.client)\n\tisAuthorizedSigner, err := authenticator.IsAuthorizedSigner(challenge, signature, addrHex)\n\tif err != nil {\n\t\t// return a 5XX status code\n\t}\n\tif !isAuthorizedSigner{\n\t\t// return a 4XX status code\n\t}\n\n\t// create an authenticated session for address\n\t// return a 2XX status code\n}\n\nfunc main() {\n\thandler, err := NewAuthenticationHandler(\"https://mainnet.infura.io\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tlog.Fatal(http.ListenAndServe(\":8080\", handler))\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdapperlabs%2Fdappauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdapperlabs%2Fdappauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdapperlabs%2Fdappauth/lists"}