8000 minor #59982 [Security] Fix typos in OIDC methods (valtzu) · symfony/symfony@c3c37f2 · GitHub
[go: up one dir, main page]

Skip to content

Commit c3c37f2

Browse files
committed
minor #59982 [Security] Fix typos in OIDC methods (valtzu)
This PR was merged into the 7.3 branch. Discussion ---------- [Security] Fix typos in OIDC methods | Q | A | ------------- | --- | Branch? | 7.3 | Bug fix? | yes | New feature? | no | License | MIT Related to recently merged [OIDC discovery](#54932), the DI is configured to call `enableDiscovery` method but it does not exist – but there is `enabledDiscovery`. Let's drop the extra `d`, and the same for `enabledJweSupport` too. Commits ------- 3d6cc19 Fix typos in OIDC methods
2 parents 273f2ee + 3d6cc19 commit c3c37f2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/AccessToken/OidcTokenHandlerFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function create(ContainerBuilder $container, string $id, array|string $co
7171
->replaceArgument(0, $config['encryption']['keyset']);
7272

7373
$tokenHandlerDefinition->addMethodCall(
74-
'enabledJweSupport',
74+
'enableJweSupport',
7575
[
7676
$keyset,
7777
$algorithmManager,

src/Symfony/Component/Security/Http/AccessToken/Oidc/OidcTokenHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,14 @@ public function __construct(
7171
}
7272
}
7373

74-
public function enabledJweSupport(JWKSet $decryptionKeyset, AlgorithmManager $decryptionAlgorithms, bool $enforceEncryption): void
74+
public function enableJweSupport(JWKSet $decryptionKeyset, AlgorithmManager $decryptionAlgorithms, bool $enforceEncryption): void
7575
{
7676
$this->decryptionKeyset = $decryptionKeyset;
7777
$this->decryptionAlgorithms = $decryptionAlgorithms;
7878
$this->enforceEncryption = $enforceEncryption;
7979
}
8080

81-
public function enabledDiscovery(CacheInterface $cache, HttpClientInterface $client, string $oidcConfigurationCacheKey, string $oidcJWKSetCacheKey): void
81+
public function enableDiscovery(CacheInterface $cache, HttpClientInterface $client, string $oidcConfigurationCacheKey, string $oidcJWKSetCacheKey): void
8282
{
8383
$this->discoveryCache = $cache;
8484
$this->discoveryClient = $client;

src/Symfony/Component/Security/Http/AccessToken/Oidc/OidcUserInfoTokenHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct(
3737
) {
3838
}
3939

40-
public function enabledDiscovery(CacheInterface $cache, string $oidcConfigurationCacheKey): void
40+
public function enableDiscovery(CacheInterface $cache, string $oidcConfigurationCacheKey): void
4141
{
4242
$this->discoveryCache = $cache;
4343
$this->oidcConfigurationCacheKey = $oidcConfigurationCacheKey;

0 commit comments

Comments
 (0)
0