# Auth0 to protect API's using access tokens with go lang

**URL:** <https://community.auth0.com/t/auth0-to-protect-apis-using-access-tokens-with-go-lang/124310>\
**Category:** Get Help\
**Tags:** apis, application\
**Created:** [January 6, 2024, 11:58pm UTC](https://community.auth0.com/t/auth0-to-protect-apis-using-access-tokens-with-go-lang/124310 "2024-01-06T23:58:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gigenthomas](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gigenthomas/32/50545_2.png) [@gigenthomas](https://community.auth0.com/u/gigenthomas)\
**Post date:** [January 6, 2024, 11:58pm UTC](https://community.auth0.com/t/auth0-to-protect-apis-using-access-tokens-with-go-lang/124310/1 "2024-01-06T23:58:59Z")

</div>

All - I cannot get this example to work with an Auth0 token

> <https://github.com/auth0/go-jwt-middleware/tree/master/examples/gin-example>
>
> //github.com/auth0/go-jwt-middleware/tree/master/examples/gin-example

- It seems like there is an issue with how the token signature is being parsed. The response that I get when using an Auth0 Test token is a bad request. Any help will be greatly appreciated

---

<div class="post-metadata">

**Author:** ![marcelina.barycka](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marcelina.barycka/32/56162_2.png) [@marcelina.barycka](https://community.auth0.com/u/marcelina.barycka)\
**Post date:** [January 8, 2024, 3:24pm UTC](https://community.auth0.com/t/auth0-to-protect-apis-using-access-tokens-with-go-lang/124310/2 "2024-01-08T15:24:58Z")

</div>

Hi @gigenthomas , welcome to Auth0!

Which version of go have you used to test the repo?

---

<div class="post-metadata">

**Author:** ![gigenthomas](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gigenthomas/32/50545_2.png) [@gigenthomas](https://community.auth0.com/u/gigenthomas)\
**Post date:** [January 8, 2024, 4:37pm UTC](https://community.auth0.com/t/auth0-to-protect-apis-using-access-tokens-with-go-lang/124310/3 "2024-01-08T16:37:17Z")

</div>

The version is go1.20.3

---

<div class="post-metadata">

**Author:** ![marcelina.barycka](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marcelina.barycka/32/56162_2.png) [@marcelina.barycka](https://community.auth0.com/u/marcelina.barycka)\
**Post date:** [January 9, 2024, 8:57am UTC](https://community.auth0.com/t/auth0-to-protect-apis-using-access-tokens-with-go-lang/124310/4 "2024-01-09T08:57:55Z")

</div>

Thank you.

> [@gigenthomas](#):
>
> The version is go1.20.3

I’am looking at go’s versions release list and 1.20.3 is outside of ‘stable’ section - [All releases - The Go Programming Language](https://go.dev/dl/)

Would you be open to test it with one of stable version of go?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [January 23, 2024, 8:58am UTC](https://community.auth0.com/t/auth0-to-protect-apis-using-access-tokens-with-go-lang/124310/5 "2024-01-23T08:58:54Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
