Access principal name from servlet filter
Etienne Dysli-Metref
etienne.dysli-metref at switch.ch
Thu Aug 20 11:25:34 EDT 2015
I'm porting a servlet filter that was used with IdPv2 to v3 and it uses
edu.internet2.middleware.shibboleth.idp.util.HttpServletHelper and
edu.internet2.middleware.shibboleth.idp.authn.LoginContext to read the
current principal name, like so:
LoginContext loginContext = HttpServletHelper.getLoginContext(
HttpServletHelper.getStorageService(servletContext),
servletContext,
(HttpServletRequest) request);
String principalName = loginContext.getPrincipalName();
and then writes it into a cookie.
What is the equivalent functionality in v3?
Cheers,
Etienne
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://shibboleth.net/pipermail/dev/attachments/20150820/d9d79601/attachment-0001.sig>
More information about the dev
mailing list