From c9f2c808e6cbca720e3db263d3a97e3881c3d454 Mon Sep 17 00:00:00 2001 From: Loïc Collignon Date: Tue, 9 Jan 2018 17:17:14 +0100 Subject: improve the debug tools MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I6152e3719944db82f5907ac4cc6038508e526e51 Signed-off-by: Loïc Collignon --- .../htdocs/identity/identity-binding.js | 20 +++++++- agl-identity-service/htdocs/identity/index.html | 53 ++++++++++++++-------- 2 files changed, 52 insertions(+), 21 deletions(-) (limited to 'agl-identity-service/htdocs/identity') diff --git a/agl-identity-service/htdocs/identity/identity-binding.js b/agl-identity-service/htdocs/identity/identity-binding.js index bd45c17..55dbb96 100644 --- a/agl-identity-service/htdocs/identity/identity-binding.js +++ b/agl-identity-service/htdocs/identity/identity-binding.js @@ -131,12 +131,28 @@ function callbinder(api, verb, query) { ws.call(api+"/"+verb, query).then(replyok, replyerr); } -function fake_auth() { +function subscribe() { + callbinder("identity", "subscribe", {}); +} + +function getIdentity() { + callbinder("identity", "get", {}); +} + +function logout() { + callbinder("identity", "logout", {}); +} + +function fakeAuth() { var e = document.getElementById("fake-auth-kind"); var arg = { "kind": e.options[e.selectedIndex].value, - "key": document.getElementById("fake-auth-key").value + "key": (document.getElementById("fake-auth-key").value === "custom" ? document.getElementById("fake-auth-key-custom").value : document.getElementById("fake-auth-key").value) } callbinder("identity", "fake-auth", arg); } + +function updateNfcUi() { + document.getElementById('fake-auth-key-custom').disabled = !(document.getElementById("fake-auth-key").value === "custom"); +} diff --git a/agl-identity-service/htdocs/identity/index.html b/agl-identity-service/htdocs/identity/index.html index d5432fb..bbeee51 100644 --- a/agl-identity-service/htdocs/identity/index.html +++ b/agl-identity-service/htdocs/identity/index.html @@ -1,26 +1,41 @@ - - agl-service-identity - - - - - - - + + agl-service-identity + + + + + + +
-

agl-service-identity

-

+

agl-service-identity

+

-

- +

+ -- cgit 1.2.3-korg