<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">We are trying to implement Duo, and would like to add a 'useDuo' attribute. If this is set to 'yes', that user should use Duo, and if not, not. <div><br></div><div>I have tried to set up a DataConnector with a RelationalDatabase to run the following:</div><div><br></div><div>select VARIABLE useDuo from dual;</div><div><br></div><div>when Variable is something like '$requestContext.getPrincipalName()' or 'resolutionContext.principal()' we successfully get the principal back, but I cannot seem to figure out how to get the SP Entity ID. I have tried things like:</div><div><br></div><div>$requestContext.getRelyingPartyId() and<br></div><div>$resolutionContext.attributeRecipientID()</div><div><br></div><div>which results in those stirngs *literally* being returned.</div><div><br></div><div>Ultimately, we want to query a DB and see if a given user is forced to use Duo or nor, based on business logic that is implemented and maintained in the database.</div><div><br></div><div><br></div><div>Thanks,</div><div>Jeff<br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><pre cols="72">Jeff Chapin,</pre>Panther eSports Adviser            <br>Assistant Systems/Applications Administrator<br>ITS-IS, University of Northern Iowa<br>Phone: 319-273-3162 Email: <a href="mailto:Jeff.Chapin@uni.edu" target="_blank">Jeff.Chapin@uni.edu</a> </div></div></div></div></div></div></div></div></div></div></div>