Access principal name from servlet filter

Cantor, Scott cantor.2 at osu.edu
Thu Aug 20 13:42:16 EDT 2015


On 8/20/15, 1:28 PM, "dev on behalf of Marvin Addison" <dev-bounces at shibboleth.net on behalf of marvin.addison at gmail.com> wrote:

>
>Assuming this is an External login handler, the ExternalAuthentication interface contains a method to get the ProfileRequestContext
>
>If not, this could be another use case for https://issues.shibboleth.net/jira/projects/IDP/issues/IDP-789.

Right, there's two halves to it, getting to the tree, and then what's in the tree.

Leaving getting to it out of the way, the principal name in the LoginContext in V2 is, like I thought, after the login happens. It's the identity a login handler returns as the result of the login process.

I'd have to know the specific need for the data to understand the best place to point somebody now. The best "single" answer to this would be the PRC->SubjectContext->getPrincipalName() but that's only there "after" all of the authentication sequence runs.

-- Scott



More information about the dev mailing list