ASP.NET SDK Token Roles Fix

Discussion for other Server-Sided OpenTok libraries

ASP.NET SDK Token Roles Fix

Postby DaMuffinMon » Tue Nov 15, 2011 5:41 am

When testing the archiving stuff I needed to change my role to a moderator. This line in the GenerateToken function of the .NET SDK seems to be incorrect -

string dataString = string.Format("session_id={0}&create_time={1}&permissions={2}&nonce={3}", sessionId, createTime, permissions, nonce);

Where it says &permissions= I think this should say &role=

Changing that worked for me. As this SDK was written a year ago it seems TokBox may have changed some of the variable names etc.

Regards,

Rob.
Was this post helpful? (1)
DaMuffinMon
 
Posts: 5
Joined: Tue Nov 15, 2011 5:29 am
Thumbs Up: 1

Re: ASP.NET SDK Token Roles Fix

Postby jtsai » Mon Nov 21, 2011 12:12 pm

Thanks for reporting this!

John
Was this post helpful? (0)
User avatar
jtsai
 
Posts: 4541
Joined: Wed Sep 14, 2011 3:00 pm
Thumbs Up: 195

Re: ASP.NET SDK Token Roles Fix

Postby jaimepremy » Mon Dec 05, 2011 4:18 pm

So what? should we use &permisson or &role ???
Was this post helpful? (0)
jaimepremy
 
Posts: 8
Joined: Mon Dec 05, 2011 2:41 pm
Thumbs Up: 1

Re: ASP.NET SDK Token Roles Fix

Postby mumm » Mon Dec 05, 2011 6:01 pm

Hi Jaime,

You should use &role. We have updated the .NET SDK availble here: https://github.com/opentok/Opentok-.NET-SDK.

Jon
Was this post helpful? (1)
mumm
 
Posts: 392
Joined: Wed May 18, 2011 12:10 am
Thumbs Up: 29

Re: ASP.NET SDK Token Roles Fix

Postby jaimepremy » Mon Dec 05, 2011 8:25 pm

Thank u!!
Was this post helpful? (0)
jaimepremy
 
Posts: 8
Joined: Mon Dec 05, 2011 2:41 pm
Thumbs Up: 1

Re: ASP.NET SDK Token Roles Fix

Postby rimple » Fri Nov 02, 2012 6:16 am

Hi Rob

I have read your post and you have used Opentok for .net.
We are also using opentok sdk of .Net which works fine in our local environment (my pc) but that not works proper in our live environment.
In live we got the error i.e "404 Archive not found" didn't get why this problem occure. I would like to know you that we are using Production environment
of OpenTok.

So please give any hint asap...

Thanks
Was this post helpful? (0)
rimple
 
Posts: 41
Joined: Wed Oct 17, 2012 4:21 am
Thumbs Up: 0


Return to Other Server API



Who is online

Users browsing this forum: No registered users and 1 guest

cron