From 5912800eeb54744345e17c294042d86cb188ce87 Mon Sep 17 00:00:00 2001 From: mehmet-yoti Date: Sun, 22 Oct 2023 23:53:36 +0100 Subject: [PATCH 1/4] SDK-2259:added retrieve qr code --- digitalidentity/share_retrieve_qr.go | 10 ++++++++++ digitalidentity/share_session_created.go | 8 ++++++++ 2 files changed, 18 insertions(+) create mode 100644 digitalidentity/share_retrieve_qr.go create mode 100644 digitalidentity/share_session_created.go diff --git a/digitalidentity/share_retrieve_qr.go b/digitalidentity/share_retrieve_qr.go new file mode 100644 index 00000000..fe737d9b --- /dev/null +++ b/digitalidentity/share_retrieve_qr.go @@ -0,0 +1,10 @@ +package digitalidentity + +type ShareSessionFetchedQrCode struct { + ID string `json:"id"` + Expiry string `json:"expiry"` + Policy string `json:"policy"` + Extensions []interface{} `json:"extensions"` + Session ShareSessionCreated `json:"session"` + RedirectURI string `json:"redirectUri"` +} diff --git a/digitalidentity/share_session_created.go b/digitalidentity/share_session_created.go new file mode 100644 index 00000000..86d60e3f --- /dev/null +++ b/digitalidentity/share_session_created.go @@ -0,0 +1,8 @@ +package digitalidentity + +// ShareSessionCreated Share Session QR Result +type ShareSessionCreated struct { + ID string `json:"id"` + Satus string `json:"status"` + Expiry string `json:"expiry"` +} From e4a1fc80125941710edbb5a2f3d003f199e5d5b2 Mon Sep 17 00:00:00 2001 From: mehmet-yoti Date: Wed, 1 Nov 2023 09:11:11 +0000 Subject: [PATCH 2/4] SDK-2254 Removed unused examples and updated function namings --- .../digitalidentity/yotiSelfSignedCert.pem | 19 +++++++++++++ .../digitalidentity/yotiSelfSignedKey.pem | 27 +++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 _examples/digitalidentity/yotiSelfSignedCert.pem create mode 100644 _examples/digitalidentity/yotiSelfSignedKey.pem diff --git a/_examples/digitalidentity/yotiSelfSignedCert.pem b/_examples/digitalidentity/yotiSelfSignedCert.pem new file mode 100644 index 00000000..d1c0c4c4 --- /dev/null +++ b/_examples/digitalidentity/yotiS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y+hbopY +YIyHMbl5EjXPP9T3OL7nh9ISLj/TBSGwUPhjS/tnvw== +-----END CERTIFICATE----- diff --git a/_examples/digitalidentity/yotiSelfSignedKey.pem b/_examples/digitalidentity/yotiSelfSignedKey.pem new file mode 100644 index 00000000..ce776044 --- /dev/null +++ b/_examples/digitalidentity/yotiSelfSignedKey.pem @@ -0,0 +1,27 @@ +-----BEGIN RSA PRIVATE KEY----- +MIIEowIBAAKCAQEAwoIPoD0+qqmcmn0Dwv6E3HJ7NxhauKcCHcqxsz9JM0nebsXz +MTR1umP+aqNctG+PjCYhdPehGlUEba44YDqSWwxCnjGwqiDvDxEnAHieRcCtQr9W +SBDcHdfk3xQBoyJHbAZ4GyIxNF4RUx9ZwMTALx3DTVcAtBQ4ISSrTNuBLlCRfnN8 +BA3DmQGJPYFqeAmnH5/pKUPXtSbaqKTDM+ldLn3hv3sgh7IIEKPQbHo/f2rhm81n +BpxgQ1aFCLWibQm4rO7QDUI0/tspfAX6o9P2/WuH3vqIDlmwTLrrMA6By8580Qun +/slej7iCYILl29n2tQILLPm7QTmxWfPtIfe9NQIDAQABAoIBAFAOdBwB2S8pDFnR +pqC1XT3WqLwue/iQVKCqcqVSIPDJMJHrS4MvEl2bFnYRsvBZEn4em5qm6VoLL/1s +vattsBtlWm3+CbacQ4iyCJl7C7mt6iIU2pBi0BZAa+UdOOdKDpd5uimA0zu4k+zg +dHKRCIDcASxt6M41nDyX+SFzHyJOMrM1ga/ZedxwumiQ2uot4Fl6q8Us0AJAglUU +7JtqTMYHTDvuuRwViwlO7PoIeIR+MeXkI3o+wSTV4cZux8LiwNMMGtdPFQkNyIpf +pvPl7bgf7XVHi6xj/ff5sHd1AgaCbrVhuZHCWuj4OAg34UvQ8e2yCgcVVY6QNIla +pWOoR+kCgYEAzlTDN1FuHy2ypWo80kpJVZMxqPqFHHp7XR6NlE9/2QX7rt/Zuo0d +hXrmC3RWkFffCC+GPcVH2yhlXDN7tRABQCg6N7eOJ6xb1aAqFb/bVnle1Cx5yKd7 +0DOB5M23GmHGpxTvRm49R/Hm1QmTFcAP9+eIj4jXhggVSjY22TCqH6MCgYEA8VSy +tVuG0Uqno18lz9Jn79bYr4csUVxWcunvFCnWQgsf/L8RjHI2commjXpf+3zl7jm/ +40llHYdL07ytoo++/0Sii4JPWnEWXXsXPGEbLS9vQapekofg1UKzM/dZYgcw4Thg +fuoe03LCRhiyt4fdrmk3R26c0hXNJ5g3Ges2nUcCgYAbjqSYEc8kaOUQRLUk3PkY +bdVXHUaD/DPXxwnfwhJwOOVZgNpCmTBVMInjA8G/+4x1OmuyelPTiHypKNMf5qhU +GktUP7bDw7hsOr0ENKCl1wX8TohhbUUTFJ4HohYPdvmiPSCMBpM2ta8/ysyTPhij +4o+RpBQs+Y1mYQFIVsCSAwKBgQC4W3y94LKoFcDkpB4Nme2+ocEcrkWjzcdYt+7k +12UPRNJl0UzFnsaLTy6F69OBGhPIniNBrWLqYN4DXaLDic5d0X/e1WhrbfKo7Qx+ +GqyZIyB56H2gsN6H7BFcBHwqz9V+aAQHUDDGVWemBt4YKFmoEEajchOoxfDYa4bE +bRRmpwKBgBFYFBs5dIqylXamLjuWRt6V2kBDmaxE/CnlzlJcYXK/UaUo5l5qvjvf +oiGTXm/G5UPhwh7/EqPr1gG9w+KRuhHIftji+7Idws0Wz4DqOPkj43oFXIlAfSoJ +Q4xVrO85PhSIhlNdvTz1W1XGmFjTLN7tXOiDHJhlMZoPD/JkocmS +-----END RSA PRIVATE KEY----- From 06d91c3a2d8c7abd5084fafb28611b5bacff7827 Mon Sep 17 00:00:00 2001 From: mehmet-yoti Date: Wed, 1 Nov 2023 11:14:13 +0000 Subject: [PATCH 3/4] SDK-2259:updated needed pr reviews --- .../digitalidentity/yotiSelfSignedCert.pem | 19 ------------- .../digitalidentity/yotiSelfSignedKey.pem | 27 ------------------- 2 files changed, 46 deletions(-) delete mode 100644 _examples/digitalidentity/yotiSelfSignedCert.pem delete mode 100644 _examples/digitalidentity/yotiSelfSignedKey.pem diff --git a/_examples/digitalidentity/yotiSelfSignedCert.pem b/_examples/digitalidentity/yotiSelfSignedCert.pem deleted file mode 100644 index d1c0c4c4..00000000 --- a/_examples/digitalidentity/yotiSelfSignedCert.pem +++ /dev/null @@ -1,19 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIDGzCCAgOgAwIBAgIRAMbPvzctr0qXtQ+ESN1qBz8wDQYJKoZIhvcNAQELBQAw -DzENMAsGA1UEChMEWW90aTAeFw0yMzEwMjQxODIzMThaFw0yNTEwMjMxODIzMTha -MA8xDTALBgNVBAoTBFlvdGkwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB -AQDCgg+gPT6qqZyafQPC/oTccns3GFq4pwIdyrGzP0kzSd5uxfMxNHW6Y/5qo1y0 -b4+MJiF096EaVQRtrjhgOpJbDEKeMbCqIO8PEScAeJ5FwK1Cv1ZIENwd1+TfFAGj -IkdsBngbIjE0XhFTH1nAxMAvHcNNVwC0FDghJKtM24EuUJF+c3wEDcOZAYk9gWp4 -Cacfn+kpQ9e1JtqopMMz6V0ufeG/eyCHsggQo9Bsej9/auGbzWcGnGBDVoUItaJt -Cbis7tANQjT+2yl8Bfqj0/b9a4fe+ogOWbBMuuswDoHLznzRC6f+yV6PuIJgguXb -2fa1Agss+btBObFZ8+0h9701AgMBAAGjcjBwMA4GA1UdDwEB/wQEAwICpDATBgNV -HSUEDDAKBggrBgEFBQcDATAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBTQT4rA -SBLhypenYm4xD8JSQntlFjAZBgNVHREEEjAQgg4xMjcuMC4wLjE6ODA4MDANBgkq -hkiG9w0BAQsFAAOCAQEAcTV3inE9b9kzcP63CoREn23PDJeVFpaXsj57HSM4qxpS -bzNbspclKnEP5BIj8uRq8XaFILaQxXrvBLn6oF8aIOi230MqEg5IPP9m8zy/zm4K -Nm3vhzNF4avm20kgcccCgQlHw3n1AhDo+jDJy9t0B0FHNCdoM20tuQ7zog9Rr/3H -oQ3IoqwTP0ugLe9ww+qIHbS4XDdUcCaWmXR+ucN0w8AZIkkzQB/Va5GReWf3yXle -SulQ16qjjj5Pfx+W+obXdShpreDY+VYRnQNF31XYcIWssJTLk0gF/Ta98y+hbopY -YIyHMbl5EjXPP9T3OL7nh9ISLj/TBSGwUPhjS/tnvw== ------END CERTIFICATE----- diff --git a/_examples/digitalidentity/yotiSelfSignedKey.pem b/_examples/digitalidentity/yotiSelfSignedKey.pem deleted file mode 100644 index ce776044..00000000 --- a/_examples/digitalidentity/yotiSelfSignedKey.pem +++ /dev/null @@ -1,27 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -MIIEowIBAAKCAQEAwoIPoD0+qqmcmn0Dwv6E3HJ7NxhauKcCHcqxsz9JM0nebsXz -MTR1umP+aqNctG+PjCYhdPehGlUEba44YDqSWwxCnjGwqiDvDxEnAHieRcCtQr9W -SBDcHdfk3xQBoyJHbAZ4GyIxNF4RUx9ZwMTALx3DTVcAtBQ4ISSrTNuBLlCRfnN8 -BA3DmQGJPYFqeAmnH5/pKUPXtSbaqKTDM+ldLn3hv3sgh7IIEKPQbHo/f2rhm81n -BpxgQ1aFCLWibQm4rO7QDUI0/tspfAX6o9P2/WuH3vqIDlmwTLrrMA6By8580Qun -/slej7iCYILl29n2tQILLPm7QTmxWfPtIfe9NQIDAQABAoIBAFAOdBwB2S8pDFnR -pqC1XT3WqLwue/iQVKCqcqVSIPDJMJHrS4MvEl2bFnYRsvBZEn4em5qm6VoLL/1s -vattsBtlWm3+CbacQ4iyCJl7C7mt6iIU2pBi0BZAa+UdOOdKDpd5uimA0zu4k+zg -dHKRCIDcASxt6M41nDyX+SFzHyJOMrM1ga/ZedxwumiQ2uot4Fl6q8Us0AJAglUU -7JtqTMYHTDvuuRwViwlO7PoIeIR+MeXkI3o+wSTV4cZux8LiwNMMGtdPFQkNyIpf -pvPl7bgf7XVHi6xj/ff5sHd1AgaCbrVhuZHCWuj4OAg34UvQ8e2yCgcVVY6QNIla -pWOoR+kCgYEAzlTDN1FuHy2ypWo80kpJVZMxqPqFHHp7XR6NlE9/2QX7rt/Zuo0d -hXrmC3RWkFffCC+GPcVH2yhlXDN7tRABQCg6N7eOJ6xb1aAqFb/bVnle1Cx5yKd7 -0DOB5M23GmHGpxTvRm49R/Hm1QmTFcAP9+eIj4jXhggVSjY22TCqH6MCgYEA8VSy -tVuG0Uqno18lz9Jn79bYr4csUVxWcunvFCnWQgsf/L8RjHI2commjXpf+3zl7jm/ -40llHYdL07ytoo++/0Sii4JPWnEWXXsXPGEbLS9vQapekofg1UKzM/dZYgcw4Thg -fuoe03LCRhiyt4fdrmk3R26c0hXNJ5g3Ges2nUcCgYAbjqSYEc8kaOUQRLUk3PkY -bdVXHUaD/DPXxwnfwhJwOOVZgNpCmTBVMInjA8G/+4x1OmuyelPTiHypKNMf5qhU -GktUP7bDw7hsOr0ENKCl1wX8TohhbUUTFJ4HohYPdvmiPSCMBpM2ta8/ysyTPhij -4o+RpBQs+Y1mYQFIVsCSAwKBgQC4W3y94LKoFcDkpB4Nme2+ocEcrkWjzcdYt+7k -12UPRNJl0UzFnsaLTy6F69OBGhPIniNBrWLqYN4DXaLDic5d0X/e1WhrbfKo7Qx+ -GqyZIyB56H2gsN6H7BFcBHwqz9V+aAQHUDDGVWemBt4YKFmoEEajchOoxfDYa4bE -bRRmpwKBgBFYFBs5dIqylXamLjuWRt6V2kBDmaxE/CnlzlJcYXK/UaUo5l5qvjvf -oiGTXm/G5UPhwh7/EqPr1gG9w+KRuhHIftji+7Idws0Wz4DqOPkj43oFXIlAfSoJ -Q4xVrO85PhSIhlNdvTz1W1XGmFjTLN7tXOiDHJhlMZoPD/JkocmS ------END RSA PRIVATE KEY----- From f41040227b50cb5868a5c88837c7472ec149ad7b Mon Sep 17 00:00:00 2001 From: mehmet-yoti Date: Wed, 1 Nov 2023 11:14:13 +0000 Subject: [PATCH 4/4] SDK-2259:removed unused example files --- .../digitalidentity/yotiSelfSignedCert.pem | 19 ------------- .../digitalidentity/yotiSelfSignedKey.pem | 27 ------------------- 2 files changed, 46 deletions(-) delete mode 100644 _examples/digitalidentity/yotiSelfSignedCert.pem delete mode 100644 _examples/digitalidentity/yotiSelfSignedKey.pem diff --git a/_examples/digitalidentity/yotiSelfSignedCert.pem b/_examples/digitalidentity/yotiSelfSignedCert.pem deleted file mode 100644 index d1c0c4c4..00000000 --- a/_examples/digitalidentity/yotiSelfSignedCert.pem +++ /dev/null @@ -1,19 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIDGzCCAgOgAwIBAgIRAMbPvzctr0qXtQ+ESN1qBz8wDQYJKoZIhvcNAQELBQAw -DzENMAsGA1UEChMEWW90aTAeFw0yMzEwMjQxODIzMThaFw0yNTEwMjMxODIzMTha -MA8xDTALBgNVBAoTBFlvdGkwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB -AQDCgg+gPT6qqZyafQPC/oTccns3GFq4pwIdyrGzP0kzSd5uxfMxNHW6Y/5qo1y0 -b4+MJiF096EaVQRtrjhgOpJbDEKeMbCqIO8PEScAeJ5FwK1Cv1ZIENwd1+TfFAGj -IkdsBngbIjE0XhFTH1nAxMAvHcNNVwC0FDghJKtM24EuUJF+c3wEDcOZAYk9gWp4 -Cacfn+kpQ9e1JtqopMMz6V0ufeG/eyCHsggQo9Bsej9/auGbzWcGnGBDVoUItaJt -Cbis7tANQjT+2yl8Bfqj0/b9a4fe+ogOWbBMuuswDoHLznzRC6f+yV6PuIJgguXb -2fa1Agss+btBObFZ8+0h9701AgMBAAGjcjBwMA4GA1UdDwEB/wQEAwICpDATBgNV -HSUEDDAKBggrBgEFBQcDATAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBTQT4rA -SBLhypenYm4xD8JSQntlFjAZBgNVHREEEjAQgg4xMjcuMC4wLjE6ODA4MDANBgkq -hkiG9w0BAQsFAAOCAQEAcTV3inE9b9kzcP63CoREn23PDJeVFpaXsj57HSM4qxpS -bzNbspclKnEP5BIj8uRq8XaFILaQxXrvBLn6oF8aIOi230MqEg5IPP9m8zy/zm4K -Nm3vhzNF4avm20kgcccCgQlHw3n1AhDo+jDJy9t0B0FHNCdoM20tuQ7zog9Rr/3H -oQ3IoqwTP0ugLe9ww+qIHbS4XDdUcCaWmXR+ucN0w8AZIkkzQB/Va5GReWf3yXle -SulQ16qjjj5Pfx+W+obXdShpreDY+VYRnQNF31XYcIWssJTLk0gF/Ta98y+hbopY -YIyHMbl5EjXPP9T3OL7nh9ISLj/TBSGwUPhjS/tnvw== ------END CERTIFICATE----- diff --git a/_examples/digitalidentity/yotiSelfSignedKey.pem b/_examples/digitalidentity/yotiSelfSignedKey.pem deleted file mode 100644 index ce776044..00000000 --- a/_examples/digitalidentity/yotiSelfSignedKey.pem +++ /dev/null @@ -1,27 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -MIIEowIBAAKCAQEAwoIPoD0+qqmcmn0Dwv6E3HJ7NxhauKcCHcqxsz9JM0nebsXz -MTR1umP+aqNctG+PjCYhdPehGlUEba44YDqSWwxCnjGwqiDvDxEnAHieRcCtQr9W -SBDcHdfk3xQBoyJHbAZ4GyIxNF4RUx9ZwMTALx3DTVcAtBQ4ISSrTNuBLlCRfnN8 -BA3DmQGJPYFqeAmnH5/pKUPXtSbaqKTDM+ldLn3hv3sgh7IIEKPQbHo/f2rhm81n -BpxgQ1aFCLWibQm4rO7QDUI0/tspfAX6o9P2/WuH3vqIDlmwTLrrMA6By8580Qun -/slej7iCYILl29n2tQILLPm7QTmxWfPtIfe9NQIDAQABAoIBAFAOdBwB2S8pDFnR -pqC1XT3WqLwue/iQVKCqcqVSIPDJMJHrS4MvEl2bFnYRsvBZEn4em5qm6VoLL/1s -vattsBtlWm3+CbacQ4iyCJl7C7mt6iIU2pBi0BZAa+UdOOdKDpd5uimA0zu4k+zg -dHKRCIDcASxt6M41nDyX+SFzHyJOMrM1ga/ZedxwumiQ2uot4Fl6q8Us0AJAglUU -7JtqTMYHTDvuuRwViwlO7PoIeIR+MeXkI3o+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