Skip to content

Commit

Permalink
#71 Lowercase user login extracted from certificate
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Oct 2, 2018
1 parent 32e69f3 commit f5ab423
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/org/elastic4play/controllers/Authenticated.scala
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ class Authenticated(
.collectFirst {
case rdn if rdn.getType.toLowerCase == cf
logger.debug(s"Found user id ${rdn.getValue} in dn:$cf")
userSrv.getFromId(request, rdn.getValue.toString)
userSrv.getFromId(request, rdn.getValue.toString.toLowerCase)
}
.orElse {
logger.debug(s"Field $cf not found in certificate subject")
Expand All @@ -205,7 +205,7 @@ class Authenticated(
fieldValue san.asScala.collectFirst {
case CertificateSAN(name, value) if name.toLowerCase == cf
logger.debug(s"Found user id $value in san:$cf")
userSrv.getFromId(request, value)
userSrv.getFromId(request, value.toLowerCase)
}
} yield fieldValue
}
Expand Down

0 comments on commit f5ab423

Please sign in to comment.