Search code examples
authenticationsymfony1sfdoctrineguard

Symfony: Routing 'secure' and 'login' actions to another application


Suppose we have 3 apps - appMain, app1 and app2.

Applications 1 and 2 are protected, they have is_secure: true and everything works fine with sfDoctrineGuard plugin.

A behavior I want to achieve is when a user is not authenticated, current application to forward him to another one, say appMain with defined module and action.

Is that possible? Or can someone tell me where to dig about security mechanisms in symfony?


Solution

  • Ok, now I got this working. First, application forwards to secure module/action and in that action it redirects to an url of main application, that handles authentication and redirects back again.

    Thanks, guys.