Skip to content

Commit

Permalink
Merge pull request #22 from jolelievre/symfony6-user-interface
Browse files Browse the repository at this point in the history
Add getUserIdentifier method to match SF6 new interface
  • Loading branch information
jolelievre authored Aug 8, 2023
2 parents d649ba4 + c199b0c commit 8f6f77f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<module>
<name>keycloak_connector_demo</name>
<displayName><![CDATA[Keycloak OAuth2 connector demo]]></displayName>
<version><![CDATA[1.0.3]]></version>
<version><![CDATA[1.0.4]]></version>
<description><![CDATA[Demo module of how to use Keycloak as OAuth2 Authentication Server for the new API]]></description>
<author><![CDATA[PrestaShop]]></author>
<tab><![CDATA[]]></tab>
Expand Down
2 changes: 1 addition & 1 deletion keycloak_connector_demo.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 5 additions & 0 deletions src/OAuth2/KeyCloakUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ public function getUsername(): string
return $this->username;
}

public function getUserIdentifier(): string
{
return $this->username;
}

public function eraseCredentials(): void
{
}
Expand Down

0 comments on commit 8f6f77f

Please sign in to comment.