Hello, all… I’m relatively new to GoLang, so my problem is most likely either user error, or user inexperience…
I’m seasoned in Java and C++, so I thought it might be fun to learn Golang by implementing a microservice that I have done in Java in the past. So far, everything seems to be progressing fine: I have separation of concern properly implemented where my service does just what the service is supposed to do and I’ve successfully wrapped that service with logging, instrumenting, circuit breaker, and rate-limiting middleware (largely thanks to go-kit and their examples). However, I seem to be missing something critical when trying to add go-kit’s JWT library in order to do authentication of requests. I’ve followed the very few online examples I’ve found where it basically says to add a middleware layer of: NewParser and NewSigner functions. However, whenever I debug and add breakpoints in either the token issuance endpoint, or in any endpoint that requires authentication via JWT. At either of the breakpoints, I don’t see anything in the context with the key that Go-Kit says should be there. When using something like Insomnia or Postman, I see no “Authrorization” header even being returned from the middleware. Can anyone point me to where I may be able to get some help on figuring out what is or isn’t happening (or more likely, what I’m doing wrong)?
Thanks in advance!