blob: b3ddb54e0c646ce5cf6e6aee53e46a4938e56967 (
plain)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
// 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/)
dictionary IdentityProviderWellKnown {
required sequence<USVString> provider_urls;
};
dictionary IdentityProviderIcon {
required USVString url;
unsigned long size;
};
dictionary IdentityProviderBranding {
USVString background_color;
USVString color;
sequence<IdentityProviderIcon> icons;
};
dictionary IdentityProviderAPIConfig {
required USVString accounts_endpoint;
required USVString client_metadata_endpoint;
required USVString id_assertion_endpoint;
IdentityProviderBranding branding;
};
dictionary IdentityProviderAccount {
required USVString id;
required USVString name;
required USVString email;
USVString given_name;
sequence<USVString> approved_clients;
};
dictionary IdentityProviderAccountList {
sequence<IdentityProviderAccount> accounts;
};
dictionary IdentityProviderClientMetadata {
USVString privacy_policy_url;
USVString terms_of_service_url;
};
dictionary IdentityProviderToken {
required USVString token;
};
[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();
};
|