-
Notifications
You must be signed in to change notification settings - Fork 0
/
FederatedCredential.cljs
75 lines (53 loc) · 2.38 KB
/
FederatedCredential.cljs
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
(ns web.credential.FederatedCredential
"The FederatedCredential interface of the the Credential Management
provides information about credentials from a federated identity
A federated identity provider is an entity that a website trusts
correctly authenticate a user, and that provides an API for that
OpenID Connect is an example of a federated identity provider"
(:refer-clojure :exclude []))
(def constructor
"Constructor.
The FederatedCredential constructor creates a new `web.credential.FederatedCredential` object.
init
Options are:
provider: A `web.USVString`; identifying the credential provider.
See also: `https://developer.mozilla.org/en-US/docs/Web/API/FederatedCredential/FederatedCredential`"
js/FederatedCredential)
(defn provider
"Property.
The provider property of the `web.credential.FederatedCredential`
returns a `web.USVString` containing a credential's federated
provider.
`var provider = FederatedCredential.provider`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/FederatedCredential/provider`"
[this]
(-> this (.-provider)))
(defn set-provider!
"Property.
The provider property of the `web.credential.FederatedCredential`
returns a `web.USVString` containing a credential's federated
provider.
`var provider = FederatedCredential.provider`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/FederatedCredential/provider`"
[this val]
(aset this "provider" val))
(defn protocol
"Property.
The protocol property of the `web.credential.FederatedCredential`
returns a read-only `web.dom.DOMString` containing a credential's
identity protocol. If this property is `js.null`, the protocol
be inferred from the `FederatedCredential.provider` property.
`var protocol = FederatedCredential.protocol`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/FederatedCredential/protocol`"
[this]
(-> this (.-protocol)))
(defn set-protocol!
"Property.
The protocol property of the `web.credential.FederatedCredential`
returns a read-only `web.dom.DOMString` containing a credential's
identity protocol. If this property is `js.null`, the protocol
be inferred from the `FederatedCredential.provider` property.
`var protocol = FederatedCredential.protocol`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/FederatedCredential/protocol`"
[this val]
(aset this "protocol" val))