{"id":16977630,"url":"https://github.com/potatogopher/jwt-go-example","last_synced_at":"2025-07-24T05:36:08.775Z","repository":{"id":99922213,"uuid":"56625004","full_name":"potatogopher/jwt-go-example","owner":"potatogopher","description":"JWT example using Go from WilliamKennedy's Youtube page.","archived":false,"fork":false,"pushed_at":"2016-04-19T23:35:27.000Z","size":2,"stargazers_count":2,"open_issues_count":0,"forks_count":5,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-14T23:15:30.326Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.youtube.com/watch?v=eVlxuST7dCA","language":"Go","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/potatogopher.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":"2016-04-19T19:18:27.000Z","updated_at":"2017-05-09T23:14:59.000Z","dependencies_parsed_at":"2023-05-11T02:30:14.787Z","dependency_job_id":null,"html_url":"https://github.com/potatogopher/jwt-go-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/potatogopher/jwt-go-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/potatogopher%2Fjwt-go-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/potatogopher%2Fjwt-go-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/potatogopher%2Fjwt-go-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/potatogopher%2Fjwt-go-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/potatogopher","download_url":"https://codeload.github.com/potatogopher/jwt-go-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/potatogopher%2Fjwt-go-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266796884,"owners_count":23985491,"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-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":[],"created_at":"2024-10-14T01:29:24.919Z","updated_at":"2025-07-24T05:36:08.750Z","avatar_url":"https://github.com/potatogopher.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JWT Go Example\n\nI put this repo together so there would be something up for the [video][2] showing a JWT example using Go from [WilliamKennedy's][1] Youtube page.\n\nThe presenter is using the following resources to authenticate with JWTs:\n\n- [dgrijalva/jwt-go][5]\n- [codegangsta/negroni][3]\n- [gorilla/mux][4]\n\n## Set Up\n```\n$ git clone git@github.com:nicholasrucci/jwt-go-example.git\n$ cd jwt-go-example\n```\n\n## Create Private \u0026 Public Keys\n```\n$ openssl genrsa -out demo.rsa\n$ openssl rsa -in demo.rsa -pubout \u003e demo.rsa.pub\n```\n\n## Test\n```js\n$ curl localhost:3000/login\n// returns JWT\n\n$ curl -H \"Authorization: Bearer \u003cJWT\u003e\" localhost:3000/api\n// if valid: returns Success\n// else: error\n```\n\n[1]: https://www.youtube.com/channel/UCD15RoW4ySsIE1YrQmspeeg\n[2]: https://www.youtube.com/watch?v=eVlxuST7dCA\n[3]: https://github.com/codegangsta/negroni\n[4]: https://github.com/gorilla/mux\n[5]: https://github.com/dgrijalva/jwt-go\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpotatogopher%2Fjwt-go-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpotatogopher%2Fjwt-go-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpotatogopher%2Fjwt-go-example/lists"}