Help getting username
Jeffrey J Ramsay
jramsay at binghamton.edu
Thu Jun 6 12:10:38 UTC 2024
Hello -
I'm encountering an issue retrieving the username, specifically accessing
the ProfileRequestContext, as shown below, and I'm not sure if any of this
is correct.
I could use some assistance.
public void
setUsernameLookupStrategy(java.util.function.Function<org.opensaml.profile.context.ProfileRequestContext,
java.lang.String> strategy) {
username =
net.shibboleth.idp.session.context.navigate.CanonicalUsernameLookupStrategy.apply(strategy);
...
error: method apply in class CanonicalUsernameLookupStrategy cannot be
applied to given types;
username =
net.shibboleth.idp.session.context.navigate.CanonicalUsernameLookupStrategy.apply(strategy);
^
required: ProfileRequestContext
found: Function<ProfileRequestContext,String>
reason: argument mismatch; Function<ProfileRequestContext,String> cannot
be converted to ProfileRequestContext
Thanks,
-Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20240606/7916db8f/attachment.htm>
More information about the users
mailing list