{"id":34225689,"url":"https://github.com/skyth3r/go-monzo-oauth-flow","last_synced_at":"2026-03-10T08:33:17.577Z","repository":{"id":242074963,"uuid":"805785411","full_name":"skyth3r/go-monzo-oauth-flow","owner":"skyth3r","description":"A basic OAuth client for accessing the Monzo API in Go","archived":false,"fork":false,"pushed_at":"2024-06-02T14:51:38.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-07-15T07:56:10.092Z","etag":null,"topics":["go","golang","monzo","monzo-client","oauth","oauth2","oauth2-client"],"latest_commit_sha":null,"homepage":"","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/skyth3r.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-25T12:59:44.000Z","updated_at":"2024-06-02T14:51:41.000Z","dependencies_parsed_at":"2024-06-05T18:01:44.955Z","dependency_job_id":null,"html_url":"https://github.com/skyth3r/go-monzo-oauth-flow","commit_stats":null,"previous_names":["skyth3r/go-monzo-client"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/skyth3r/go-monzo-oauth-flow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyth3r%2Fgo-monzo-oauth-flow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyth3r%2Fgo-monzo-oauth-flow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyth3r%2Fgo-monzo-oauth-flow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyth3r%2Fgo-monzo-oauth-flow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skyth3r","download_url":"https://codeload.github.com/skyth3r/go-monzo-oauth-flow/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyth3r%2Fgo-monzo-oauth-flow/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30328251,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"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":["go","golang","monzo","monzo-client","oauth","oauth2","oauth2-client"],"created_at":"2025-12-16T00:11:58.875Z","updated_at":"2026-03-10T08:33:17.489Z","avatar_url":"https://github.com/skyth3r.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go Monzo OAuth Flow\n\nA basic third party [Monzo](https://monzo.com/) OAuth client for accessing the [Monzo API](https://docs.monzo.com/) written in Go.\n\n**Note**\n\nThe access token and refresh token are currently not stored after the program executes. To persist this, you will need to store these tokens outside of the program. This has not been implemented for this project, so you will need to go through the authentication flow each time this program is run.\n\n## Prerequisites\n\nBefore running the program, you'll need to register a new API client on the [Monzo Developer Portal](https://developers.monzo.com). \n\nTo register a new API client, log inot the Monzo Devloper Portal (remember to approve the login via your Monzo app) and click \"New OAuth Client\".\n\nThen provide the following details for your OAuth client (Logo URL can remain blank):\n\n```\nName: Go Monzo Client  \nRedirect URL: http://127.0.0.1:21234/callback\nDescription: Go Monzo Client Application\nConfidentiality: True\n```\n\nOnce the client is register you will recieve a Client ID and a Client Secert. Make a note of these!\n\n## How to use\nClone the repository (I like using the GitHub CLI for this)\n```bash\ngh repo clone Skyth3r/go-monzo-client\n```\n\nInstall dependencies\n```bash\ngo mod tidy\n```\n\nSet Client ID and Client Secert in environment variables\n```bash\nexport MONZO_CLIENT_ID=YOUR_CLIENT_ID_HERE\n\nexport MONZO_CLIENT_SECRET=YOUR_CLIENT_SECRET_HERE\n```\n\nRun the program\n```bash\ngo run ./\n```\n\n## Expected results\n\nThis client will start the OAuth flow, and attempt to open a browser with the login URL. On the login page, type in your email address linked to your personal Monzo account and then click the link sent to your email address and go back to the app.\n\nYou will then be prompted to open the Monzo app and grant access to the app by clicking \"Allow access to your data\". This process is related to Strong Customer Authentication. Once access has been granted via the Monzo app, go back to the app and press the [Enter] key to continue.\n\nThe app will attempt to make an api request to the accounts endpoint and print out all the accounts you have with Monzo.\n\n## Extending the client\n\nThis is a basic client as currently it does not store the retrieved access token and refresh token or refresh the access token and only makes one api call after completing Strong Customer Authentication.\n\nIt should be used as a foundation that can be build upon and expanded further.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskyth3r%2Fgo-monzo-oauth-flow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskyth3r%2Fgo-monzo-oauth-flow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskyth3r%2Fgo-monzo-oauth-flow/lists"}