File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424use SimpleSAML \SAML2 \XML \samlp \ArtifactResponse ;
2525use SimpleSAML \Store \StoreFactory ;
2626use SimpleSAML \Utils \HTTP ;
27- use SimpleSAML \XMLSchema \Type \AnyURIValue ;
2827use SimpleSAML \XMLSecurity \Alg \Signature \SignatureAlgorithmFactory ;
2928use SimpleSAML \XMLSecurity \Key \PublicKey ;
3029use SimpleSAML \XMLSecurity \TestUtils \PEMCertificatesMock ;
@@ -250,8 +249,12 @@ private function verifyArtifactResponseSignature(
250249 throw new Exception ('No signing keys found in IdP metadata. ' );
251250 }
252251
253- $ alg = $ artifactResponse ->getSignature ()->getSignedInfo ()->getSignatureMethod ()->getAlgorithm ();
254- $ signatureMethod = $ alg instanceof AnyURIValue ? $ alg ->getValue () : (string ) $ alg ;
252+ $ signatureMethod = $ artifactResponse
253+ ->getSignature ()
254+ ->getSignedInfo ()
255+ ->getSignatureMethod ()
256+ ->getAlgorithm ()
257+ ->getValue ();
255258
256259 $ factory = new SignatureAlgorithmFactory ();
257260
You can’t perform that action at this time.
0 commit comments