# \#go

**URL:** https://community.auth0.com/tag/go/528.md

[Latest](https://community.auth0.com/latest.md) · [Categories](https://community.auth0.com/categories.md) · [Tags](https://community.auth0.com/tags.md)

---

## [Golang JWT middleware example: adding validation results to context](https://community.auth0.com/t/golang-jwt-middleware-example-adding-validation-results-to-context/116540)

<div class="topic-metadata">

**Author:** [@mbonnet](https://community.auth0.com/u/mbonnet)\
**Replies:** 2\
**Last updated:** [September 19, 2023, 9:32pm UTC](https://community.auth0.com/t/golang-jwt-middleware-example-adding-validation-results-to-context/116540 "2023-09-19T21:32:12Z")

</div>

I am looking at the example for JWT middleware in Go. In my API backend as-is, I use the Echo framework (specifically, based off this example). This is no big issue itself, as Echo has a very useful echo.WrapMiddleware(…

---

## [Golang JWT Gin middleware returns invalid JWT when using RS256](https://community.auth0.com/t/golang-jwt-gin-middleware-returns-invalid-jwt-when-using-rs256/89514)

<div class="topic-metadata">

**Author:** [@tymscar](https://community.auth0.com/u/tymscar)\
**Replies:** 3\
**Last updated:** [August 30, 2022, 11:45pm UTC](https://community.auth0.com/t/golang-jwt-gin-middleware-returns-invalid-jwt-when-using-rs256/89514 "2022-08-30T23:45:38Z")

</div>

Hi there! :wave: I am very new to Auth0 but I do have experience with JWT tokens and auth in general. I am using the Go SDK and I am having trouble getting JWT token verification to work with RS256. I followed this tu…

---

## [Status of Golang Management API SDK Library](https://community.auth0.com/t/status-of-golang-management-api-sdk-library/88023)

<div class="topic-metadata">

**Author:** [@marcus.wittig](https://community.auth0.com/u/marcus.wittig)\
**Replies:** 3\
**Last updated:** [August 4, 2022, 4:06pm UTC](https://community.auth0.com/t/status-of-golang-management-api-sdk-library/88023 "2022-08-04T16:06:56Z")

</div>

I am wondering about the status of the Management API SDK Library for Golang. As it is not listed as part of Backend Service and API SDK Libraries I assume it is not (yet) officially supported or is it a documentation fl…

---

## [Backend GO tutorial for API not working](https://community.auth0.com/t/backend-go-tutorial-for-api-not-working/83856)

<div class="topic-metadata">

**Author:** [@christheoreo](https://community.auth0.com/u/christheoreo)\
**Replies:** 4\
**Last updated:** [May 26, 2022, 8:12pm UTC](https://community.auth0.com/t/backend-go-tutorial-for-api-not-working/83856 "2022-05-26T20:12:21Z")

</div>

Using the following tutorial (and the correct details) I can not get the JWT to validate successfully. I get the following error: Encountered error while validating JWT: jwt invalid: could not parse the token: square/go…

---

## [Grpc integration with auth0 token validation in golang](https://community.auth0.com/t/grpc-integration-with-auth0-token-validation-in-golang/83925)

<div class="topic-metadata">

**Author:** [@5olitude](https://community.auth0.com/u/5olitude)\
**Replies:** 1\
**Last updated:** [May 24, 2022, 10:41am UTC](https://community.auth0.com/t/grpc-integration-with-auth0-token-validation-in-golang/83925 "2022-05-24T10:41:04Z")

</div>

I just went through the old package of token validation (github.com/auth0-community/go-auth0 v1.0.1-0.20191119) it have a method known as validator.ValidateToken(parsedToken) but for the new version of the pkg its depre…

---

## [Golang SDK Quick Start Example: dependencies issue](https://community.auth0.com/t/golang-sdk-quick-start-example-dependencies-issue/71932)

<div class="topic-metadata">

**Author:** [@dskuratovich](https://community.auth0.com/u/dskuratovich)\
**Replies:** 5\
**Last updated:** [February 14, 2022, 8:05am UTC](https://community.auth0.com/t/golang-sdk-quick-start-example-dependencies-issue/71932 "2022-02-14T08:05:28Z")

</div>

Hey everyone! The second day I try to get this article working The issue I face here is that once I try the code given in the example I see the following message: go: finding module for package github.com/auth0/go-jw…

---

## [Getting User Information Using Go API Authorization](https://community.auth0.com/t/getting-user-information-using-go-api-authorization/77971)

<div class="topic-metadata">

**Author:** [@howlettga](https://community.auth0.com/u/howlettga)\
**Replies:** 2\
**Last updated:** [February 11, 2022, 9:43am UTC](https://community.auth0.com/t/getting-user-information-using-go-api-authorization/77971 "2022-02-11T09:43:40Z")

</div>

I am following the Go API: Authorization tutorial to secure my GoLang API: Auth0 Go API SDK Quickstarts: Authorization This all works fine and I can validate a token. But ultimately I need some user information from the…

---

## [Invalid audience with Go API backend (Frontend: React SPA)](https://community.auth0.com/t/invalid-audience-with-go-api-backend-frontend-react-spa/60267)

<div class="topic-metadata">

**Author:** [@importhuman](https://community.auth0.com/u/importhuman)\
**Replies:** 1\
**Last updated:** [March 31, 2021, 2:43pm UTC](https://community.auth0.com/t/invalid-audience-with-go-api-backend-frontend-react-spa/60267 "2021-03-31T14:43:49Z")

</div>

Getting an invalid audience when I try to connect to the API with the frontend. Have tried sending request with Postman, only works with the token that we get in the “test” section of our API dashboard. I’m guessing this…

---

## [Question about sample Go JWT code](https://community.auth0.com/t/question-about-sample-go-jwt-code/20903)

<div class="topic-metadata">

**Author:** [@omortis](https://community.auth0.com/u/omortis)\
**Replies:** 6\
**Last updated:** [February 14, 2019, 8:18pm UTC](https://community.auth0.com/t/question-about-sample-go-jwt-code/20903 "2019-02-14T20:18:56Z")

</div>

In the sample code here under the Client Credentials - RS256 section, should: pem, err := ioutil.ReadFile("path/to/your/cert.pem") actually be: sharedKey, err := ioutil.ReadFile("path/to/your/cert.pem") It can’t be p…

---

## [Auth0 github sample code not working](https://community.auth0.com/t/auth0-github-sample-code-not-working/20899)

<div class="topic-metadata">

**Author:** [@omortis](https://community.auth0.com/u/omortis)\
**Replies:** 4\
**Last updated:** [February 11, 2019, 2:59pm UTC](https://community.auth0.com/t/auth0-github-sample-code-not-working/20899 "2019-02-11T14:59:17Z")

</div>

Hello, Should this sample code from auth0 still work? It is 2+ years old: auth0-blog golang sample Downloading the code, setting up the API and all I get in the terminal is: ::1 - - \[03/Feb/2019:15:58:19 -0500\] "GET …

---

## [Which algorithm is best for security?](https://community.auth0.com/t/which-algorithm-is-best-for-security/8422)

<div class="topic-metadata">

**Author:** [@swatinaag](https://community.auth0.com/u/swatinaag)\
**Replies:** 5\
**Last updated:** [October 11, 2017, 9:24am UTC](https://community.auth0.com/t/which-algorithm-is-best-for-security/8422 "2017-10-11T09:24:34Z")

</div>

Hello, I have a backend application in go and I am using jwt authentication method for my api’s. I have two questions: Which one the best algorithm for secure an api HS256 or RS256 I have created an api using the RS…
