From 68461aee82b942ceb1b416bd9168b7c6c1b34727 Mon Sep 17 00:00:00 2001 From: Will Bamberg Date: Tue, 15 Mar 2022 10:56:22 -0700 Subject: [PATCH] Remove RTCIceCredentialType --- files/en-us/_redirects.txt | 1 + files/en-us/_wikihistory.json | 6 ---- .../mozilla/firefox/releases/68/index.md | 2 +- .../web/api/rtcicecredentialtype/index.md | 35 ------------------- .../api/rtciceserver/credentialtype/index.md | 12 ++++--- files/en-us/web/api/rtciceserver/index.md | 2 +- files/jsondata/GroupData.json | 1 - 7 files changed, 10 insertions(+), 49 deletions(-) delete mode 100644 files/en-us/web/api/rtcicecredentialtype/index.md diff --git a/files/en-us/_redirects.txt b/files/en-us/_redirects.txt index ca22c39f6665cea..1ddd67a1723188a 100644 --- a/files/en-us/_redirects.txt +++ b/files/en-us/_redirects.txt @@ -8891,6 +8891,7 @@ /en-US/docs/Web/API/RTCIceCandidateType /en-US/docs/Web/API/RTCIceCandidate/type /en-US/docs/Web/API/RTCIceComponent /en-US/docs/Web/API/RTCIceCandidate/component /en-US/docs/Web/API/RTCIceConnectionState /en-US/docs/Web/API/RTCPeerConnection/iceConnectionState +/en-US/docs/Web/API/RTCIceCredentialType /en-US/docs/Web/API/RTCIceServer/credentialType /en-US/docs/Web/API/RTCIceGathererState /en-US/docs/Web/API/RTCIceTransport/gatheringState /en-US/docs/Web/API/RTCIceGatheringState /en-US/docs/Web/API/RTCPeerConnection/iceGatheringState /en-US/docs/Web/API/RTCIceProtocol /en-US/docs/Web/API/RTCIceCandidate/protocol diff --git a/files/en-us/_wikihistory.json b/files/en-us/_wikihistory.json index 796a979b7283518..82583b39561bc68 100644 --- a/files/en-us/_wikihistory.json +++ b/files/en-us/_wikihistory.json @@ -68782,12 +68782,6 @@ "Sheppy" ] }, - "Web/API/RTCIceCredentialType": { - "modified": "2020-10-15T22:20:11.863Z", - "contributors": [ - "Sheppy" - ] - }, "Web/API/RTCIceParameters": { "modified": "2020-10-15T22:06:42.205Z", "contributors": [ diff --git a/files/en-us/mozilla/firefox/releases/68/index.md b/files/en-us/mozilla/firefox/releases/68/index.md index 33b1acc71f9202d..63bd1b8de39e4e4 100644 --- a/files/en-us/mozilla/firefox/releases/68/index.md +++ b/files/en-us/mozilla/firefox/releases/68/index.md @@ -132,7 +132,7 @@ _No changes._ - Removed the non-standard {{DOMxRef("XMLDocument.load()")}} method ({{bug(332175)}}). - Removed the non-standard {{DOMxRef("XMLDocument.async")}} property ({{bug(1328138)}}). -- The {{domxref("RTCIceCredentialType")}} `token` value has been removed ({{bug(1529595)}}). +- The {{domxref("RTCIceServer.credentialType")}} `token` value has been removed ({{bug(1529595)}}). ### HTTP diff --git a/files/en-us/web/api/rtcicecredentialtype/index.md b/files/en-us/web/api/rtcicecredentialtype/index.md deleted file mode 100644 index f9d937ed7c2d9da..000000000000000 --- a/files/en-us/web/api/rtcicecredentialtype/index.md +++ /dev/null @@ -1,35 +0,0 @@ ---- -title: RTCIceCredentialType -slug: Web/API/RTCIceCredentialType -browser-compat: api.RTCIceCredentialType ---- -{{APIRef("WebRTC")}} - -The WebRTC API's **`RTCIceCredentialType`** enumerated string type defines the authentication method used to gain access to an {{Glossary("ICE")}} server identified by an {{domxref("RTCIceServer")}} object. - -## Values - -- `oauth` - - : The {{domxref("RTCIceServer")}} requires the use of OAuth 2.0 to authenticate in order to use the ICE server described. This process is detailed in {{RFC(7635)}}. This property was formerly called `token`. -- `password` - - : The `RTCIceServer` requires a username and password to authenticate prior to using the described ICE server. - -## Obsolete values - -The following values are no longer part of the WebRTC specification, but were in the past. - -- `token` - - : Authenticating with the ICE server requires the use of an OAuth 2.0 token as defined in {{RFC(7635)}}. This value has been renamed to `oauth`. - -## Specifications - -{{Specifications}} - -## Browser compatibility - -{{Compat}} - -## See also - -- {{domxref("RTCIceServer")}} -- {{domxref("RTCIceServer.credential")}} diff --git a/files/en-us/web/api/rtciceserver/credentialtype/index.md b/files/en-us/web/api/rtciceserver/credentialtype/index.md index 983b4b6c4a7efbd..9a9f0ba42c57ba1 100644 --- a/files/en-us/web/api/rtciceserver/credentialtype/index.md +++ b/files/en-us/web/api/rtciceserver/credentialtype/index.md @@ -18,7 +18,7 @@ browser-compat: api.RTCIceServer.credentialType {{APIRef("WebRTC")}} The {{domxref("RTCIceServer")}} dictionary's -**`credentialType`** property is a string value from the [`RTCIceCredentialType` enum](#RTCIceCredentialType_enum) which +**`credentialType`** property is a string value which indicates what type of credential the {{domxref("RTCIceServer.credential")}} value is. The default is `password`. @@ -38,10 +38,12 @@ iceServer.credentialType = newCredentialType; ### Value -The permitted values are found in the {{domxref("RTCIceCredentialType")}} enumerated -string type: +The permitted values are: -{{page("/en-US/docs/Web/API/RTCIceCredentialType", "Values")}} +- `oauth` + - : The {{domxref("RTCIceServer")}} requires the use of OAuth 2.0 to authenticate in order to use the ICE server described. This process is detailed in {{RFC(7635)}}. This property was formerly called `token`. +- `password` + - : The `RTCIceServer` requires a username and password to authenticate prior to using the described ICE server. ## Example @@ -51,7 +53,7 @@ connections. Logging into the TURN server will use the username "webrtc" and the creative password "turnpassword". ```js -myPeerConnection = new RTCPeerConnection({ +const myPeerConnection = new RTCPeerConnection({ iceServers: [ { urls: "turn:turnserver.example.org", // A TURN server diff --git a/files/en-us/web/api/rtciceserver/index.md b/files/en-us/web/api/rtciceserver/index.md index f16ee011a0eb70b..6cbe6e4696114e5 100644 --- a/files/en-us/web/api/rtciceserver/index.md +++ b/files/en-us/web/api/rtciceserver/index.md @@ -20,7 +20,7 @@ The **`RTCIceServer`** dictionary defines how to connect to a single ICE server - {{domxref("RTCIceServer.credential", "credential")}} {{optional_inline}} - : The credential to use when logging into the server. This is only used if the `RTCIceServer` represents a TURN server. - {{domxref("RTCIceServer.credentialType", "credentialType")}} {{optional_inline}} - - : If the `RTCIceServer` represents a TURN server, this attribute specifies what kind of `credential` is to be used when connecting. This must be one of the values defined by the {{domxref("RTCIceCredentialType")}} enum. The default is `password`. + - : If the `RTCIceServer` represents a TURN server, this attribute specifies what kind of `credential` is to be used when connecting. The default is `password`. - {{domxref("RTCIceServer.urls", "urls")}} - : This **required** property is either a single {{domxref("DOMString")}} or an array of {{domxref("DOMString")}}s, each specifying a URL which can be used to connect to the server. - {{domxref("RTCIceServer.username", "username")}} {{optional_inline}} diff --git a/files/jsondata/GroupData.json b/files/jsondata/GroupData.json index 7a0851ce97ea0df..12281e71a683a69 100644 --- a/files/jsondata/GroupData.json +++ b/files/jsondata/GroupData.json @@ -1943,7 +1943,6 @@ "RTCRTPStreamStats" ], "types": [ - "RTCIceCredentialType", "RTCIceTransportPolicy", "RTCBundlePolicy", "RTCRtcpMuxPolicy",