IDP extension (JAVA) - get user attributes
Cantor, Scott
cantor.2 at osu.edu
Tue Feb 2 18:59:49 EST 2016
On 2/2/16, 3:11 PM, "Yi Yang" <yyangjohnny at gmail.com> wrote:
>How to get the user's principals, attributes and sp in the Script Attribute Definition?
The attributes are in the resolver itself. If you need to base the script on something, you include it as a dependency of the script attribute definition and access them in the script.
The documentation [1] includes links to the Javadocs of the objects available to the script, and the SP identity is somewhere buried in it, I don't remember where off hand, I'm sure somebody else does.
I don't know what you're trying to get out of "the principals", nothing we ship would populate them with anything useful. The user's name is in requestContext.principalName
-- Scott
More information about the users
mailing list