{"repo":"FusionAuth/fusionauth-example-go-jwt-microservices","free":true,"listed":false,"github":"https://github.com/FusionAuth/fusionauth-example-go-jwt-microservices","clone":"git clone https://github.com/FusionAuth/fusionauth-example-go-jwt-microservices.git","description":"Example of a golang API gateway with authorization using JWT","language":"Go","stars":11,"topics":["fusionauth","golang","jwt","login-system","microservices","oauth","oauth2","oidc"],"license":"Apache-2.0","category":"auth-billing-email","readme_excerpt":"FusionAuth golang microservices example This code is an example of protecting golang microservices with JSON web tokens. Read the blog post here: https://fusionauth.io/blog/2021/02/18/securing-golang-microservice/ To run This assumes you already have go 1.15.8 installed and have cloned this repo. In one terminal: cd jwt client go get go run main.go In another terminal: cd api gateway go get go run main.go In yet another terminal: curl http://localhost:8080 # to get the JWT curl http://localhost:9001 --header 'Token: [jwt value]' # to get the secret microservice response Original code by @krissnawat","default_branch":null,"files":null,"tree":[],"storefront":"/r/FusionAuth","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/FusionAuth/fusionauth-example-go-jwt-microservices/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}