开发者

Solution for handling Spring security session Id in different wed apps

I have 2 web application on different wed servers: Core (Spring 3.0.5, Spring Security 3.0.5, PostgreSQL) and Red5

I need to develop the next workflow:

  1. User logins in Core
  2. System returns web page with simple html and flex app
  3. User streams audio on Red5 by flex app
  4. Red5 uses Core to check if user is logged in
  5. Red5 sends file to Core
  6. Core identifies that a file come from appropriate user
  7. Core stores file in related user's folder

I have configured Spring Security at Core, flex client which streams audio to Red5, servlet on Red5 which stores audio in flv file and have access to this file.

My idea is:

  1. In case of successful login Core returns sessionId
  2. At the end of recording flex app sends sessionId to Red5 server
  3. Red5: makes http get request with sessionId to Core
  4. Core returns "true" in case of user was logged in
  5. Red5: makes http post request with 2 parameters: file and sessionId
  6. Core identifies user and stores file in user's folder

Please provide mechanism how to get this sessionId, how to check if user is logged in and how to开发者_运维技巧 get user by this sessionId or better approach to implement described workflow

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