From aad8d972a572636f56ab5bfc6edd1ff2401366fb Mon Sep 17 00:00:00 2001 From: mehmet-yoti Date: Thu, 12 Oct 2023 09:54:42 +0100 Subject: [PATCH] SDK-2246:pr updates --- _examples/idv/handlers.session.go | 2 -- digitalidentity/share_session_builder.go | 4 ++-- requests/signed_message.go | 7 ------- 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/_examples/idv/handlers.session.go b/_examples/idv/handlers.session.go index 40c4dfae..7d73b46b 100644 --- a/_examples/idv/handlers.session.go +++ b/_examples/idv/handlers.session.go @@ -6,7 +6,6 @@ import ( "net/http" "os" - "github.com/getyoti/yoti-go-sdk/v3" "github.com/getyoti/yoti-go-sdk/v3/docscan" "github.com/getyoti/yoti-go-sdk/v3/docscan/session/create" "github.com/gin-gonic/gin" @@ -22,7 +21,6 @@ var ( key []byte client *docscan.Client createSessionResult *create.SessionResult - didClient *yoti.DigitalIdentityClient ) func showIndexPage(c *gin.Context) { diff --git a/digitalidentity/share_session_builder.go b/digitalidentity/share_session_builder.go index 759a67d9..b9dfb94c 100644 --- a/digitalidentity/share_session_builder.go +++ b/digitalidentity/share_session_builder.go @@ -32,8 +32,8 @@ func (builder *ShareSessionRequestBuilder) WithExtension(extension interface{}) } // WithNotification sets the callback URL -func (builder *ShareSessionRequestBuilder) WithNotification(notification ShareSessionNotification) *ShareSessionRequestBuilder { - builder.shareSessionRequest.shareSessionNotification = ¬ification +func (builder *ShareSessionRequestBuilder) WithNotification(notification *ShareSessionNotification) *ShareSessionRequestBuilder { + builder.shareSessionRequest.shareSessionNotification = notification return builder } diff --git a/requests/signed_message.go b/requests/signed_message.go index de5e4429..8a1715f2 100644 --- a/requests/signed_message.go +++ b/requests/signed_message.go @@ -45,13 +45,6 @@ func JSONHeaders() map[string][]string { func AuthHeader(clientSdkId string, key *rsa.PublicKey) map[string][]string { return map[string][]string{ "X-Yoti-Auth-Id": {clientSdkId}, - /*"X-Yoti-Auth-Key": { - base64.StdEncoding.EncodeToString( - func(a []byte, _ error) []byte { - return a - }(x509.MarshalPKIXPublicKey(key)), - ), - },*/ } }