WebRTC using coTurn oAuth authentication mechanism

693 views
Skip to first unread message

James

unread,
Aug 3, 2015, 1:04:45 AM8/3/15
to TURN Server (Open-Source project)
I have coTurn setup with oAuth.

Normally we would use for normal authentication:

var configuration = {
  'iceServers': [{
    'url': 'turn:turn.example.org',
    'username': 'user',
    'credential': 'password'
  }]
};
var pc = new RTCPeerConnection(configuration)

Reading the oAuth doc, I believe this is how to authenticate using oAuth.

var configuration = {
  'iceServers': [{
    'url': 'turn:turn.example.org',
    'username': 'kid',
    'credential': 'oAuthToken',
    'credentialType': 'token'
  }]
};

Using the above doesn't work and can't find the user "kid".

Is it possible to use oAuth with WebRTC?

Oleg Moskalenko

unread,
Aug 3, 2015, 1:19:19 AM8/3/15
to James, TURN Server (Open-Source project)
I do not think that current WebRTC implementation supports oAuth authentication.

Oleg
> --
> You received this message because you are subscribed to the Google Groups
> "TURN Server (Open-Source project)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
> turn-server-project-rfc57...@googlegroups.com.
> To post to this group, send email to
> turn-server-project...@googlegroups.com.
> Visit this group at
> http://groups.google.com/group/turn-server-project-rfc5766-turn-server.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages