{"id":18885432,"url":"https://github.com/dagit/twitch_oauth","last_synced_at":"2025-08-22T18:09:53.831Z","repository":{"id":66389447,"uuid":"262873306","full_name":"dagit/twitch_oauth","owner":"dagit","description":"Simple Rust example of oauth with twitch","archived":false,"fork":false,"pushed_at":"2020-05-15T20:58:20.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-31T04:41:58.882Z","etag":null,"topics":["oauth2","oauth2-client","rust","twitch","twitch-api","twitch-bot"],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/dagit.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":"2020-05-10T20:51:27.000Z","updated_at":"2020-05-15T20:58:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"ee7abf01-ea0a-4c15-a1ca-8ce642199f75","html_url":"https://github.com/dagit/twitch_oauth","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/dagit%2Ftwitch_oauth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dagit%2Ftwitch_oauth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dagit%2Ftwitch_oauth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dagit%2Ftwitch_oauth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dagit","download_url":"https://codeload.github.com/dagit/twitch_oauth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239858817,"owners_count":19708856,"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":["oauth2","oauth2-client","rust","twitch","twitch-api","twitch-bot"],"created_at":"2024-11-08T07:18:42.838Z","updated_at":"2025-02-20T14:43:42.288Z","avatar_url":"https://github.com/dagit.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# twitch_oauth\nSimple Rust example of oauth with twitch\n\n# Usage\n\n1. Register an app at dev.twitch.tv\n1. Put your client-id into a file named, `client-id`\n1. Put your client-secret into a file named, `client-secret`\n1. `cargo run` this program in the same directory as your client-id and client-secret\n1. The program will print a URL, paste that into your browser. Note: You may need to use a private browsing window to avoid a CSRF error. You will also need to open port 8080 to receive the redirect from twitch.\n1. The program will make one more HTTP POST, if that is successful it will write your new oauth token to a file named `oauth-token`.\n\nThis is just a toy sketch and not a fully fleshed out instance of how you should do this in a real application. For example, this throws away the renew code. Also it has the scope hard coded to `channel:read:redemptions`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdagit%2Ftwitch_oauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdagit%2Ftwitch_oauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdagit%2Ftwitch_oauth/lists"}