Conditions | 3 |
Paths | 3 |
Total Lines | 17 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public function process(ContainerBuilder $container) |
||
28 | { |
||
29 | if (!$container->hasAlias('oauth2_server.openid_connect.pairwise_subject.service')) { |
||
30 | return; |
||
31 | } |
||
32 | |||
33 | $definition = $container->getDefinition(UserInfo::class); |
||
34 | $service = $container->getAlias('oauth2_server.openid_connect.pairwise_subject.service'); |
||
35 | $isDefault = $container->getParameter('oauth2_server.openid_connect.pairwise_subject.is_default'); |
||
36 | $definition->addMethodCall('enablePairwiseSubject', [new Reference($service), $isDefault]); |
||
37 | |||
38 | // Enabled the pairwise support for the Id Token Hint Discovery service if available |
||
39 | if ($container->hasDefinition(IdTokenHintDiscovery::class)) { |
||
40 | $definition = $container->getDefinition(IdTokenHintDiscovery::class); |
||
41 | $definition->addMethodCall('enablePairwiseSubject', [new Reference($service)]); |
||
42 | } |
||
43 | } |
||
44 | } |
||
45 |