Go JWT Authentication with Keycloak

I recently worked on a React project with Go backend using Gin web framework. Keycloak was the authentication mechanism for the front end; I also wanted to secure the back end using JSON Web Tokens, which Keycloak provided on every login. JWT verification setup in the Go application was easy. First, copy the RS256 algorithm public key value from Keycloak. Send the token as an Authorization header. axios .get(BACKEND_URL.concat("sampleendpoint"), { headers: { Authorization: this.
Read more >