Hi Jay,

Good question – we struggled with this a little while ago and devised a 
solution that worked for our Angular JS applications. This may or may not scale 
or apply to your situation.

We discovered that mod_auth_cas “sees” routes in Angular (based on URI anyway). 
We configured mod_auth_cas to trigger when specific URIs are accessed in our 
Angular application and use those URIs POST to a “login.php” file that simply 
returns the UID of the currently authenticated user(basically, just echoing 
$SERVER[‘REMOTE_USER’]) to the Angular app. The “login.php” file must also be 
included in the paths that mod_auth_cas triggers for.

There is definitely room for improvement. We hoped to use phpCAS but it did not 
play well in our Angular app (CORS issues).

We were also unable to locate a great example, so if you (or anyone else) 
figure something out, I would be very interested to learn about your approach.

I hope this helps.

Thanks,
-Neil

From: [email protected] [mailto:[email protected]] On Behalf Of india.jai
Sent: Monday, May 23, 2016 7:57 AM
To: CAS Community <[email protected]>
Subject: [cas-user] CASify an AngularJS web application

Hi All

Is it possible to CASify an AngularJS web application ?

We are planing to refactor our existing CAS web applications and thinking of 
using AngularJS.

Not able to find a solid answer if its possible or not ?

Can you please kindly clarify ?

Thanks
Jay

--
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected]<mailto:[email protected]>.
To post to this group, send email to 
[email protected]<mailto:[email protected]>.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/2b64dab7-32c0-4aa8-a765-a45411994f85%40apereo.org<https://groups.google.com/a/apereo.org/d/msgid/cas-user/2b64dab7-32c0-4aa8-a765-a45411994f85%40apereo.org?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/BY1PR0701MB17226BD7385ABC253F2261D9B84F0%40BY1PR0701MB1722.namprd07.prod.outlook.com.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.

Reply via email to