Hi Alia

Thanks very much for this hint. This works very fine.

Thanks

Michael

Am 08.11.13 15:47, schrieb Alia Faton:
Hello,

Since CAS uses spring web flow, you can use the following to get the service :

         ServletRequestAttributes sra = (ServletRequestAttributes) 
RequestContextHolder.getRequestAttributes();
         HttpServletRequest req = sra.getRequest();
         String service = req.getParameter("service");


-----Original Message-----
From: Michael Wechner [mailto:[email protected]]
Sent: vendredi 8 novembre 2013 15:42
To: [email protected]
Subject: [cas-user] How to get / know the service when implementing a custom 
authentication handler

Hi

I have implemented a custom authentication handler implementing

AbstractUsernamePasswordAuthenticationHandler#authenticateUsernamePasswordInternal(UsernamePasswordCredentials)

but the class UsernamePasswordCredentials

http://developer.jasig.org/projects/cas/cas-server-core/cas-server/cas-server-core/apidocs/org/jasig/cas/authentication/principal/UsernamePasswordCredentials.html

does not provide the service for which a user is authenticating (only username 
and password).

I would like to submit the service also to the custom backend system which we 
use for authentication.
Is there some alternative approach or some other way on how to get hold of the 
service?

Thanks for your help

Michael

--
You are currently subscribed to [email protected] as: 
[email protected] To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user



--
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to