{"id":20144060,"url":"https://github.com/billsjc/applelogin","last_synced_at":"2025-09-24T16:28:39.099Z","repository":{"id":57484005,"uuid":"194392740","full_name":"BillSJC/appleLogin","owner":"BillSJC","description":"a tool of sign in with apple of Golang","archived":false,"fork":false,"pushed_at":"2019-09-16T12:31:53.000Z","size":61,"stargazers_count":30,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T19:02:08.991Z","etag":null,"topics":["apple","go","golang","signinwithapple"],"latest_commit_sha":null,"homepage":null,"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/BillSJC.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":"2019-06-29T10:23:27.000Z","updated_at":"2024-10-06T03:14:43.000Z","dependencies_parsed_at":"2022-08-28T17:01:14.616Z","dependency_job_id":null,"html_url":"https://github.com/BillSJC/appleLogin","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/BillSJC/appleLogin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BillSJC%2FappleLogin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BillSJC%2FappleLogin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BillSJC%2FappleLogin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BillSJC%2FappleLogin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BillSJC","download_url":"https://codeload.github.com/BillSJC/appleLogin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BillSJC%2FappleLogin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273174665,"owners_count":25058469,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-01T02:00:09.058Z","response_time":120,"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":["apple","go","golang","signinwithapple"],"created_at":"2024-11-13T22:08:44.360Z","updated_at":"2025-09-24T16:28:38.980Z","avatar_url":"https://github.com/BillSJC.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# appleLogin\n\nA tool for `Sign In with Apple` REST API written in `Golang`\n\n![go-report](https://goreportcard.com/badge/github.com/BillSJC/appleLogin)\n\n![logo here](logo.jpg)\n\n### What it dose?\n\n- Full support of JWT Authorization for Apple Developer\n- Quick API to finish [Sign In with Apple REST API](https://developer.apple.com/documentation/signinwithapplerestapi) on Apple Document\n- Tool to create callBackURL\n\n### Install:\n\n\u003e go get github.com/BillSJC/appleLogin\n\n### Test:\n\n\u003e go test\n\n### Quick Start\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/BillSJC/appleLogin\"\n)\n\nfunc main(){\n\ta := appleLogin.InitAppleConfig(\"123ABC456D\",   //Team ID\n\t\t\"com.example.pkg\",  //Client ID (Service ID)\n\t\t\"https://www.example.com/callback\", //Callback URL\n\t\t\"your Apple Key ID\")    //Key ID\n\t\t\n\t//import cert\n\terr := a.LoadP8CertByFile(\"path to your p8 cert file\")  //path to cert file\n\t//or you can load cert from a string\n\terr = a.LoadP8CertByByte([]byte(\"set your cert string here\"))\n\t\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\t\n\t//create callback URL\n\tcallbackURL := a.CreateCallbackURL(\"state here\")\n\tfmt.Println(callbackURL)\n\t\n\t// ... some code to get Apple`s AuthorizationCode\n\tcode := \"xxxx\"\n\ttoken,err := a.GetAppleToken(code,3600)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tfmt.Println(token)\n\n}\n\n```\n\n### Functions\n\n#### InitAppleConfig\n\n#### LoadP8CertByFile\n\n#### LoadP8CertByByte\n\n#### CreateCallbackURL\n\n#### GetAppleToken","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbillsjc%2Fapplelogin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbillsjc%2Fapplelogin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbillsjc%2Fapplelogin/lists"}