Skip to content

Quickstart guide no longer valid #60

Open
@josh-bell-colab

Description

@josh-bell-colab

Checklist

  • I have looked into the Readme and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Description

Following this tutorial:
https://auth0.com/docs/quickstart/backend/golang#validate-access-tokens

validating custom claims is no longer working.
I can validate the jwt but cannot get custom claims.

Reproduction

Repoduce steps:

  1. Setup an auth0 api describe here: https://auth0.com/docs/quickstart/backend/golang#create-an-api
  2. git clone [email protected]:auth0-samples/auth0-golang-api-samples.git
  3. create a .env file in the root of the cloned project with the api from above
  4. This token was grabbed from: https://manage.auth0.com/dashboard/us/dev-aelumhqjxjwyvowv/apis/65340d421cfbcc839d0af2ed/test
curl --request GET \                                                                                                                                                                                      FeatureFlagging
 --url http://localhost:3010/api/private-scoped \
 --header 'authorization: Bearer SOME_TOKEN
  1. response {"message":"Insufficient scope."}

Additional context

Theres even a section that lets you examine the jwt from the dashboard but says scopes

{
  "iss": "https://dev-aelumhqjxjwyvowv.us.auth0.com/",
  "sub": "ZXfvxk0RCZFjwJyRkCTGp5JJi1nFaf69@clients",
  "aud": "http://backend/",
  "iat": 1697985763,
  "exp": 1698072163,
  "azp": "ZXfvxk0RCZFjwJyRkCTGp5JJi1nFaf69",
  "gty": "client-credentials",
  "permissions": []
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions