Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

Joining users to a room ASP.NET

Avatar

Level 1

First off are there any good examples on using ASP.NET with LCCS? The server to server is more focused on hooks and not using the account manager object.

My question though is about sessions. Correct me if I'm wrong but if I create a session object and pass a user into it with the room name it will add the user to the room. If that's right then I need some clarification on the parameters of a session. The objects constructor looks like this - Session(string instance, string account, string room).

What is an instance? The code in the constructor changes it to instance.Replace("#room#", room) which makes me believe it's just the room name.

For the account parameter is that the name I generated for the guest AccountManager object or is it the authToken?

This should be self explanitory but the room parameter is the room name right?

1 Reply

Avatar

Former Community Member

Hi There,

Creating a session only creates a session between your server and the LCCS

service. Through that session you can generate auth tokens, which you pass

to your client apps for them to log in with.

Typical flow is (pseudo-code) :

aM = new AccountManager(ACCOUNT_URL);

aM.login(DEV_USERNAME, DEV_PWD);

sess = aM.getSession(ROOM_NAME);

// generate a token for a user

sess.getAuthenticationToken(ACCOUNT_SECRET, USER_NAME, USER_ID, USER_ROLE);

Check the developer guide for more details :

http://learn.adobe.com/wiki/display/lccs/6.4Authenticationsetup

nigel