I'm trying to implement a scheme of split authentication vs authorization. I want my Phalcon app to handle authorization but hand off authentication to https://github.com/Jasig/phpCAS
I've never done anything with authentication in Phalcon before and just want to get an idea of where to start. I am using the directory structure generated by phalcon-devtools. I assume I have to create an app/plugins/Security.php and then load it into app/config/services.php ? How do I redirect anyone without a valid session to the login controller? Thanks!