Skip to content

FusionAuth/fusionauth-example-go-jwt-microservices

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
February 9, 2021 11:02
February 9, 2021 11:02
February 16, 2021 14:56
February 18, 2021 10:06

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

About

Example of a golang API gateway with authorization using JWT

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages