IDP extension (JAVA) - get user attributes

Cantor, Scott cantor.2 at osu.edu
Mon Feb 1 18:49:28 EST 2016


On 2/1/16, 6:26 PM, "Yi Yang" <yyangjohnny at gmail.com> wrote:


>
>In IDP, I want to get the user's attributes if the login is successful.

The IdP already does that.

> I make a filter to intercept the request and I am able to check if the user is authenticated by 
>calling the method loginContext.isUserAuthenticated().

That isn't the current IdP and you shouldn't be building anything on it.

> If the user is authenticated,
> the request will be returned to AuthenticationEngine then ProfileHandler (as far as I can tell from the source code). In SSOProfileHandler, the completeAuthenticationRequest method builds a SSORequestContext and creates a samlResponse, and the attributes are
> saved in the samlResponse. I am wondering if I can retrieve the SSORequestConext or the SamlResponse programmatically? Please correct me if I am wrong, I am new to shibboleth.

Then get off V2. That's your first step.

-- Scott



More information about the users mailing list