WebRTC对oauth凭据类型使用静态身份验证密钥
我的服务器配置为使用WebRTC对oauth凭据类型使用静态身份验证密钥,oauth,webrtc,Oauth,Webrtc,我的服务器配置为使用static auth secret,因此我更改了WebRTC Trickle ICE示例,将oauth用作凭据类型,我希望这将允许我使用static auth secret进行身份验证 但是,我现在得到了这个错误: TypeError: RTCPeerConnection constructor: 'oauth' (value of 'credentialType' member of RTCIceServer) is not a valid value for enume
static auth secret
,因此我更改了WebRTC Trickle ICE示例,将oauth
用作凭据类型,我希望这将允许我使用static auth secret进行身份验证
但是,我现在得到了这个错误:
TypeError: RTCPeerConnection constructor: 'oauth' (value of 'credentialType' member of RTCIceServer) is not a valid value for enumeration RTCIceCredentialType.
这就是我的iceServer对象现在的样子:
const iceServer = {
urls: [urlInput.value],
credential: passcodeInput.value,
credentialType: 'oauth'
};
这没有意义,因为文档中说凭证类型可以是oauth或password。oauth凭证类型在浏览器中缺乏实现
它可能会在以后作为一个例子出现
目前,在部署的WebRTC浏览器实现中,无法通过OAuth向ICE服务器进行身份验证。请参阅相关的浏览器错误:
password
ICE服务器身份验证的临时凭证。注意:这个RESTAPI不是默认提供的,它是由用户创建的
可找到更详细的说明