Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove RTCIceCredentialType dictionary #13915

Merged
merged 1 commit into from
Mar 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions files/en-us/_redirects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 0 additions & 6 deletions files/en-us/_wikihistory.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/mozilla/firefox/releases/68/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
35 changes: 0 additions & 35 deletions files/en-us/web/api/rtcicecredentialtype/index.md

This file was deleted.

12 changes: 7 additions & 5 deletions files/en-us/web/api/rtciceserver/credentialtype/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

Expand All @@ -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

Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/rtciceserver/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down
1 change: 0 additions & 1 deletion files/jsondata/GroupData.json
Original file line number Diff line number Diff line change
Expand Up @@ -1943,7 +1943,6 @@
"RTCRTPStreamStats"
],
"types": [
"RTCIceCredentialType",
"RTCIceTransportPolicy",
"RTCBundlePolicy",
"RTCRtcpMuxPolicy",
Expand Down