Conditions | 4 |
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->hasDefinition(UserInfoEndpoint::class) || !$container->hasDefinition('jose.jws_builder.oauth2_server.userinfo')) { |
||
30 | return; |
||
31 | } |
||
32 | |||
33 | $definition = $container->getDefinition(UserInfoEndpoint::class); |
||
34 | $definition->addMethodCall('enableSignature', [ |
||
35 | new Reference('jose.jws_builder.oauth2_server.userinfo'), |
||
36 | new Reference('jose.key_set.oauth2_server.key_set.signature'), |
||
37 | ]); |
||
38 | |||
39 | if ($container->hasDefinition(MetadataBuilder::class)) { |
||
40 | $definition = $container->getDefinition(MetadataBuilder::class); |
||
41 | $definition->addMethodCall('addKeyValuePair', ['userinfo_signing_alg_values_supported', $container->getParameter('oauth2_server.openid_connect.id_token.signature_algorithms')]); |
||
42 | } |
||
43 | } |
||
44 | } |
||
45 |