{"id":22268163,"url":"https://github.com/curityio/go-api-jwt-validation","last_synced_at":"2025-08-23T00:10:25.594Z","repository":{"id":38246507,"uuid":"395820561","full_name":"curityio/go-api-jwt-validation","owner":"curityio","description":"An example OAuth protected RESTful API implemented in Go","archived":false,"fork":false,"pushed_at":"2022-07-14T18:35:34.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-07T03:35:47.869Z","etag":null,"topics":["api","claims","code-example","golang","jwt-validation","oauth2","scopes","zero-trust"],"latest_commit_sha":null,"homepage":"https://curity.io/resources/learn/go-api/","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/curityio.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":"2021-08-13T22:55:57.000Z","updated_at":"2023-04-26T10:17:17.000Z","dependencies_parsed_at":"2022-09-06T21:01:11.736Z","dependency_job_id":null,"html_url":"https://github.com/curityio/go-api-jwt-validation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/curityio/go-api-jwt-validation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Fgo-api-jwt-validation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Fgo-api-jwt-validation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Fgo-api-jwt-validation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Fgo-api-jwt-validation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/curityio","download_url":"https://codeload.github.com/curityio/go-api-jwt-validation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Fgo-api-jwt-validation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271722203,"owners_count":24809660,"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-08-22T02:00:08.480Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["api","claims","code-example","golang","jwt-validation","oauth2","scopes","zero-trust"],"created_at":"2024-12-03T11:11:46.231Z","updated_at":"2025-08-23T00:10:25.533Z","avatar_url":"https://github.com/curityio.png","language":"Go","readme":"Validate JWTs in Go\n=============================================\n\n[![Quality](https://img.shields.io/badge/quality-experiment-red)](https://curity.io/resources/code-examples/status/)\n[![Availability](https://img.shields.io/badge/availability-source-blue)](https://curity.io/resources/code-examples/status/)\n\nAn example API in Go integrated with [JSON Web Token for Go](https://github.com/gbrlsnchs/jwt) to perform JWT verification and validation for API Authorization.\n\n## Run the example\n\nSet appropriate config in `api/.env`\n\nBuild and run the Docker image.\n\n```shell\ndocker build -t go-api . \ndocker run --name go-api -p 8080:8080 go-api\n```\n\nNOTE: The example uses the `RS256` algorithm by default. The code can be modified to support others and there's a method that implements the EdDSA algorithm that can be invoked.\n\n## Documentation\nThis repository is documented and described in the [Securing a Go API with JWTs](https://curity.io/resources/learn/go-api/) article.\n\n## Contributing\n\nPull requests are welcome. To do so, just fork this repo, and submit a pull request.\n\n## License\n\nThe files and resources maintained in this repository are licensed under the Apache 2 license.\n\n## More Information\n\nPlease visit curity.io for more information about the Curity Identity Server.\n\nCopyright (C) 2021 Curity AB.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcurityio%2Fgo-api-jwt-validation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcurityio%2Fgo-api-jwt-validation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcurityio%2Fgo-api-jwt-validation/lists"}