{"id":18298674,"url":"https://github.com/fusionauth/fusionauth-example-go-jwt-microservices","last_synced_at":"2025-04-05T13:33:57.847Z","repository":{"id":71200266,"uuid":"339540866","full_name":"FusionAuth/fusionauth-example-go-jwt-microservices","owner":"FusionAuth","description":"Example of a golang API gateway with authorization using JWT","archived":false,"fork":false,"pushed_at":"2024-07-28T05:55:02.000Z","size":7,"stargazers_count":10,"open_issues_count":0,"forks_count":7,"subscribers_count":12,"default_branch":"main","last_synced_at":"2024-07-28T06:45:40.941Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/FusionAuth.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-16T21:51:45.000Z","updated_at":"2024-07-28T05:55:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"ca825c8f-b93b-4421-bafb-ce1ca7f5c9cf","html_url":"https://github.com/FusionAuth/fusionauth-example-go-jwt-microservices","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/FusionAuth%2Ffusionauth-example-go-jwt-microservices","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FusionAuth%2Ffusionauth-example-go-jwt-microservices/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FusionAuth%2Ffusionauth-example-go-jwt-microservices/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FusionAuth%2Ffusionauth-example-go-jwt-microservices/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FusionAuth","download_url":"https://codeload.github.com/FusionAuth/fusionauth-example-go-jwt-microservices/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223192688,"owners_count":17103564,"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-11-05T15:06:41.063Z","updated_at":"2024-11-05T15:06:41.624Z","avatar_url":"https://github.com/FusionAuth.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FusionAuth golang microservices example\n\nThis code is an example of protecting golang microservices with JSON web tokens.\n\nRead the blog post here: https://fusionauth.io/blog/2021/02/18/securing-golang-microservice/\n\n## To run\n\nThis assumes you already have go 1.15.8 installed and have cloned this repo.\n\nIn one terminal:\n* cd jwt_client\n* go get\n* go run main.go\n\nIn another terminal:\n* cd api_gateway\n* go get\n* go run main.go\n\nIn yet another terminal:\n\n* curl http://localhost:8080 # to get the JWT\n* curl http://localhost:9001 --header 'Token: [jwt value]' # to get the secret microservice response\n\nOriginal code by @krissnawat\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffusionauth%2Ffusionauth-example-go-jwt-microservices","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffusionauth%2Ffusionauth-example-go-jwt-microservices","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffusionauth%2Ffusionauth-example-go-jwt-microservices/lists"}