[External Email] Re: Help getting username

Cantor, Scott cantor.2 at osu.edu
Thu Jun 6 15:24:48 UTC 2024


These are dev list questions, so please use that list for this kind of thing.

> Also, I was trying to understand how this works for the view
> scope, but not when I passed it to the setter.

Because that setter is an injection point for a Function, and you're trying to call another Function that expects a ProfileRequestContext with the input to the setter, which is a Function itself.

That Java code in the setter shouldn't even compile, it should flag the input to our Function as being the wrong type.

The viewScope expression you're asking about is calling a function and passing the opensamlProfileRequestContext variable as the input. There are a ton of complexities wrapped up in that but the point is that opensamlProfileRequestContext is an object of the proper type for the Function.

Whereas you're calling the Function with a different, incorrect type and doing it in a place that would never have access to the PRC at runtime to pass into the function to get it to run.

Byeond that, we're deep into member support here. I can't debug code for people for free, not anymore.

My best piece of advice here from all that XML is that you're trying to build your own login flow, and I would advise you to reconsider that. Use the External  login flow feature and build the logic you need in a stand-alone way that doesn't require as much understanding of IdP internals. It's still Java or JSP but it's much more contained.

-- Scott




More information about the users mailing list