Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add getUserIdentifier method to match SF6 new interface #22

Merged
merged 2 commits into from
Aug 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading