{"id":17993878,"url":"https://github.com/timandy/go-auth0","last_synced_at":"2025-04-04T05:13:58.800Z","repository":{"id":39345283,"uuid":"481563696","full_name":"timandy/go-auth0","owner":"timandy","description":"auth0 sdk","archived":false,"fork":false,"pushed_at":"2023-05-19T01:03:13.000Z","size":1243,"stargazers_count":0,"open_issues_count":4,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-09T16:40:47.505Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/timandy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-14T10:34:12.000Z","updated_at":"2022-04-14T10:37:05.000Z","dependencies_parsed_at":"2024-06-21T00:24:38.976Z","dependency_job_id":"a8a7888a-3527-45d6-9131-2e7ded85735e","html_url":"https://github.com/timandy/go-auth0","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timandy%2Fgo-auth0","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timandy%2Fgo-auth0/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timandy%2Fgo-auth0/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timandy%2Fgo-auth0/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timandy","download_url":"https://codeload.github.com/timandy/go-auth0/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247123087,"owners_count":20887261,"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":[],"created_at":"2024-10-29T20:13:20.857Z","updated_at":"2025-04-04T05:13:58.773Z","avatar_url":"https://github.com/timandy.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Auth0 Go SDK\n\n[![GoDoc](https://pkg.go.dev/badge/github.com/timandy/go-auth0.svg)](https://pkg.go.dev/github.com/timandy/go-auth0)\n[![License](https://img.shields.io/github/license/auth0/go-auth0.svg?style=flat-square)](https://github.com/timandy/go-auth0/blob/main/LICENSE)\n[![Release](https://img.shields.io/github/v/release/auth0/go-auth0?include_prereleases\u0026style=flat-square)](https://github.com/timandy/go-auth0/releases)\n[![Tests](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fauth0%2Fgo-auth0%2Fbadge%3Fref%3Dmain\u0026style=flat-square)](https://github.com/timandy/go-auth0/actions?query=branch%3Amain)\n[![Codecov](https://img.shields.io/codecov/c/github/auth0/go-auth0?style=flat-square)](https://codecov.io/gh/auth0/go-auth0)\n\n---\n\nGo client library for the [Auth0](https://auth0.com/) platform.\n\n_Note: This SDK was previously maintained under [go-auth0/auth0](https://github.com/go-auth0/auth0)._\n\n-------------------------------------\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Documentation](#documentation)\n- [Usage](#usage)\n- [Testing](#testing)\n- [What is Auth0?](#what-is-auth0)\n- [Create a free Auth0 Account](#create-a-free-auth0-account)\n- [Issue Reporting](#issue-reporting)\n- [Author](#author)\n- [License](#license)\n\n-------------------------------------\n\n## Installation\n\n```shell\ngo get github.com/timandy/go-auth0\n```\n\n[[table of contents]](#table-of-contents)\n\n## Documentation\n\nReference documentation can be found at [pkg.go.dev](https://pkg.go.dev/gopkg.in/auth0.v5).\nFor more information about [Auth0](http://auth0.com/) please visit the [Auth0 Docs](http://docs.auth0.com/) page and the\n[Auth0 Management API Docs](https://auth0.com/docs/api/management/v2).\n\n[[table of contents]](#table-of-contents)\n\n## Usage\n\n```go\nimport (\n\t\"github.com/timandy/go-auth0\"\n\t\"github.com/timandy/go-auth0/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] [Attack Protection](https://auth0.com/docs/api/management/v2#!/Attack_Protection/get_breached_password_detection)\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[[table of contents]](#table-of-contents)\n\n## Testing\n\nTo run the tests use the `make test` command. This will make use of pre-recorded http interactions found in the\n[recordings](./management/testdata/recordings) folder. To add new recordings run the tests against an Auth0 tenant\nindividually using the following env var `AUTH0_HTTP_RECORDINGS=on`.\n\nTo run the tests against an Auth0 tenant, use the `make test-e2e` command. Start by creating an\n[M2M app](https://auth0.com/docs/applications/set-up-an-application/register-machine-to-machine-applications) in the\ntenant, that has been authorized to call the Management API and has all the required permissions.\n\nThen create a local `.env` file in the `management` folder 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[[table of contents]](#table-of-contents)\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[[table of contents]](#table-of-contents)\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[[table of contents]](#table-of-contents)\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.\nPlease do not report security vulnerabilities on the public GitHub issue tracker.\nThe [Responsible Disclosure Program](https://auth0.com/whitehat) details the procedure for disclosing security issues.\n\n[[table of contents]](#table-of-contents)\n\n## Author\n\n[Auth0](https://auth0.com/)\n\n[[table of contents]](#table-of-contents)\n\n## License\n\nThis project is licensed under the MIT license. See the [LICENSE](LICENSE) file for more info.\n\n[[table of contents]](#table-of-contents)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimandy%2Fgo-auth0","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimandy%2Fgo-auth0","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimandy%2Fgo-auth0/lists"}