From 99a9769652e27abc5b280fde8d3547ceebe25e3c Mon Sep 17 00:00:00 2001 From: Jonathan Lelievre Date: Tue, 8 Aug 2023 16:06:35 +0200 Subject: [PATCH 1/2] Add getUserIdentifier method to match SF6 new interface --- src/OAuth2/KeyCloakUser.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/OAuth2/KeyCloakUser.php b/src/OAuth2/KeyCloakUser.php index 03e4ecf..3b69e8b 100644 --- a/src/OAuth2/KeyCloakUser.php +++ b/src/OAuth2/KeyCloakUser.php @@ -56,6 +56,11 @@ public function getUsername(): string return $this->username; } + public function getUserIdentifier(): string + { + return $this->username; + } + public function eraseCredentials(): void { } From c199b0c625f83e802fb463767c9b902c809068b4 Mon Sep 17 00:00:00 2001 From: Jonathan Lelievre Date: Tue, 8 Aug 2023 16:14:47 +0200 Subject: [PATCH 2/2] Bump version --- config.xml | 2 +- keycloak_connector_demo.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.xml b/config.xml index a6f9bc4..d253edc 100644 --- a/config.xml +++ b/config.xml @@ -2,7 +2,7 @@ keycloak_connector_demo - + diff --git a/keycloak_connector_demo.php b/keycloak_connector_demo.php index 3835fbb..b35f315 100644 --- a/keycloak_connector_demo.php +++ b/keycloak_connector_demo.php @@ -34,7 +34,7 @@ public function __construct() { $this->name = 'keycloak_connector_demo'; $this->displayName = 'Keycloak OAuth2 connector demo'; - $this->version = '1.0.3'; + $this->version = '1.0.4'; $this->author = 'PrestaShop'; $this->description = 'Demo module of how to use Keycloak as OAuth2 Authentication Server for the new API'; $this->need_instance = 0;