Commit 67b48ce6 authored by Renato Figueiro Maia's avatar Renato Figueiro Maia
Browse files

[OPENBUS-2752] Novas propriedades separadas para configurar tempo de duração...

[OPENBUS-2752] Novas propriedades separadas para configurar tempo de duração de desafio de autenticação por certificado e compartilhada

git-svn-id: https://subversion.tecgraf.puc-rio.br/engdist/openbus/core/branches/02_00_00@162741 ae0415b3-e90b-0410-900d-d0be9363c56b
parent deba77ae
......@@ -432,7 +432,7 @@ function AccessControl:startLoginByCertificate(entity)
secret = secret,
allowLegacyDelegate = true,
}
self.pendingChallenges[logger] = time()+self.challengeTime
self.pendingChallenges[logger] = time()+self.challengeTime+self.expirationGap
log:request(msg.LoginByCertificateInitiated:tag{ entity = entity })
return logger, assert(publickey:encrypt(secret))
end
......@@ -447,7 +447,7 @@ function AccessControl:startLoginBySharedAuth()
secret = secret,
allowLegacyDelegate = login.allowLegacyDelegate,
}
self.pendingChallenges[logger] = time()+self.sharedAuthTime
self.pendingChallenges[logger] = time()+self.sharedAuthTime+self.expirationGap
log:request(msg.LoginBySharedAuthInitiated:tag{
login = login.id,
entity = login.entity,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment