@@ -32,7 +32,7 @@ public function __construct(
3232 $ this ->authorization ->requireAdmin (true );
3333
3434 $ this ->arrayLogger ->setWeight (ArrayLogger::WEIGHT_WARNING );
35- // Let's create new Federation instance so we can inject our debug logger and go without cache.
35+ // Let's create a new Federation instance so we can inject our debug logger and go without cache.
3636 $ this ->federationWithArrayLogger = new Federation (
3737 supportedAlgorithms: $ this ->federation ->supportedAlgorithms (),
3838 cache: null ,
@@ -114,31 +114,31 @@ public function trustChainResolution(Request $request): Response
114114
115115 public function trustMarkValidation (Request $ request ): Response
116116 {
117- $ trustMarkId = null ;
117+ $ trustMarkType = null ;
118118 $ leafEntityId = null ;
119119 $ trustAnchorId = null ;
120120 $ isFormSubmitted = false ;
121121
122122 if ($ request ->isMethod (Request::METHOD_POST )) {
123123 $ isFormSubmitted = true ;
124124
125- !empty ($ trustMarkId = $ request ->request ->getString ('trustMarkId ' )) ||
126- throw new OidcException ('Empty Trust Mark ID . ' );
125+ !empty ($ trustMarkType = $ request ->request ->getString ('trustMarkType ' )) ||
126+ throw new OidcException ('Empty Trust Mark Type . ' );
127127 !empty ($ leafEntityId = $ request ->request ->getString ('leafEntityId ' )) ||
128128 throw new OidcException ('Empty leaf entity ID. ' );
129129 !empty ($ trustAnchorId = $ request ->request ->getString ('trustAnchorId ' )) ||
130130 throw new OidcException ('Empty Trust Anchor ID. ' );
131131
132132 try {
133- // We should not try to validate Trust Marks until we have resolved trust chain between leaf and TA.
133+ // We should not try to validate Trust Marks until we have resolved a trust chain between leaf and TA.
134134 $ trustChain = $ this ->federation ->trustChainResolver ()->for (
135135 $ leafEntityId ,
136136 [$ trustAnchorId ],
137137 )->getShortest ();
138138
139139 try {
140- $ this ->federationWithArrayLogger ->trustMarkValidator ()->doForTrustMarkId (
141- $ trustMarkId ,
140+ $ this ->federationWithArrayLogger ->trustMarkValidator ()->doForTrustMarkType (
141+ $ trustMarkType ,
142142 $ trustChain ->getResolvedLeaf (),
143143 $ trustChain ->getResolvedTrustAnchor (),
144144 );
@@ -160,7 +160,7 @@ public function trustMarkValidation(Request $request): Response
160160 return $ this ->templateFactory ->build (
161161 'oidc:tests/trust-mark-validation.twig ' ,
162162 compact (
163- 'trustMarkId ' ,
163+ 'trustMarkType ' ,
164164 'leafEntityId ' ,
165165 'trustAnchorId ' ,
166166 'logMessages ' ,
0 commit comments