Golang drawer
177 subscribers
1 photo
5.03K links
Curated Golang news
Download Telegram
In this post I will show how to easily build an external api with authentication with help from Traefik. The usecase is the following: you want to make an external api only authenticated users can access. In this solution the authentication will be a token which clients will supply as an HTTP header. We will leverage Traefik to make the auth server and underlying api services loosely coupled.

https://rogerwelin.github.io//traefik/api/go/auth/2019/08/19/build-external-api-with-trafik-go.html