Am 08.11.13 23:11, schrieb KaTeLmE:
> The right form of extract request arguments is through CAS argument 
> extractors because is the unique form to resolve it without be 
> accoplated to used protocol (CAS / SAML ....)
>
> See 
> http://developer.jasig.org/projects/cas/cas-server-core/cas-server/cas-server-core/apidocs/org/jasig/cas/web/support/class-use/ArgumentExtractor.html

thanks for this additional hint

Michael
>
>
> 2013/11/8 Michael Wechner <[email protected] 
> <mailto:[email protected]>>
>
>     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]
>         <mailto:[email protected]>]
>         Sent: vendredi 8 novembre 2013 15:42
>         To: [email protected] <mailto:[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]
>         <mailto:[email protected]> as: [email protected]
>         <mailto:[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]
>     <mailto:[email protected]> as: [email protected]
>     <mailto:[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


-- 
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