|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
sso protectionI'm thinking of using josso and passing the session id into the swf but josso is for http and this isn't a natural method since red5 can't obtain the user principle object. Any suggestions? Hugh Sell your car for just $40 at CarPoint.com.au It's simple! _______________________________________________ Red5 mailing list Red5@... http://osflash.org/mailman/listinfo/red5_osflash.org |
|
|
Re: sso protectionCreate a session-id for the user with some scripting.
(1)
Put the session-id in a database
Pass the session-id to your SWF
Pass the session-id from the SWF to Red5
Have Red5 check the session-id against the database
(either direct using a mysql-connector or AMF call to an AMF gateway (e.g.
AMFPHP/SabreAMF or something else) and validate it against the
database
Et voila ; you now know on your Red5 server that the user
validated succesfully at mark (1).
Edit: After reading about Josso it seems that Josso does
most of the steps described in this mail :)
I'm not sure tho if Josso integrates with
Red5.
If you don't mind calling mysql (or any other db) directly
from Red5 then you'd only need to write a simple jsp page, have it served by
Tomcat or Jetty and have Red5 checking the db for the session. This is probably
the easiest to setup for java-developers and the fastest / most efficient as
well.
I myself don't like a streaming server like Red5 to poke
in my database so I'd let Red5 call a (middletier) script and the script is
allowed to poke in the db and insert/update/whatever records. This also allowes
scaling of the infrastructure ; with 1 central scripting webserver (eg
jsp/php/python/dot.net) you can serve multiple Red5-streaming servers
etc.
Regards,
Walter
_______________________________________________ Red5 mailing list Red5@... http://osflash.org/mailman/listinfo/red5_osflash.org |
| Free Forum Powered by Nabble | Forum Help |