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

Consumed token on Erizo.Connection call #59

Closed
dennismartensson opened this issue Nov 18, 2013 · 7 comments
Closed

Consumed token on Erizo.Connection call #59

dennismartensson opened this issue Nov 18, 2013 · 7 comments

Comments

@dennismartensson
Copy link
Contributor

I am getting Consumed token directly on Erizo.Connection call. Any Ide what I am doing wrong?

/Dennis

@dennismartensson
Copy link
Contributor Author

here is a log

eyJ0b2tlbklkIjoiNTI4YTJiNGI2NGQxYmUwYjMyMDAwMDAxIiwiaG9zdCI6IjIxMi43MS4yNDkuMTA3OjgwODAiLCJzaWduYXR1cmUiOiJOV0kyT1RZek5ERmpPVGhtTW1RNVptVm1NV0k1WVdGaU5UUmxZalV6Wm1JME16bGxNREV4WkE9PSJ9 broadcast.js:390
DEBUG: Requested access to local media erizo.js:6757
INFO: User has granted access to local media. erizo.js:6757
DEBUG: Event: access-accepted erizo.js:6757
DEBUG: Creating URL from stream [object MediaStream] erizo.js:6757
INFO: Connected to room 528a1cb41f861d1026000008 erizo.js:6757
DEBUG: Event: room-connected erizo.js:6757
DEBUG: Stable! erizo.js:6757
DEBUG: Changed v=0
o=- 4600463256867700799 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE audio video
a=msid-semantic: WMS l05bQgkIeIV8oVWZXjo1VyEuxzXjvSe0bmsM
m=audio 1 RTP/SAVPF 111 103 104 0 8 106 105 13 126
c=IN IP4 0.0.0.0
a=rtcp:1 IN IP4 0.0.0.0
a=ice-ufrag:35jUsldFUub+MSTf
a=ice-pwd:ylzKwhmdM+BzoXjLOErAP0nZ
a=ice-options:google-ice
a=fingerprint:sha-256 9A:40:19:B8:C9:2C:80:75:F6:CD:11:7E:F4:B7:DA:ED:72:C6:78:EA:BD:8E:AB:A7:30:52:0A:83:01:47:CB:8B
a=setup:actpass
a=mid:audio
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=sendrecv
a=rtcp-mux
a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:RB33wVyPBGwTXEKJOORwOwzY7sCEfxzvVhwQJ9Q8
a=rtpmap:111 opus/48000/2
a=fmtp:111 minptime=10
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:126 telephone-event/8000
a=maxptime:60
a=ssrc:798259079 cname:IM5tRTZiuZg6TQCN
a=ssrc:798259079 msid:l05bQgkIeIV8oVWZXjo1VyEuxzXjvSe0bmsM l05bQgkIeIV8oVWZXjo1VyEuxzXjvSe0bmsMa0
a=ssrc:798259079 mslabel:l05bQgkIeIV8oVWZXjo1VyEuxzXjvSe0bmsM
a=ssrc:798259079 label:l05bQgkIeIV8oVWZXjo1VyEuxzXjvSe0bmsMa0
m=video 1 RTP/SAVPF 100 116 117
c=IN IP4 0.0.0.0
a=rtcp:1 IN IP4 0.0.0.0
a=ice-ufrag:35jUsldFUub+MSTf
a=ice-pwd:ylzKwhmdM+BzoXjLOErAP0nZ
a=ice-options:google-ice
a=fingerprint:sha-256 9A:40:19:B8:C9:2C:80:75:F6:CD:11:7E:F4:B7:DA:ED:72:C6:78:EA:BD:8E:AB:A7:30:52:0A:83:01:47:CB:8B
a=setup:actpass
a=mid:video
a=extmap:2 urn:ietf:params:rtp-hdrext:toffset
a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=sendrecv
a=rtcp-mux
a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:RB33wVyPBGwTXEKJOORwOwzY7sCEfxzvVhwQJ9Q8
a=rtpmap:100 VP8/90000
a=rtcp-fb:100 ccm fir
a=rtcp-fb:100 nack
a=rtcp-fb:100 goog-remb
a=rtpmap:116 red/90000
a=rtpmap:117 ulpfec/90000
a=ssrc:2376317826 cname:IM5tRTZiuZg6TQCN
a=ssrc:2376317826 msid:l05bQgkIeIV8oVWZXjo1VyEuxzXjvSe0bmsM l05bQgkIeIV8oVWZXjo1VyEuxzXjvSe0bmsMv0
a=ssrc:2376317826 mslabel:l05bQgkIeIV8oVWZXjo1VyEuxzXjvSe0bmsM
a=ssrc:2376317826 label:l05bQgkIeIV8oVWZXjo1VyEuxzXjvSe0bmsMv0
erizo.js:6757
DEBUG: PeerConnection: 104 erizo.js:6757
DEBUG: PeerConnection: 104 erizo.js:6757
DEBUG: PeerConnection: 104 erizo.js:6757
DEBUG: PeerConnection: 104 erizo.js:6757
DEBUG: PeerConnection: 104 erizo.js:6757
DEBUG: PeerConnection: 104 erizo.js:6757
DEBUG: PeerConnection: 104 erizo.js:6757
DEBUG: PeerConnection: 104 erizo.js:6757
XHR finished loading: "http://indievid.org/testUpSpeed?cache=1513". testUpSpeed.js:41
DEBUG: PeerConnection: 104 erizo.js:6757
DEBUG: State: complete erizo.js:6757
DEBUG: Sending OFFER: v=0
o=- 4600463256867700799 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE audio video
a=msid-semantic: WMS l05bQgkIeIV8oVWZXjo1VyEuxzXjvSe0bmsM
m=audio 50249 RTP/SAVPF 111 103 104 0 8 106 105 13 126
c=IN IP4 192.168.1.224
a=rtcp:50249 IN IP4 192.168.1.224
a=candidate:3230924481 1 udp 2113937151 192.168.1.224 50249 typ host generation 0
a=candidate:3230924481 2 udp 2113937151 192.168.1.224 50249 typ host generation 0
a=candidate:2383413809 1 tcp 1509957375 192.168.1.224 0 typ host generation 0
a=candidate:2383413809 2 tcp 1509957375 192.168.1.224 0 typ host generation 0
a=ice-ufrag:35jUsldFUub+MSTf
a=ice-pwd:ylzKwhmdM+BzoXjLOErAP0nZ
a=ice-options:google-ice
a=fingerprint:sha-256 9A:40:19:B8:C9:2C:80:75:F6:CD:11:7E:F4:B7:DA:ED:72:C6:78:EA:BD:8E:AB:A7:30:52:0A:83:01:47:CB:8B
a=setup:actpass
a=mid:audio
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=sendrecv
a=rtcp-mux
a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:RB33wVyPBGwTXEKJOORwOwzY7sCEfxzvVhwQJ9Q8
a=rtpmap:111 opus/48000/2
a=fmtp:111 minptime=10
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:126 telephone-event/8000
a=maxptime:60
a=ssrc:798259079 cname:IM5tRTZiuZg6TQCN
a=ssrc:798259079 msid:l05bQgkIeIV8oVWZXjo1VyEuxzXjvSe0bmsM l05bQgkIeIV8oVWZXjo1VyEuxzXjvSe0bmsMa0
a=ssrc:798259079 mslabel:l05bQgkIeIV8oVWZXjo1VyEuxzXjvSe0bmsM
a=ssrc:798259079 label:l05bQgkIeIV8oVWZXjo1VyEuxzXjvSe0bmsMa0
m=video 50249 RTP/SAVPF 100 116 117
c=IN IP4 192.168.1.224
a=rtcp:50249 IN IP4 192.168.1.224
a=candidate:3230924481 1 udp 2113937151 192.168.1.224 50249 typ host generation 0
a=candidate:3230924481 2 udp 2113937151 192.168.1.224 50249 typ host generation 0
a=candidate:2383413809 1 tcp 1509957375 192.168.1.224 0 typ host generation 0
a=candidate:2383413809 2 tcp 1509957375 192.168.1.224 0 typ host generation 0
a=ice-ufrag:35jUsldFUub+MSTf
a=ice-pwd:ylzKwhmdM+BzoXjLOErAP0nZ
a=ice-options:google-ice
a=fingerprint:sha-256 9A:40:19:B8:C9:2C:80:75:F6:CD:11:7E:F4:B7:DA:ED:72:C6:78:EA:BD:8E:AB:A7:30:52:0A:83:01:47:CB:8B
a=setup:actpass
a=mid:video
a=extmap:2 urn:ietf:params:rtp-hdrext:toffset
a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=sendrecv
a=rtcp-mux
a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:RB33wVyPBGwTXEKJOORwOwzY7sCEfxzvVhwQJ9Q8
a=rtpmap:100 VP8/90000
a=rtcp-fb:100 ccm fir
a=rtcp-fb:100 nack
a=rtcp-fb:100 goog-remb
a=rtpmap:116 red/90000
a=rtpmap:117 ulpfec/90000
a=ssrc:2376317826 cname:IM5tRTZiuZg6TQCN
a=ssrc:2376317826 msid:l05bQgkIeIV8oVWZXjo1VyEuxzXjvSe0bmsM l05bQgkIeIV8oVWZXjo1VyEuxzXjvSe0bmsMv0
a=ssrc:2376317826 mslabel:l05bQgkIeIV8oVWZXjo1VyEuxzXjvSe0bmsM
a=ssrc:2376317826 label:l05bQgkIeIV8oVWZXjo1VyEuxzXjvSe0bmsMv0
erizo.js:6757
error: 1 error unauthorized

