{"id":18105385,"url":"https://github.com/bjesus/oauth-hopper","last_synced_at":"2025-04-13T19:33:29.519Z","repository":{"id":66686600,"uuid":"464955290","full_name":"bjesus/oauth-hopper","owner":"bjesus","description":"Hop over OAuth2 services","archived":false,"fork":false,"pushed_at":"2022-03-01T16:06:48.000Z","size":1,"stargazers_count":22,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-06T08:06:06.573Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/bjesus.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":"2022-03-01T15:44:20.000Z","updated_at":"2025-02-19T14:03:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"f59359a0-1c8b-432d-a28f-296791686d88","html_url":"https://github.com/bjesus/oauth-hopper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjesus%2Foauth-hopper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjesus%2Foauth-hopper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjesus%2Foauth-hopper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjesus%2Foauth-hopper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bjesus","download_url":"https://codeload.github.com/bjesus/oauth-hopper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248768203,"owners_count":21158597,"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","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":"2024-10-31T22:18:29.732Z","updated_at":"2025-04-13T19:33:29.493Z","avatar_url":"https://github.com/bjesus.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OAuth Hopper\n\n### Hop over OAuth2 services\n\nOAuth Hopper exposes OAuth2 services behind normal [Basic Access Authentication](https://en.wikipedia.org/wiki/Basic_access_authentication) so that you can access them through clients that don't support OAuth2. It is meant to run as a Cloudflare Worker.\n\n##### Requirements\n\n- An OAuth2 token\n\n##### Setup\n\n1. Create a new Cloudflare Worker\n2. Under \"Settings\", \"Variables\", Create the following Environment Variables:\n   - `CLIENT_ID` - Your OAuth2 Client ID\n   - `CLIENT_SECRET` Your OAuth2 Client Secret\n   - `HOSTNAME` - The hostname of the resource you're trying to hop over. For example, Google's one is `apidata.googleusercontent.com`\n   - `REFRESH_ENDPOINT` - The refresh endpoint of your OAuth2 provider. For example, Google's one is `https://www.googleapis.com/oauth2/v4/token`\n   - `REFRESH_TOKEN` - Your latest refresh token\n   - `USERNAME` - The username you want to connect with\n   - `PASSWORD` - The password you want to use when connecting\n3. Create a new Workers KV namespace, and under \"KV Namespace Bindings\" map it to a variable called `KEYS`\n4. In the the KV namespace, create a key called `access_token` with the following JSON value: `{\"token\":\"XYZ\",\"expiry\":0}` (replace `XYZ` with your latest access token)\n5. Copy the content of [index.js](index.js) to your worker\n6. Connect to the resource using the URL of your Worker - OAuth Hopper will proxy the resource for you while hopping over OAuth!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbjesus%2Foauth-hopper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbjesus%2Foauth-hopper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbjesus%2Foauth-hopper/lists"}