From 672b7474edaa53f10e6524298b2e311e05ef7bad Mon Sep 17 00:00:00 2001 From: Jussi Laako Date: Thu, 3 Apr 2014 14:36:33 +0300 Subject: [PATCH] widl: fix some spec bugs --- widl/signon.widl | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/widl/signon.widl b/widl/signon.widl index fb856cb..792eae2 100644 --- a/widl/signon.widl +++ b/widl/signon.widl @@ -1,3 +1,9 @@ +enum IdentityType { + "application", + "web", + "network" +}; + enum SessionState { "not-started", "resolving-host", @@ -26,10 +32,15 @@ dictionary MechanismQueryResult { DOMString[] mechanisms; }; -interface AuthService : EventTarget { +dictionary IdentityFilterItem { + DOMString key; + DOMString value; +}; + +interface AuthService { Promise queryMethods(); // returns DOMString[] Promise queryMechanisms(); // returns MechanismQueryResult - Promise queryIdentities(IdentityFilter filter); // returns DOMString[] + Promise queryIdentities(IdentityFilterItem[] filter); // returns Identity[] Promise getIdentity(long id); // returns Identity object Promise startSession(Identity identity, DOMString method); // returns AuthSession object Promise clear(); @@ -66,13 +77,14 @@ interface AuthSession : EventTarget { dictionary ACLEntry { - DOMString applicationId; + DOMString sysContext; + DOMString appContext; DOMString method; DOMString[] mechanisms; }; dictionary IdentityInfo { - long type; + IdentityType type; DOMString username; DOMString secret; boolean storeSecret; -- 2.34.1