[cas-user] Re: Cas 5.1 How to get client's service url.

2017-11-27 Thread snaffy
Thank you Andy for your time, everything works as I wanted. -- - 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

[cas-user] Re: Cas 5.1 How to get client's service url.

2017-11-26 Thread Andy Ng
Hi again, I have just dig deeper in the source code, and I found the way to extract the *service URL*, here how it can be done in CAS 5.2.0-RC4 (I am too lazy to test it in other version, please change the code accordingly) public class CustomAuthenticationHandler implements

[cas-user] Re: Cas 5.1 How to get client's service url.

2017-11-26 Thread Andy Ng
In that case, I would suggest using a custom template. And make all the username, password parameters to be hidden. Or maybe create a loading ... so user know they are being redirected. Here are how to set up custom template:

[cas-user] Re: Cas 5.1 How to get client's service url.

2017-11-26 Thread snaffy
On the issue of using a hostname, I need it to retrieve a user from the database - the user is searched using his name and an additional parameter that I can specify using the hostname. As for your suggestions, they are also useful. This is the next step I am going to take, namely: I would

[cas-user] Re: Cas 5.1 How to get client's service url.

2017-11-24 Thread Andy Ng
I also don't know a way to retrive the hostname. However I would like to know what is your use case for the hostname If, for example, you have 3 hosts that need 3 different customized authentication 1) https://i-only-use-saml.example.com 2) https://i-only-use-oauth.example.com 3)