Referencing entity attributes in the terms of use key bean

Wessel, Keith kwessel at illinois.edu
Thu Sep 10 14:49:54 UTC 2020


All,

I've got a slightly interesting use case here. We want to display terms of use for users signing into Github with SSO, but we have multiple Github orgs. We only want to display the terms the first time they access any of the orgs. So, I want to map all of the Github org entity IDs to the same terms-of-use key. But I'd rather not hard code the Github entity IDs in a map in the terms of use key bean. I'd instead prefer to assign an entity attribute in each SP's metadata and key off of it. I want to create a bean that will output the Github key if the SP has the given entity attribute or fall back and output the SP's entity ID as the key if it doesn't.

I know I can do this in the bean as long as it outputs a string. What I Can't figure out is how to check for the entity attribute inside the bean. Any similar examples of this elsewhere in the IdP dist configs or documentation that someone could point me to?

And... does this seem like a reasonable approach to accomplish my intended goal, or is there a better/easier way?

Thanks,
Keith


More information about the users mailing list