From ad6c1416bdc801f0931e3c7b19f6f2c370078987 Mon Sep 17 00:00:00 2001 From: mehmet-yoti Date: Fri, 9 Feb 2024 08:20:43 +0000 Subject: [PATCH 1/7] SDK-2423:solved php-sdk-activity-details-get-profile-function-retrieves-empty-user-profile --- .../profile/app/Http/Controllers/DynamicShareController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/profile/app/Http/Controllers/DynamicShareController.php b/examples/profile/app/Http/Controllers/DynamicShareController.php index f5db2c97..f9ec13bd 100644 --- a/examples/profile/app/Http/Controllers/DynamicShareController.php +++ b/examples/profile/app/Http/Controllers/DynamicShareController.php @@ -29,7 +29,7 @@ public function show(YotiClient $client) $scenario = (new DynamicScenarioBuilder()) ->withPolicy($policy) ->withCallbackEndpoint('/profile') - ->withExtension($locationConstraint) + //->withExtension($locationConstraint) ->build(); return view('share', [ From 1a35b6681b18e7ece5dc9d00553f249adf6b7773 Mon Sep 17 00:00:00 2001 From: mehmet-yoti Date: Fri, 9 Feb 2024 08:23:53 +0000 Subject: [PATCH 2/7] SDK-2423:solved php-sdk-activity-details-get-profile-function-retrieves-empty-user-profile --- src/Profile/Util/Attribute/AnchorConverter.php | 2 +- src/Util/Json.php | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/src/Profile/Util/Attribute/AnchorConverter.php b/src/Profile/Util/Attribute/AnchorConverter.php index 89558202..33e6fb57 100644 --- a/src/Profile/Util/Attribute/AnchorConverter.php +++ b/src/Profile/Util/Attribute/AnchorConverter.php @@ -115,7 +115,7 @@ private static function convertCertToX509(string $certificate): \stdClass } }); - $decodedX509Data = Json::decode(Json::encode($X509Data), false); + $decodedX509Data = Json::decode(Json::encode(Json::convert_from_latin1_to_utf8_recursively($X509Data)), false); // Ensure serial number is cast to string. // @see \phpseclib\Math\BigInteger::__toString() diff --git a/src/Util/Json.php b/src/Util/Json.php index cdeeefd9..e014e174 100644 --- a/src/Util/Json.php +++ b/src/Util/Json.php @@ -55,4 +55,22 @@ private static function validate(): void throw new JsonException(json_last_error_msg(), json_last_error()); } } + + public static function convert_from_latin1_to_utf8_recursively($dat) + { + if (is_string($dat)) { + return utf8_encode($dat); + } elseif (is_array($dat)) { + $ret = []; + foreach ($dat as $i => $d) $ret[ $i ] = self::convert_from_latin1_to_utf8_recursively($d); + + return $ret; + } elseif (is_object($dat)) { + foreach ($dat as $i => $d) $dat->$i = self::convert_from_latin1_to_utf8_recursively($d); + + return $dat; + } else { + return $dat; + } + } } From 42bc2c245f5d0457260b0e9ee4807826e4a74c46 Mon Sep 17 00:00:00 2001 From: mehmet-yoti Date: Fri, 9 Feb 2024 08:37:47 +0000 Subject: [PATCH 3/7] SDK-2423:updated sdk version string --- composer.json | 2 +- src/Constants.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 0af26520..46af649a 100755 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "yoti/yoti-php-sdk", "description": "Yoti SDK for quickly integrating your PHP backend with Yoti", - "version": "4.2.1", + "version": "4.2.2", "keywords": [ "yoti", "sdk" diff --git a/src/Constants.php b/src/Constants.php index d8a8ceaa..300def72 100644 --- a/src/Constants.php +++ b/src/Constants.php @@ -25,7 +25,7 @@ class Constants public const SDK_IDENTIFIER = 'PHP'; /** Default SDK version */ - public const SDK_VERSION = '4.2.1'; + public const SDK_VERSION = '4.2.2'; /** Base url for connect page (user will be redirected to this page eg. baseurl/app-id) */ public const CONNECT_BASE_URL = 'https://www.yoti.com/connect'; From 391157850a77d6a2c5d3d2639ae19021cacdc4fa Mon Sep 17 00:00:00 2001 From: mehmet-yoti Date: Fri, 9 Feb 2024 08:49:51 +0000 Subject: [PATCH 4/7] SDK-2423:solved php-sdk-activity-details-get-profile-function-retrieves-empty-user-profile --- .../profile/app/Http/Controllers/DynamicShareController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/profile/app/Http/Controllers/DynamicShareController.php b/examples/profile/app/Http/Controllers/DynamicShareController.php index f9ec13bd..f5db2c97 100644 --- a/examples/profile/app/Http/Controllers/DynamicShareController.php +++ b/examples/profile/app/Http/Controllers/DynamicShareController.php @@ -29,7 +29,7 @@ public function show(YotiClient $client) $scenario = (new DynamicScenarioBuilder()) ->withPolicy($policy) ->withCallbackEndpoint('/profile') - //->withExtension($locationConstraint) + ->withExtension($locationConstraint) ->build(); return view('share', [ From e9065ead213c60ce606b31d6f949715f1fab0dcf Mon Sep 17 00:00:00 2001 From: mehmet-yoti Date: Mon, 19 Feb 2024 10:46:11 +0300 Subject: [PATCH 5/7] SDK-2432 dbs-check profile error was solved --- examples/profile/resources/views/partial/report.blade.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/profile/resources/views/partial/report.blade.php b/examples/profile/resources/views/partial/report.blade.php index 28bdd3f0..707abe99 100644 --- a/examples/profile/resources/views/partial/report.blade.php +++ b/examples/profile/resources/views/partial/report.blade.php @@ -8,6 +8,7 @@ + @if (isset($value) && is_array($value)) @foreach ($value as $name => $result) @if (is_array($result)) @foreach ($result as $data => $view) @@ -33,7 +34,7 @@ @endif @endforeach - + @endif @endforeach From d213f426bf4b89cdab617ea80c3ae024ad62c3a9 Mon Sep 17 00:00:00 2001 From: nikhilPank <49190426+nikhilPank@users.noreply.github.com> Date: Tue, 20 Feb 2024 12:18:13 +0000 Subject: [PATCH 6/7] Create config.yml --- .github/ISSUE_TEMPLATE/config.yml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/config.yml diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 00000000..9486bc24 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,5 @@ +blank_issues_enabled: false +contact_links: + - name: Yoti Support + url: https://support.yoti.com/yotisupport/s/contactsupport + about: Please send your questions or issues here. From de73bae1b1f1c70bd44d0bd45239c9367621f33b Mon Sep 17 00:00:00 2001 From: nikhilPank <49190426+nikhilPank@users.noreply.github.com> Date: Tue, 20 Feb 2024 12:18:43 +0000 Subject: [PATCH 7/7] Delete .github/ISSUE_TEMPLATE.md --- .github/ISSUE_TEMPLATE.md | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE.md diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md deleted file mode 100644 index 98f0c89d..00000000 --- a/.github/ISSUE_TEMPLATE.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -name: Custom issue template -about: " There's a better way to get help!" -title: '' -labels: '' -assignees: '' - ---- - -# -# Wait ✋ -# -# There's a better way to get help! -# -# Send your questions or issues to https://support.yoti.com -# -#