Maxime,

If you are not able to modify CAS, you might be able to check the user's ip 
address.

Ray

On Mon, 2018-03-26 at 08:14 -0700, Maxime Marty-Dessus wrote:
Hello everybody :)

So here's my problem
I work currently on a login interface project for our application. The client 
wants to have two ways of login to our app :

  *   Login via their CAS (we don't own this CAS)
  *   Login via a "local" login/password, if, for instance, the client wants an 
external consultant to access the application without registering him in the CAS

We already managed to develop the interface. This is a simple webpage, where 
the client can either click on a "Connect" button, redirecting him to the CAS, 
or a "Local LogOn" button, which redirect him to a form to fill with local 
credentials. In both cases, the user is redirected to our app and logged in 
with correct credentials.


BUT, the client doesn't want to click on the "Connect" button, but wants to be 
automatically redirected to our app if he is already connected on the CAS

The problem is, if I automatically redirect him to the CAS, the user can't use 
the Local LogOn way because he will be blocked on the CAS.


Is there a way to query the CAS if the user is already logged, without 
redirecting him to it ? Or another way to do the trick?


If you have any hint to solve this problem, it will be very much appreciated.


Thank you in advance for your future answers !

--
Ray Bon
Programmer analyst
Development Services, University Systems
2507218831 | CLE 019 | [email protected]

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
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 view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/1522081696.1793.4.camel%40uvic.ca.

Reply via email to