/fusionauth-example-go-jwt-microservices

Example of a golang API gateway with authorization using JWT

Primary LanguageGoApache License 2.0Apache-2.0

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:

Original code by @krissnawat