From 3988fa4d42ef87d6686ebf30295b3c8ad6f3287e Mon Sep 17 00:00:00 2001 From: Charles Treatman Date: Fri, 6 Nov 2026 12:37:40 -0600 Subject: [PATCH] chore(docs): remove mention of oauth2-go which was deprecated mid-2025 --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3b4319f..8c514a2 100644 --- a/README.md +++ b/README.md @@ -25,11 +25,13 @@ and it is not providing full capabilities of Equinix Network Edge API ### Code 1. Add ne-go module to import statement. - In below example, Equinix `oauth2-go` module is imported as well + In below example, Equinix `equinix-sdk-go` OAuth2 extension is imported as well ```go import ( - "github.com/equinix/oauth2-go" + "net/http" + + "github.com/equinix/equinix-sdk-go/extensions/equinixoauth2" "github.com/equinix/ne-go" ) ``` @@ -43,12 +45,12 @@ and it is not providing full capabilities of Equinix Network Edge API 3. Create oAuth configuration and oAuth enabled `http.Client` ```go - authConfig := oauth2.Config{ + authConfig := equinixoauth2.Config{ ClientID: "someClientId", ClientSecret: "someSecret", BaseURL: baseURL} ctx := context.Background() - authClient := authConfig.New(ctx) + authClient := &http.Client{Transport: authConfig.New()} ``` 4. Create NE REST client with a given `baseURL` and oauth's `http.Client`