From 6b3b5bda44f5ca1aa0f2a87a6e1ef3a3ab964196 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Wed, 3 Nov 2021 11:55:49 -0400 Subject: [PATCH 1/3] - updates readme to match az identity updates --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a7f03fe3c9..1babe9a4e1 100644 --- a/README.md +++ b/README.md @@ -38,8 +38,9 @@ import ( cred, err := azidentity.NewDeviceCodeCredential(&azidentity.DeviceCodeCredentialOptions{ TenantID: "", ClientID: "", - UserPrompt: func(message azidentity.DeviceCodeMessage) { + UserPrompt: func(ctx context.Context, message azidentity.DeviceCodeMessage) error { fmt.Println(message.Message) + return nil }, }) From 1bec8a75fa1ec9a6d241550a33e20549b864ebdb Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Wed, 3 Nov 2021 11:58:33 -0400 Subject: [PATCH 2/3] - adds missing context import --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 1babe9a4e1..bbef3e822c 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,7 @@ For an example of how to get an authentication provider, see [choose a Microsoft import ( azidentity "https://github.com/Azure/azure-sdk-for-go/sdk/azidentity" a "https://github.com/microsoft/kiota/authentication/go/azure" + "context" ) cred, err := azidentity.NewDeviceCodeCredential(&azidentity.DeviceCodeCredentialOptions{ From 130564a34c771841e9b54a5ebef3c84d8278e4c4 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Wed, 3 Nov 2021 14:49:24 -0400 Subject: [PATCH 3/3] - fixes modules references in getting started --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index bbef3e822c..df553aa62d 100644 --- a/README.md +++ b/README.md @@ -31,8 +31,8 @@ For an example of how to get an authentication provider, see [choose a Microsoft ```Golang import ( - azidentity "https://github.com/Azure/azure-sdk-for-go/sdk/azidentity" - a "https://github.com/microsoft/kiota/authentication/go/azure" + azidentity "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + a "github.com/microsoft/kiota/authentication/go/azure" "context" ) @@ -61,7 +61,7 @@ if err != nil { You must get a **GraphRequestAdapter** object to make requests against the service. ```Golang -import msgraphsdk "https://github.com/microsoftgraph/msgraph-sdk-go" +import msgraphsdk "github.com/microsoftgraph/msgraph-sdk-go" adapter, err := msgraphsdk.NewGraphRequestAdapter(auth) if err != nil {