in app/auth/BearerTokenAuth.scala [130:147]
def loadInKey():Try[JWKSet] = Try {
loadTime = System.currentTimeMillis / 1000
val isRemoteMatcher = "^https*:".r.unanchored
signingCertPath match {
case isRemoteMatcher(_*) => {
logger.info(s"Loading JWKS from $signingCertPath")
val set = loadRemoteJWKSet(signingCertPath)
logger.info(s"Loaded in ${set.getKeys.toArray.length} keys from endpoint")
set
}
case _ => {
logger.info(s"Loading JWKS from local path $signingCertPath")
loadLocalJWKSet(signingCertPath)
}
}
}