Skip to content

Commit

Permalink
Merge 386c5cc into a866ceb
Browse files Browse the repository at this point in the history
  • Loading branch information
tuutti authored Dec 21, 2023
2 parents a866ceb + 386c5cc commit c9356b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Plugin/OpenIDConnectClient/Tunnistamo.php
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public function getClientScopes(): array {
$scopes = $this->configuration['client_scopes'] ?? [];

if (!$scopes) {
return [];
return parent::getClientScopes();
}
return explode(',', $this->configuration['client_scopes']);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/src/Kernel/TunnistamoClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function testGetClientScopes() : void {
$config = $plugin->getConfiguration();
$this->assertSame($config['client_scopes'], $plugin->defaultConfiguration()['client_scopes']);
$this->setPluginConfiguration('client_scopes', '');
$this->assertSame([], $this->getPlugin()->getClientScopes());
$this->assertSame(['openid', 'email'], $this->getPlugin()->getClientScopes());
}

/**
Expand Down

0 comments on commit c9356b1

Please sign in to comment.