Reputation: 2694
I'm thinking about a SSO architecture for my company and I found very interesting CAS. I have quite clear the features available while using it in Web Applications. Instead, I didn't understand very well a possible CAS employement with desktop application (C# or Swing). Now we have a lot of web application and desktop applications and we want to manage an unique point of authentication for all. In your opinion, is it possible to achieve using CAS? Do you have some advices?
Upvotes: 2
Views: 5394
Reputation: 4184
Based on CAS's design, you can use it with a standalone app for authentication, but you will not be able to participate with the SSO abilities.
There are a couple of ways you can interact w/ cas from a standalone app. You can either 'impersonate' a browser, and send and parse http requests and responses in an attempt to behave as the login page.
Alternatively, and likely cleaner, you can use CAS's RESTful apis: https://wiki.jasig.org/display/CASUM/RESTful+API
I've not actually done this in a standalone app, but I've read posts from people doing the http 'scraping', and based on the link above, it really seems it wouldn't be too hard to do from an app that has a decent networking library.
Upvotes: 2