Skip to content

Commit

Permalink
Merge pull request #49 from jiisuominen/fix-to-allow-multiple-clients
Browse files Browse the repository at this point in the history
Use parentEntityId for url
  • Loading branch information
tuutti authored Jan 11, 2023
2 parents 170da92 + a78b455 commit 72e2bcd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/EventSubscriber/TunnistamoRedirectUrlSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ public function onRedirectUrlEvent(RedirectUrlEvent $event) : void {
// defined.
if (!$returnUrl && $activePrefix = $this->prefix->getPrefix('fi')) {
$uriOptions['language'] = $this->languageManager->getLanguage('fi');

// Tunnistamo return URL is always configured to use /fi prefix.
$returnUrl = sprintf('/fi/%s/openid-connect/%s', $activePrefix, $event->getClient()->getPluginId());
$returnUrl = sprintf('/fi/%s/openid-connect/%s', $activePrefix, $event->getClient()->getParentEntityId());
}

if (!$returnUrl) {
Expand Down

0 comments on commit 72e2bcd

Please sign in to comment.