def loadInKey()

in app/auth/BearerTokenAuth.scala [100:113]


  def loadInKey():Try[JWKSet] = Try {
    val isRemoteMatcher = "^https*:".r.unanchored

    if(isRemoteMatcher.matches(signingCertPath)) {
      logger.info(s"Loading JWKS from $signingCertPath")

      val set = loadRemoteJWKSet(signingCertPath)
      logger.info(s"Loaded in ${set.getKeys.toArray.length} keys from endpoint")
      set
    } else {
      logger.info(s"Loading JWKS from local path $signingCertPath")
      loadLocalJWKSet(signingCertPath)
    }
  }