{"id":15099106,"url":"https://github.com/go-auth0/auth0","last_synced_at":"2025-10-08T05:30:19.880Z","repository":{"id":43837367,"uuid":"133571041","full_name":"go-auth0/auth0","owner":"go-auth0","description":"ARCHIVED Go SDK for the Auth0 platform. This project is now being maintained at: https://github.com/auth0/go-auth0","archived":true,"fork":false,"pushed_at":"2022-02-16T13:21:43.000Z","size":939,"stargazers_count":146,"open_issues_count":2,"forks_count":128,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-01-16T02:36:31.736Z","etag":null,"topics":["auth0","auth0-management-api","go","sdk"],"latest_commit_sha":null,"homepage":"https://github.com/auth0/go-auth0","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/go-auth0.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["alexkappa"],"custom":["paypal.me/alexkappa"]}},"created_at":"2018-05-15T20:42:02.000Z","updated_at":"2024-10-03T09:40:28.000Z","dependencies_parsed_at":"2022-07-16T19:16:14.185Z","dependency_job_id":null,"html_url":"https://github.com/go-auth0/auth0","commit_stats":null,"previous_names":["yieldr/go-auth0"],"tags_count":92,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-auth0%2Fauth0","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-auth0%2Fauth0/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-auth0%2Fauth0/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-auth0%2Fauth0/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/go-auth0","download_url":"https://codeload.github.com/go-auth0/auth0/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235622762,"owners_count":19019731,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["auth0","auth0-management-api","go","sdk"],"created_at":"2024-09-25T17:05:40.558Z","updated_at":"2025-10-08T05:30:14.507Z","avatar_url":"https://github.com/go-auth0.png","language":"Go","readme":"# THIS REPOSITORY HAS MOVED\n\nThis repository has moved into the [Auth0](https://github.com/auth0) organization where it will be maintained at\n[github.com/auth0/go-auth0](https://github.com/auth0/go-auth0).\n\n\n# Auth0 Go SDK\n\n[![Go Reference](https://pkg.go.dev/badge/gopkg.in/auth0.v5.svg)](https://pkg.go.dev/gopkg.in/auth0.v5)\n[![Build](https://github.com/go-auth0/auth0/workflows/Build/badge.svg)](https://github.com/go-auth0/auth0/actions?query=branch%3Amaster)\n[![Maintainability](https://api.codeclimate.com/v1/badges/bf038abb77ffb7c94cde/maintainability)](https://codeclimate.com/github/go-auth0/auth0/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/bf038abb77ffb7c94cde/test_coverage)](https://codeclimate.com/github/go-auth0/auth0/test_coverage)\n\n## Documentation\n\nReference documentation can be found at [pkg.go.dev](https://pkg.go.dev/gopkg.in/auth0.v5). For more information about [Auth0](http://auth0.com/) please visit the [Auth0 Docs](http://docs.auth0.com/) page.\n\n## Management API\n\nThe Auth0 Management API is meant to be used by back-end servers or trusted parties performing administrative tasks. Generally speaking, anything that can be done through the Auth0 dashboard (and more) can also be done through this API.\n\n### Usage\n\n```go\nimport (\n\t\"gopkg.in/auth0.v5\"\n\t\"gopkg.in/auth0.v5/management\"\n)\n```\n\nInitialize a new client using a domain, client ID and secret.\n\n```go\nm, err := management.New(domain, management.WithClientCredentials(id, secret))\nif err != nil {\n\t// handle err\n}\n```\n\nWith the management client we can now interact with the Auth0 Management API.\n\n```go\nc := \u0026management.Client{\n\tName:        auth0.String(\"Client Name\"),\n\tDescription: auth0.String(\"Long description of client\"),\n}\n\nerr = m.Client.Create(c)\nif err != nil {\n\t// handle err\n}\n\nfmt.Printf(\"Created client %s\\n\", c.ClientID)\n```\n\nThe following Auth0 resources are supported:\n\n- [x] [Actions](https://auth0.com/docs/api/management/v2/#!/Actions/get_actions)\n- [x] [Branding](https://auth0.com/docs/api/management/v2/#!/Branding/get_branding)\n- [x] [Clients (Applications)](https://auth0.com/docs/api/management/v2#!/Clients/get_clients)\n- [x] [Client Grants](https://auth0.com/docs/api/management/v2#!/Client_Grants/get_client_grants)\n- [x] [Connections](https://auth0.com/docs/api/management/v2#!/Connections/get_connections)\n- [x] [Custom Domains](https://auth0.com/docs/api/management/v2#!/Custom_Domains/get_custom_domains)\n- [ ] [Device Credentials](https://auth0.com/docs/api/management/v2#!/Device_Credentials/get_device_credentials)\n- [x] [Grants](https://auth0.com/docs/api/management/v2#!/Grants/get_grants)\n- [x] [Hooks](https://auth0.com/docs/api/management/v2#!/Hooks/get_hooks)\n- [x] [Hook Secrets](https://auth0.com/docs/api/management/v2/#!/Hooks/get_secrets)\n- [x] [Log Streams](https://auth0.com/docs/api/management/v2#!/Log_Streams/get_log_streams)\n- [x] [Logs](https://auth0.com/docs/api/management/v2#!/Logs/get_logs)\n- [x] [Organizations](https://auth0.com/docs/api/management/v2#!/Organizations/get_organizations)\n- [x] [Prompts](https://auth0.com/docs/api/management/v2#!/Prompts/get_prompts)\n- [x] [Resource Servers (APIs)](https://auth0.com/docs/api/management/v2#!/Resource_Servers/get_resource_servers)\n- [x] [Roles](https://auth0.com/docs/api/management/v2#!/Roles)\n- [x] [Rules](https://auth0.com/docs/api/management/v2#!/Rules/get_rules)\n- [x] [Rules Configs](https://auth0.com/docs/api/management/v2#!/Rules_Configs/get_rules_configs)\n- [x] [User Blocks](https://auth0.com/docs/api/management/v2#!/User_Blocks/get_user_blocks)\n- [x] [Users](https://auth0.com/docs/api/management/v2#!/Users/get_users)\n- [x] [Users By Email](https://auth0.com/docs/api/management/v2#!/Users_By_Email/get_users_by_email)\n- [x] [Blacklists](https://auth0.com/docs/api/management/v2#!/Blacklists/get_tokens)\n- [x] [Email Templates](https://auth0.com/docs/api/management/v2#!/Email_Templates/get_email_templates_by_templateName)\n- [x] [Emails](https://auth0.com/docs/api/management/v2#!/Emails/get_provider)\n- [x] [Guardian](https://auth0.com/docs/api/management/v2#!/Guardian/get_factors)\n- [x] [Jobs](https://auth0.com/docs/api/management/v2#!/Jobs/get_jobs_by_id)\n- [x] [Stats](https://auth0.com/docs/api/management/v2#!/Stats/get_active_users)\n- [x] [Tenants](https://auth0.com/docs/api/management/v2#!/Tenants/get_settings)\n- [X] [Anomaly](https://auth0.com/docs/api/management/v2#!/Anomaly/get_ips_by_id)\n- [x] [Tickets](https://auth0.com/docs/api/management/v2#!/Tickets/post_email_verification)\n- [x] [Signing Keys](https://auth0.com/docs/api/management/v2#!/Keys/get_signing_keys)\n\n### Tests\n\nThe tests must run against an Auth0 tenant. They also need an [M2M app](https://auth0.com/docs/applications/set-up-an-application/register-machine-to-machine-applications) in that tenant that has been authorized to call the Management API. You can easily set one of these up by creating an [API Explorer Application](https://auth0.com/docs/tokens/management-api-access-tokens/create-and-authorize-a-machine-to-machine-application) in your tenant.\n\nThen simply create a local `.env` file with the following settings:\n\n* `AUTH0_DOMAIN`: The **Domain** of the M2M app\n* `AUTH0_CLIENT_ID`: The **Client ID** of the M2M app\n* `AUTH0_CLIENT_SECRET`: The **Client Secret** of the M2M app\n* `AUTH0_DEBUG`: Set to `true` to call the Management API in debug mode, which dumps the HTTP requests and responses to the output\n\n## What is Auth0?\n\nAuth0 helps you to:\n\n* Add authentication with [multiple authentication sources](https://docs.auth0.com/identityproviders), either social like **Google, Facebook, Microsoft Account, LinkedIn, GitHub, Twitter, Box, Salesforce, amont others**, or enterprise identity systems like **Windows Azure AD, Google Apps, Active Directory, ADFS or any SAML Identity Provider**.\n* Add authentication through more traditional **[username/password databases](https://docs.auth0.com/mysql-connection-tutorial)**.\n* Add support for **[linking different user accounts](https://docs.auth0.com/link-accounts)** with the same user.\n* Support for generating signed [Json Web Tokens](https://docs.auth0.com/jwt) to call your APIs and **flow the user identity** securely.\n* Analytics of how, when and where users are logging in.\n* Pull data from other sources and add it to the user profile, through [JavaScript rules](https://docs.auth0.com/rules).\n\n## Create a free Auth0 Account\n\n1.  Go to [Auth0](https://auth0.com) and click \"Try Auth0 for Free\".\n2.  Use Google, GitHub or Microsoft Account to login.\n\n## Issue Reporting\n\nIf you have found a bug or if you have a feature request, please report them at this repository issues section. Please do not report security vulnerabilities on the public GitHub issue tracker. The [Responsible Disclosure Program](https://auth0.com/whitehat) details the procedure for disclosing security issues.\n\n## Author\n\n[Alex Kalyvitis](https://github.com/alexkappa)\n\n## License\n\nThis project is licensed under the MIT license. See the [LICENSE](LICENSE) file for more info.\n","funding_links":["https://github.com/sponsors/alexkappa","paypal.me/alexkappa"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-auth0%2Fauth0","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgo-auth0%2Fauth0","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-auth0%2Fauth0/lists"}