{"id":18451985,"url":"https://github.com/twitchdev/authentication-go-sample","last_synced_at":"2026-01-17T03:43:59.529Z","repository":{"id":50223420,"uuid":"246932919","full_name":"twitchdev/authentication-go-sample","owner":"twitchdev","description":"Authentication Samples in Go","archived":false,"fork":false,"pushed_at":"2022-02-11T17:41:56.000Z","size":10,"stargazers_count":62,"open_issues_count":0,"forks_count":7,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-04-08T02:37:35.823Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/twitchdev.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":"2020-03-12T21:20:01.000Z","updated_at":"2025-03-22T12:51:02.000Z","dependencies_parsed_at":"2022-08-27T15:09:32.283Z","dependency_job_id":null,"html_url":"https://github.com/twitchdev/authentication-go-sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/twitchdev/authentication-go-sample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twitchdev%2Fauthentication-go-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twitchdev%2Fauthentication-go-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twitchdev%2Fauthentication-go-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twitchdev%2Fauthentication-go-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/twitchdev","download_url":"https://codeload.github.com/twitchdev/authentication-go-sample/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twitchdev%2Fauthentication-go-sample/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28493639,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T02:39:23.645Z","status":"ssl_error","status_checked_at":"2026-01-17T02:34:19.649Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2024-11-06T07:29:51.100Z","updated_at":"2026-01-17T03:43:59.510Z","avatar_url":"https://github.com/twitchdev.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# Twitch Authentication Go Samples\nHere you will find sample Go apps illustrating how to authenticate Twitch API calls using the OAuth2 and OIDC authorization code flows, as well as the OAuth2 client credentials flow.\n\n## Installation\n```sh\n$ go get -u github.com/twitchdev/authentication-go-sample/oauth-authorization-code\n```\n\n## Usage\nBefore running each sample, you will need to set two configuration variables at the top of `main.go`:\n\n1. `CLIENT_ID` - This is the Client ID of your registered application. You can register an application in your [dashboard](https://glass.twitch.tv/console/apps).\n2. `CLIENT_SECRET` - This is the secret generated for you when you register your application; do not share this. In a production environment, it is STRONGLY recommended that you do not store application secrets in your source code.\n\nOptionally, you may modify the requested scopes and/or claims. \n\nAfter setting these variables, you may run the server from within each directory:\n\n```sh\n$ go run main.go\n```\n\nThe access token will be shown in the console.\n\n\n## License\n\nCopyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\nLicensed under the Apache License, Version 2.0 (the \"License\"). You may not use this file except in compliance with the License. A copy of the License is located at\n\n    http://aws.amazon.com/apache2.0/\n\nor in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwitchdev%2Fauthentication-go-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwitchdev%2Fauthentication-go-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwitchdev%2Fauthentication-go-sample/lists"}