Commit 260daf38 authored by Renato Figueiro Maia's avatar Renato Figueiro Maia

[OPENBUS-2638] [Lua] Inclusão de suporte a serialização de dados para...

[OPENBUS-2638] [Lua] Inclusão de suporte a serialização de dados para autenticação compartilhada em formato interoperável.
- Ajustes no assistente para refletir as alterações no login por autenticação compartilhada.

git-svn-id: https://subversion.tecgraf.puc-rio.br/engdist/openbus/sdk/lua/branches/02_00_01@158099 ae0415b3-e90b-0410-900d-d0be9363c56b
parent 71d6a803
......@@ -191,11 +191,6 @@ do
local conn = self.connection
return retrycall(self, retries, interval, "StartSharedAuth", conn.startSharedAuth, conn)
end
function Assistant:cancelSharedAuth(attempt, retries, interval)
local conn = self.connection
return retrycall(self, retries, interval, "StartSharedAuth", conn.cancelSharedAuth, conn, attempt)
end
end
function Assistant:shutdown()
......
......@@ -65,23 +65,27 @@ local loginways = {
loginByPassword = function() return user, password end,
loginByCertificate = function() return system, syskey end,
loginBySharedAuth = function()
return { -- dummy login process object
login = function()
return {
id = "60D57646-33A4-4108-88DD-AE9B7A9E3C7A",
entity = system,
}, 1
end,
return {
busid = busid,
attempt = { -- dummy login process object
login = function()
return {
id = "60D57646-33A4-4108-88DD-AE9B7A9E3C7A",
entity = system,
}, 1
end,
cancel = function () end,
},
secret = "fake secret",
cancel = function () end,
},
"fake secret"
}
end,
}
local function assertlogged(a)
-- check constant attributes
assert(a.orb == orb)
-- check the failure of 'startSharedAuth'
a:cancelSharedAuth(a:startSharedAuth())
a:startSharedAuth():cancel()
-- check the login is valid to perform calls
local OfferRegistry = OpenBusContext:getOfferRegistry()
assert(OfferRegistry ~= nil)
......
Markdown is supported
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