add tamper protection
This commit is contained in:
@@ -45,7 +45,7 @@ object Session {
|
||||
|
||||
//if not passed in ENV, then we shall generate and print
|
||||
private fun makeRsaJsonWebKey(publicKey: String, privateKey: String): RsaJsonWebKey {
|
||||
|
||||
logger.warn("making KeyPair from Config \n$publicKey\n\n$privateKey")
|
||||
val newPublicKey = readPublicKey(publicKey)
|
||||
val newPrivateKey = readPrivateKey(privateKey)
|
||||
val rsa = PublicJsonWebKey.Factory.newPublicJwk(newPublicKey) as RsaJsonWebKey
|
||||
@@ -143,9 +143,6 @@ object Session {
|
||||
setProperty("datasource.db.password", appConfig.dbPass())
|
||||
setProperty("datasource.db.url", appConfig.dbUrl())
|
||||
setProperty("ebean.migration.run", appConfig.dbRunMigration().toString())
|
||||
if (appConfig.seedSqlFile().isPresent) {
|
||||
setProperty("ebean.ddl.seedSql", appConfig.seedSqlFile().get())
|
||||
}
|
||||
})
|
||||
tenantMode = TenantMode.PARTITION
|
||||
currentTenantProvider = CurrentTenantProvider { currentUser.get().tenant }
|
||||
|
||||
Reference in New Issue
Block a user