forked from w3c/webref
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFedCM.idl
39 lines (32 loc) · 1.03 KB
/
FedCM.idl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into webref
// (https://github.com/w3c/webref)
// Source: Federated Credential Management API (https://fedidcg.github.io/FedCM/)
[Exposed=Window, SecureContext]
interface IdentityCredential : Credential {
readonly attribute USVString? token;
};
partial dictionary CredentialRequestOptions {
IdentityCredentialRequestOptions identity;
};
dictionary IdentityCredentialRequestOptions {
sequence<IdentityProviderConfig> providers;
};
dictionary IdentityProviderConfig {
required USVString configURL;
required USVString clientId;
USVString nonce;
};
dictionary IdentityCredentialLogoutRPsRequest {
required USVString url;
required USVString accountId;
};
[Exposed=Window, SecureContext]
partial interface IdentityCredential {
static Promise<undefined> logoutRPs(sequence<IdentityCredentialLogoutRPsRequest> logoutRequests);
};
[Exposed=Window, SecureContext]
interface IdentityProvider {
static undefined login();
static undefined logout();
};