Client Library for Go


Is there an API in Go suitable for creating command line applications that need to login to an auth0 backed API?

~ ry

Are you in need of using the Client Credentials Grant from Go?

This is how the purpose of the flow is defined:

The Client Credentials Grant (defined in RFC 6749, section 4.4) allows an application to request an Access Token using its Client Id and Client Secret. It is used for non interactive applications (a CLI, a daemon, or a Service running on your backend) where the token is issued to the application itself, instead of an end user.

If that’s the case, then you would need to make use of

We’re already using that library in our Go quickstart quickstart. You would need to modify the code to make sure it’s using the Client Credentials Grant instead of the Authorization Code Grant.

Hope this helps.