File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,6 @@ export default function createAuthorizerHandler(
1818 context : Context ,
1919 callback : Callback < APIGatewayAuthorizerResult > ,
2020 ) : void => {
21- deps . logger . info ( { description : "Received authorizer event" , event } ) ;
22-
2321 checkCertificateExpiry ( event . requestContext . identity . clientCert , deps ) ;
2422
2523 getSupplier ( event . headers , deps )
@@ -135,9 +133,9 @@ async function checkCertificateExpiry(
135133) : Promise < void > {
136134 deps . logger . info ( {
137135 description : "Client certificate details" ,
138- issuerDN : certificate ?. issuerDN ,
139- subjectDN : certificate ?. subjectDN ,
140- validity : certificate ?. validity ,
136+ issuerDN : certificate ?. issuerDN || "-" ,
137+ subjectDN : certificate ?. subjectDN || "-" ,
138+ validity : certificate ?. validity || "-" ,
141139 } ) ;
142140
143141 if ( ! certificate ) {
You can’t perform that action at this time.
0 commit comments