Skip to content

Commit

Permalink
fix dep
Browse files Browse the repository at this point in the history
  • Loading branch information
congzhegao committed Nov 5, 2023
1 parent 08cc1f1 commit bbeef0b
Show file tree
Hide file tree
Showing 54 changed files with 258 additions and 255 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ contact_links:
url: https://community.auth0.com/c/sdks/5
about: Ask general support or usage questions in the Auth0 Community forums
- name: 📖 SDK API Documentation
url: https://pkg.go.dev/github.com/auth0/go-auth0
url: https://pkg.go.dev/github.com/ConsultingMD/go-auth0
about: Read the API documentation for this SDK
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ body:
attributes:
label: Checklist
options:
- label: I agree to the terms within the [Auth0 Code of Conduct](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md).
- label: I agree to the terms within the [Auth0 Code of Conduct](https://github.com/ConsultingMD/open-source-template/blob/master/CODE-OF-CONDUCT.md).
required: true

- type: textarea
Expand Down
10 changes: 5 additions & 5 deletions .github/ISSUE_TEMPLATE/report_a_bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ body:
attributes:
label: Checklist
options:
- label: I have looked into the [README](https://github.com/auth0/go-auth0#readme) and have not found a suitable solution or answer.
- label: I have looked into the [README](https://github.com/ConsultingMD/go-auth0#readme) and have not found a suitable solution or answer.
required: true
- label: I have looked into the [documentation](https://pkg.go.dev/github.com/auth0/go-auth0) and have not found a suitable solution or answer.
- label: I have looked into the [documentation](https://pkg.go.dev/github.com/ConsultingMD/go-auth0) and have not found a suitable solution or answer.
required: true
- label: I have searched the [issues](https://github.com/auth0/go-auth0/issues) and have not found a suitable solution or answer.
- label: I have searched the [issues](https://github.com/ConsultingMD/go-auth0/issues) and have not found a suitable solution or answer.
required: true
- label: I have upgraded to the [latest version](https://github.com/auth0/go-auth0/releases/latest) of this SDK and the issue still persists.
- label: I have upgraded to the [latest version](https://github.com/ConsultingMD/go-auth0/releases/latest) of this SDK and the issue still persists.
required: true
- label: I have searched the [Auth0 Community](https://community.auth0.com) forums and have not found a suitable solution or answer.
required: true
- label: I agree to the terms within the [Auth0 Code of Conduct](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md).
- label: I agree to the terms within the [Auth0 Code of Conduct](https://github.com/ConsultingMD/open-source-template/blob/master/CODE-OF-CONDUCT.md).
required: true

- type: textarea
Expand Down
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--
❗ For general support or usage questions, use the Auth0 Community forums or raise a support ticket.
By submitting a pull request to this repository, you agree to the terms within the Auth0 Code of Conduct: https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md.
By submitting a pull request to this repository, you agree to the terms within the Auth0 Code of Conduct: https://github.com/ConsultingMD/open-source-template/blob/master/CODE-OF-CONDUCT.md.
-->

### 🔧 Changes
Expand Down
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ linters-settings:
scope: declarations
capital: true
goimports:
local-prefixes: "github.com/auth0/go-auth0"
local-prefixes: "github.com/ConsultingMD/go-auth0"

issues:
exclude-use-default: false
Expand Down
344 changes: 172 additions & 172 deletions CHANGELOG.md

Large diffs are not rendered by default.

32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

<div align="center">

[![GoDoc](https://pkg.go.dev/badge/github.com/auth0/go-auth0.svg)](https://pkg.go.dev/github.com/auth0/go-auth0)
[![Go Report Card](https://goreportcard.com/badge/github.com/auth0/go-auth0?style=flat-square)](https://goreportcard.com/report/github.com/auth0/go-auth0)
[![Release](https://img.shields.io/github/v/release/auth0/go-auth0?include_prereleases&style=flat-square)](https://github.com/auth0/go-auth0/releases)
[![License](https://img.shields.io/github/license/auth0/go-auth0.svg?style=flat-square)](https://github.com/auth0/go-auth0/blob/main/LICENSE)
[![Build Status](https://img.shields.io/github/actions/workflow/status/auth0/go-auth0/main.yml?branch=main&style=flat-square)](https://github.com/auth0/go-auth0/actions?query=branch%3Amain)
[![Codecov](https://img.shields.io/codecov/c/github/auth0/go-auth0?style=flat-square)](https://codecov.io/gh/auth0/go-auth0)
[![GoDoc](https://pkg.go.dev/badge/github.com/ConsultingMD/go-auth0.svg)](https://pkg.go.dev/github.com/ConsultingMD/go-auth0)
[![Go Report Card](https://goreportcard.com/badge/github.com/ConsultingMD/go-auth0?style=flat-square)](https://goreportcard.com/report/github.com/ConsultingMD/go-auth0)
[![Release](https://img.shields.io/github/v/release/ConsultingMD/go-auth0?include_prereleases&style=flat-square)](https://github.com/ConsultingMD/go-auth0/releases)
[![License](https://img.shields.io/github/license/ConsultingMD/go-auth0.svg?style=flat-square)](https://github.com/ConsultingMD/go-auth0/blob/main/LICENSE)
[![Build Status](https://img.shields.io/github/actions/workflow/status/ConsultingMD/go-auth0/main.yml?branch=main&style=flat-square)](https://github.com/ConsultingMD/go-auth0/actions?query=branch%3Amain)
[![Codecov](https://img.shields.io/codecov/c/github/ConsultingMD/go-auth0?style=flat-square)](https://codecov.io/gh/ConsultingMD/go-auth0)
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fauth0%2Fgo-auth0.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fauth0%2Fgo-auth0?ref=badge_shield)

📚 [Documentation](#documentation) • 🚀 [Getting Started](#getting-started) • 💬 [Feedback](#feedback)
Expand All @@ -20,7 +20,7 @@

## Documentation

- [Godoc](https://pkg.go.dev/github.com/auth0/go-auth0) - explore the Go SDK documentation.
- [Godoc](https://pkg.go.dev/github.com/ConsultingMD/go-auth0) - explore the Go SDK documentation.
- [Docs site](https://www.auth0.com/docs) — explore our docs site and learn more about Auth0.
- [Examples](./EXAMPLES.md) - Further examples around usage of the SDK.

Expand All @@ -35,7 +35,7 @@ This library follows the [same support policy as Go](https://go.dev/doc/devel/re
### Installation

```shell
go get github.com/auth0/go-auth0
go get github.com/ConsultingMD/go-auth0
```

### Usage
Expand All @@ -53,9 +53,9 @@ import (
"context"
"log"

"github.com/auth0/go-auth0/authentication"
"github.com/auth0/go-auth0/authentication/database"
"github.com/auth0/go-auth0/authentication/oauth"
"github.com/ConsultingMD/go-auth0/authentication"
"github.com/ConsultingMD/go-auth0/authentication/database"
"github.com/ConsultingMD/go-auth0/authentication/oauth"
)

func main() {
Expand Down Expand Up @@ -113,8 +113,8 @@ import (
"context"
"log"

"github.com/auth0/go-auth0"
"github.com/auth0/go-auth0/management"
"github.com/ConsultingMD/go-auth0"
"github.com/ConsultingMD/go-auth0/management"
)

func main() {
Expand Down Expand Up @@ -180,12 +180,12 @@ the background by retrying the API request when the limit is lifted.
We appreciate feedback and contribution to this repo! Before you get started, please see the following:

- [Contribution Guide](./CONTRIBUTING.md)
- [Auth0's General Contribution Guidelines](https://github.com/auth0/open-source-template/blob/master/GENERAL-CONTRIBUTING.md)
- [Auth0's Code of Conduct Guidelines](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md)
- [Auth0's General Contribution Guidelines](https://github.com/ConsultingMD/open-source-template/blob/master/GENERAL-CONTRIBUTING.md)
- [Auth0's Code of Conduct Guidelines](https://github.com/ConsultingMD/open-source-template/blob/master/CODE-OF-CONDUCT.md)

### Raise an issue

To provide feedback or report a bug, [please raise an issue on our issue tracker](https://github.com/auth0/go-auth0/issues).
To provide feedback or report a bug, [please raise an issue on our issue tracker](https://github.com/ConsultingMD/go-auth0/issues).

### Vulnerability Reporting

Expand Down
4 changes: 2 additions & 2 deletions authentication/authentication.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"strings"
"time"

"github.com/auth0/go-auth0/internal/client"
"github.com/auth0/go-auth0/internal/idtokenvalidator"
"github.com/ConsultingMD/go-auth0/internal/client"
"github.com/ConsultingMD/go-auth0/internal/idtokenvalidator"
)

// UserInfoResponse defines the response from the user info API.
Expand Down
2 changes: 1 addition & 1 deletion authentication/authentication_option.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"net/http"
"time"

"github.com/auth0/go-auth0/internal/client"
"github.com/ConsultingMD/go-auth0/internal/client"
)

// Option is used for passing options to the Authentication client.
Expand Down
6 changes: 3 additions & 3 deletions authentication/authentication_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/auth0/go-auth0/authentication/database"
"github.com/auth0/go-auth0/authentication/oauth"
"github.com/auth0/go-auth0/internal/client"
"github.com/ConsultingMD/go-auth0/authentication/database"
"github.com/ConsultingMD/go-auth0/authentication/oauth"
"github.com/ConsultingMD/go-auth0/internal/client"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion authentication/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"io"
"net/http"

"github.com/auth0/go-auth0/authentication/database"
"github.com/ConsultingMD/go-auth0/authentication/database"
)

// Database manager.
Expand Down
2 changes: 1 addition & 1 deletion authentication/database_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/stretchr/testify/assert"

"github.com/auth0/go-auth0/authentication/database"
"github.com/ConsultingMD/go-auth0/authentication/database"
)

func TestDatabaseSignUp(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion authentication/http_recordings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/lestrrat-go/jwx/v2/jwk"
"github.com/lestrrat-go/jwx/v2/jws"

"github.com/auth0/go-auth0/authentication/oauth"
"github.com/ConsultingMD/go-auth0/authentication/oauth"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down
4 changes: 2 additions & 2 deletions authentication/oauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"github.com/lestrrat-go/jwx/v2/jwk"
"github.com/lestrrat-go/jwx/v2/jwt"

"github.com/auth0/go-auth0/authentication/oauth"
"github.com/auth0/go-auth0/internal/idtokenvalidator"
"github.com/ConsultingMD/go-auth0/authentication/oauth"
"github.com/ConsultingMD/go-auth0/internal/idtokenvalidator"
)

// OAuth exposes logging in using OAuth based APIs.
Expand Down
2 changes: 1 addition & 1 deletion authentication/oauth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/auth0/go-auth0/authentication/oauth"
"github.com/ConsultingMD/go-auth0/authentication/oauth"
)

func TestOAuthLoginWithPassword(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions authentication/passwordless.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package authentication
import (
"context"

"github.com/auth0/go-auth0/authentication/oauth"
"github.com/auth0/go-auth0/authentication/passwordless"
"github.com/auth0/go-auth0/internal/idtokenvalidator"
"github.com/ConsultingMD/go-auth0/authentication/oauth"
"github.com/ConsultingMD/go-auth0/authentication/passwordless"
"github.com/ConsultingMD/go-auth0/internal/idtokenvalidator"
)

// Passwordless exposes logging in using the passwordless APIs.
Expand Down
2 changes: 1 addition & 1 deletion authentication/passwordless/passwordless.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package passwordless

import "github.com/auth0/go-auth0/authentication/oauth"
import "github.com/ConsultingMD/go-auth0/authentication/oauth"

// SendEmailRequest defines the request body for starting a passwordless flow via email.
type SendEmailRequest struct {
Expand Down
4 changes: 2 additions & 2 deletions authentication/passwordless_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/auth0/go-auth0/authentication/oauth"
"github.com/auth0/go-auth0/authentication/passwordless"
"github.com/ConsultingMD/go-auth0/authentication/oauth"
"github.com/ConsultingMD/go-auth0/authentication/passwordless"
)

func TestSendEmail(t *testing.T) {
Expand Down
12 changes: 6 additions & 6 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ Package auth0 provides a client for using the Auth0 Authentication and Managemen
# Usage
import (
"github.com/auth0/go-auth0"
"github.com/auth0/go-auth0/authentication"
"github.com/auth0/go-auth0/authentication/database"
"github.com/auth0/go-auth0/authentication/oauth"
"github.com/ConsultingMD/go-auth0"
"github.com/ConsultingMD/go-auth0/authentication"
"github.com/ConsultingMD/go-auth0/authentication/database"
"github.com/ConsultingMD/go-auth0/authentication/oauth"
)
Initialize a new client using a context, domain, client ID, and client secret if required.
Expand Down Expand Up @@ -53,8 +53,8 @@ Now we have an authentication client, we can interact with the Auth0 Authenticat
Usage
import (
"github.com/auth0/go-auth0"
"github.com/auth0/go-auth0/management"
"github.com/ConsultingMD/go-auth0"
"github.com/ConsultingMD/go-auth0/management"
)
Initialize a new client using a domain, client ID and secret.
Expand Down
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
module github.com/auth0/go-auth0
module github.com/ConsultingMD/go-auth0

go 1.20

require (
github.com/PuerkitoBio/rehttp v1.3.0
github.com/auth0/go-auth0 v1.2.0
github.com/google/uuid v1.4.0
github.com/joho/godotenv v1.5.1
github.com/lestrrat-go/jwx/v2 v2.0.16
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
github.com/PuerkitoBio/rehttp v1.3.0 h1:w54Pb72MQn2eJrSdPsvGqXlAfiK1+NMTGDrOJJ4YvSU=
github.com/PuerkitoBio/rehttp v1.3.0/go.mod h1:LUwKPoDbDIA2RL5wYZCNsQ90cx4OJ4AWBmq6KzWZL1s=
github.com/auth0/go-auth0 v1.2.0 h1:pZWzWCWk038jDsItwfqrbuoN37xcNHUClfPzW+rk1ok=
github.com/auth0/go-auth0 v1.2.0/go.mod h1:tLH1Qv816g3dpqituiPNN4ET+YoNtk5++68aRg+MxaA=
github.com/aybabtme/iocontrol v0.0.0-20150809002002-ad15bcfc95a0 h1:0NmehRCgyk5rljDQLKUO+cRJCnduDyn11+zGZIc9Z48=
github.com/aybabtme/iocontrol v0.0.0-20150809002002-ad15bcfc95a0/go.mod h1:6L7zgvqo0idzI7IO8de6ZC051AfXb5ipkIJ7bIA2tGA=
github.com/benbjohnson/clock v1.1.0 h1:Q92kusRqC1XV2MjkWETPvjJVqKetz1OzxZB7mHJLju8=
Expand Down
2 changes: 1 addition & 1 deletion internal/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"golang.org/x/oauth2"
"golang.org/x/oauth2/clientcredentials"

"github.com/auth0/go-auth0"
"github.com/ConsultingMD/go-auth0"
)

// UserAgent is the default user agent string.
Expand Down
2 changes: 1 addition & 1 deletion management/actions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/auth0/go-auth0"
"github.com/ConsultingMD/go-auth0"
)

func TestActionManager_Create(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion management/attack_protection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/stretchr/testify/assert"

"github.com/auth0/go-auth0"
"github.com/ConsultingMD/go-auth0"
)

func TestAttackProtection(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion management/branding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/stretchr/testify/assert"

"github.com/auth0/go-auth0"
"github.com/ConsultingMD/go-auth0"
)

func TestBrandingManager_Read(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion management/branding_theme_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/auth0/go-auth0"
"github.com/ConsultingMD/go-auth0"
)

func TestBrandingThemeManager_Default(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion management/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strconv"
"time"

"github.com/auth0/go-auth0"
"github.com/ConsultingMD/go-auth0"
)

// Client is an application or a sso integration.
Expand Down
2 changes: 1 addition & 1 deletion management/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/auth0/go-auth0"
"github.com/ConsultingMD/go-auth0"
)

func TestClient_Create(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion management/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"sort"
"strings"

"github.com/auth0/go-auth0/internal/tag"
"github.com/ConsultingMD/go-auth0/internal/tag"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion management/connection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/auth0/go-auth0"
"github.com/ConsultingMD/go-auth0"
)

var connectionTestCases = []connectionTestCase{
Expand Down
2 changes: 1 addition & 1 deletion management/custom_domain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/stretchr/testify/assert"

"github.com/auth0/go-auth0"
"github.com/ConsultingMD/go-auth0"
)

func TestCustomDomainManager_Create(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion management/email_provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/auth0/go-auth0"
"github.com/ConsultingMD/go-auth0"
)

func TestEmailProviderJSON(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion management/email_template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/auth0/go-auth0"
"github.com/ConsultingMD/go-auth0"
)

func TestEmailTemplateManager_Create(t *testing.T) {
Expand Down
Loading

0 comments on commit bbeef0b

Please sign in to comment.