File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3838 "@types/gulp" : " ^4.0.6" ,
3939 "@types/gulp-mocha" : " 0.0.32" ,
4040 "@types/mocha" : " ^5.2.6" ,
41- "@types/node" : " >=20.11.20 " ,
41+ "@types/node" : " 25.5.0 " ,
4242 "@types/yargs" : " ^15.0.5" ,
4343 "grpc-health-check" : " file:../grpc-health-check" ,
4444 "gts" : " ^5.0.1" ,
Original file line number Diff line number Diff line change @@ -225,7 +225,14 @@ export class AuthenticatedPrincipal implements PrincipalRule {
225225 }
226226 }
227227 }
228- return this . nameMatcher . apply ( info . peerCertificate . subject . CN ) ;
228+ if ( info . peerCertificate . subject . CN ) {
229+ if ( Array . isArray ( info . peerCertificate . subject . CN ) ) {
230+ return info . peerCertificate . subject . CN . some ( entry => this . nameMatcher ! . apply ( entry ) ) ;
231+ } else {
232+ return this . nameMatcher . apply ( info . peerCertificate . subject . CN ) ;
233+ }
234+ }
235+ return false ;
229236 }
230237 toString ( ) : string {
231238 return `Authenticated(principal=${ this . nameMatcher ?. toString ( ) ?? null } )` ;
You can’t perform that action at this time.
0 commit comments