Skip to content

Commit

Permalink
Merge pull request #19 from bookboon/hotfix/revert-some-last
Browse files Browse the repository at this point in the history
fix: revert override for auth_uri
  • Loading branch information
lkm authored Jun 27, 2022
2 parents 9248881 + bfe849a commit dfbc08f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Client/AccessTokenClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ public function __construct(
string $apiId,
string $apiSecret,
array $scopes,
string $authServiceUri,
string $redirectUri,
?string $appUserId = null,
?string $authServiceUri = null,
?LoggerInterface $logger = null,
array $clientOptions = []
) {
Expand Down
2 changes: 1 addition & 1 deletion DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ public function getConfigTreeBuilder()
->children()
->scalarNode('id')->isRequired()->end()
->scalarNode('secret')->isRequired()->end()
->scalarNode('auth_uri')->isRequired()->end()
->scalarNode('branding')->end()
->scalarNode('rotation')->end()
->scalarNode('currency')->end()
->scalarNode('impersonator_id')->defaultNull()->end()
->scalarNode('redirect')->defaultNull()->end()
->arrayNode('languages')->isRequired()->prototype('scalar')->end()->end()
->arrayNode('scopes')->isRequired()->prototype('scalar')->end()->end()
->scalarNode('override_auth_uri')->defaultNull()->end()
->integerNode('premium_level')->end()
;

Expand Down
4 changes: 2 additions & 2 deletions Helper/ConfigurationHolder.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ public function getPremiumLevel(): ?string
return $this->_config['premium_level'] ?? null;
}

public function getAuthUri(): string
public function getOverrideAuthUri(): ?string
{
return $this->_config['auth_uri'] ?? '';
return $this->_config['override_auth_uri'] ?? null;
}
}
2 changes: 1 addition & 1 deletion Service/ApiFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ public static function createOauth(
$config->getId(),
$config->getSecret(),
$config->getScopes(),
$config->getAuthUri(),
'',
null,
$config->getOverrideAuthUri(),
$logger,
['handler' => $stack]
);
Expand Down

0 comments on commit dfbc08f

Please sign in to comment.