简体   繁体   中英

Cakephp Auth: bypassing login

I am working on a CakePHP application which is part/sub another application that is developed in different technology ( ColdFusion ). Both apps have their own login functionality and they are required. Login functionality in CakePHP is by AUTH and ACL . Now the requirement is that when a user logged in parent app which is developed in ColdFusion user should directly go to protected pages/dashboard without logging in. I want a way to bypass the login functionality provided by Auth.

Thank you,

kiran

I want a way to bypass the login functionality provided by Auth.

You probably don't, you probably want to be able to log the user in automatically, which Auth supports .

You need to have some way for your PHP code to call ColdFusion to authenticate a user based on some shared secret (eg the login cookie for the ColdFusion part of the application) and then automatically log the user if they are authenticated.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM