I have a website on Node.js and CAS server. I need to build a client, which will redirect unauthorized user to CAS Server and than if successful, it redirects to the requested path but with his info: login,role and etc. Which library or framework can you recommend to me for these purposes?
A modest google search would lead one to passport-cas. It provides CAS authentication strategies for Passport. You can read about the Passport library here.