Avatar

Level 4

hey guys

i'm building the front end of a new cocomo app, i have some php guys doing the back end for a system they've already built (let's call it 'squirrel'). now squirrel has got its own login system already so we're planning on doing the php > cocomo api backend login, loosely documented by the attached img (taken from the afcs.pdf doc').

now, on the one hand i've got a complete list of people with unique squirrelIDs from squirrel and on the other when someone comes into a cocomo room/session i've got a cocomo assigned ID.

now when users in the cocomo session post txt chat snippets, i need to listen for the posting event and save that chat snippet into the squirrel back end assigned to the correct squirrel user (only people in the official squirrel list are allowed access to the cocomo chat) meaning what i have to do is crosscheck a cocomo user id against a squirrel user id [in order to find the correct user and save the chat snippet into the squirrel back end tied to the correct squirrel user id]

now i can see of no way of cross checking a cocomo id against a squirrel id from the front end, so i'm assuming that either i'm wrong about that or that the only way to do this is via the back end auth system.

the question then: when we log a user into cocomo using the back end system documented in the attached image, can we get the cocomo user id at that point? or is there another way of doing this, am i missing something?