what do you think @aalonsog

@dennismartensson
Copy link
Contributor Author

When running room.publish(localStream);

unauthorized... Any ide way this can happen?

@dennismartensson
Copy link
Contributor Author

Its this test
if (!socket.user.permissions[Permission.PUBLISH]) {
callback('error', 'unauthorized');
return;
}

in erizoController.js that failes. What can be the reason for my socket note having the right permissions? Do I have to set the rolle and user to any thing specifik?

thanks

Dennis

@jcague
Copy link
Contributor

jcague commented Nov 18, 2013

Hi Dennis,

We've recently changed the code to support this kind of roles. If you're
using the basic example application you would only need to build again nuve
and basic example. It will update the licode_config.js file with info about
the roles.

If it does not work for you you can also manually copy the line at
https://github.com/ging/licode/blob/master/scripts/licode_default.js#L46 to
your licode_config.js file in the root path.

Cheers,
Javier.

On 18 November 2013 19:23, Dennis notifications@github.com wrote:

Its this test
if (!socket.user.permissions[Permission.PUBLISH]) {
callback('error', 'unauthorized');
return;
}

in erizoController.js that failes. What can be the reason for my socket
note having the right permissions? Do I have to set the rolle and user to
any thing specifik?

thanks

Dennis


Reply to this email directly or view it on GitHubhttps://github.com//issues/59#issuecomment-28723642
.

@dennismartensson
Copy link
Contributor Author

Not its fixed thanks!

@dennismartensson
Copy link
Contributor Author

Hi, I where able to use this for some time but now when I try todo any thing like N.API.getRooms in my licode server i get back that the request is 401 Unauthorized?

Way do this happen on the server side? How do I keep the server authorized?
@jcague

Thank you

@dennismartensson
Copy link
Contributor Author

update and rebuild fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants