File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
UserAuthentication/Server Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 3434using Opc . Ua ;
3535using Opc . Ua . Server ;
3636using System . Linq ;
37+ using Microsoft . Extensions . Logging ;
3738
3839namespace AggregationServer
3940{
Original file line number Diff line number Diff line change @@ -306,11 +306,11 @@ private void VerifyCertificate(X509Certificate2 certificate)
306306
307307 // create an exception with a vendor defined sub-code.
308308 throw new ServiceResultException ( new ServiceResult (
309- e ,
310309 StatusCodes . BadIdentityTokenRejected ,
311310 "InvalidCertificate" ,
312311 Namespaces . UserAuthentication ,
313- new LocalizedText ( info ) ) ) ;
312+ new LocalizedText ( info ) ,
313+ e ) ) ;
314314 }
315315 }
316316
@@ -353,11 +353,11 @@ private SecurityToken ParseAndVerifyKerberosToken(byte[] tokenData)
353353
354354 // create an exception with a vendor defined sub-code.
355355 throw new ServiceResultException ( new ServiceResult (
356- e ,
357356 StatusCodes . BadIdentityTokenRejected ,
358357 "InvalidKerberosToken" ,
359358 Namespaces . UserAuthentication ,
360- new LocalizedText ( info ) ) ) ;
359+ new LocalizedText ( info ) ,
360+ e ) ) ;
361361 }
362362 finally
363363 {
You can’t perform that action at this time.
0 commit comments