Skip to main content
Participant
July 28, 2011
Question

Authenticate using a token

  • July 28, 2011
  • 1 reply
  • 853 views

in this F LASH M EDIA SERV ER 4.0 DEVELOPER’S GUIDE document,

The control flow is as follows:


1The client SWF requests an authentication token from a third party.
2The third party returns the token to the client.
3The client sends the token with its connection request.
4Flash Media Server verifies the token with the third party system.
5Flash Media Server accepts the connection.

but not clear ,now ,i have token client script and  token server script, next how to do?

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    August 10, 2011

    What kind of token client script and  token server script do you have? Is client a SWF and server side script you have is SSAS file?

    calmchessplayer
    Inspiring
    August 10, 2011

    well here is how i do it  I use a PHP script to log my user in which also starts a SESSION then i use a URLLOADER in my flash client to execute a PHP script which can read the session and "decode" my users name then I pass their name to my FMS server via the rtmp connection string when onConnectAccept  receives the users name I place it in a "users" Object on the server side from there I can send private messages to that user from the server side or I can reject their connection if I don't like them. Heck i can even use their name to name a recorded file by their username increamenting the name with a number of course so I can have multiple recorded FLV. There so much I can do with this process yeah!

    August 10, 2011

    Umm, so you're saying you don't validate the php session id or any user credentials from the FMS side? What's to prevent anyone from connecting up to the FMS app by providing whatever data they want?