<html>
<head>
<meta name="generator" content="Windows Mail 17.5.9600.20315">
<style><!--
.EmailQuote {
margin-left:1pt;
padding-left:4pt;
border-left:#800000 2px solid;
}
--></style><style data-externalstyle="true"><!--
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
}
p.MsoNormal, li.MsoNormal, div.MsoNormal {
margin:0in;
margin-bottom:.0001pt;
}
p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst,
p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle,
p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
line-height:115%;
}
--></style></head>
<body dir="ltr">
<div data-externalstyle="false" dir="ltr" style="font-family: 'Calibri', 'Segoe UI', 'Meiryo', 'Microsoft YaHei UI', 'Microsoft JhengHei UI', 'Malgun Gothic', 'sans-serif';font-size:12pt;"><div>One solution is to edit the ADFS HomeRealmDiscovery.aspx.cs page to hard-code the selection and redirect to the Shib IdP.</div><div><br></div><div>An example is shown below.</div><div><br></div><div>Randy </div><div><br></div><div><br></div><div><br></div><div>using System;</div><div><br></div><div>using Microsoft.IdentityServer.Web.Configuration;<br>using Microsoft.IdentityServer.Web.UI;</div><div><br></div><div>/// <summary><br>/// This page enables home realm discovery if this STS is configured to trust multiple claims providers.<br>///<br>/// If the persistIdentityProviderInformation setting is enabled and the user has previously<br>/// selected a claims provider, that claims provider will be used automatically.<br>/// </summary><br>public partial class HomeRealmDiscovery : Microsoft.IdentityServer.Web.UI.HomeRealmDiscoveryPage<br>{<br> protected void Page_Init( object sender, EventArgs e )<br> {<br> //PassiveIdentityProvidersDropDownList.DataSource = base.ClaimsProviders;<br> //PassiveIdentityProvidersDropDownList.DataBind();<br> } <br> <br> protected void Page_Load(object sender, EventArgs e)<br> {<br> SelectHomeRealm("<a href="https://login.xxxxxx.edu/idp/shibboleth" target="_parent">https://login.xxxxxx.edu/idp/shibboleth</a>");<br> } </div><div><br></div><div> protected void PassiveSignInButton_Click( object sender, EventArgs e )<br> {<br> SelectHomeRealm( PassiveIdentityProvidersDropDownList.SelectedItem.Value );<br> }<br>}</div><div><br></div><div style="padding-top: 5px; border-top-color: rgb(229, 229, 229); border-top-width: 1px; border-top-style: solid;"><div><font face=" 'Calibri', 'Segoe UI', 'Meiryo', 'Microsoft YaHei UI', 'Microsoft JhengHei UI', 'Malgun Gothic', 'sans-serif'" style='line-height: 15pt; letter-spacing: 0.02em; font-family: "Calibri", "Segoe UI", "Meiryo", "Microsoft YaHei UI", "Microsoft JhengHei UI", "Malgun Gothic", "sans-serif"; font-size: 12pt;'><b>From:</b> <a href="mailto:btl@fischerinternational.com" target="_parent">bleb1982</a><br><b>Sent:</b> Thursday, January 23, 2014 1:06 PM<br><b>To:</b> <a href="mailto:users@shibboleth.net" target="_parent">Shib Users</a></font></div></div><div><br></div><div dir="">
<div class="PlainText">I found this information on the confluence website. My question is. Does each<br>
client have to set the MSISIPSelectionPersistent cookie, or can this be set<br>
automatically for all users in ADFS?<br>
<br>
When landing on the ADFS, user will be presented with an option to<br>
authenticate with AD or Shibboleth. To automatically select Shibboleth over<br>
AD, we insert a cookie "MSISIPSelectionPersistent" with a Base64 value of<br>
the EntityID for the Shibboleth IdP:<br>
e.g. echo -n <a href="https://idp.example.com/idp/shibboleth" target="_parent">https://idp.example.com/idp/shibboleth</a> | base64<br>
aHR0cHM6Ly9pZHAuZXhhbXBsZS5jb20vaWRwL3NoaWJib2xldGg=<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://shibboleth.1660669.n2.nabble.com/ADFS-and-Shibboleth-Using-MSISIPSelectionPersistent-tp7594227.html" target="_parent">http://shibboleth.1660669.n2.nabble.com/ADFS-and-Shibboleth-Using-MSISIPSelectionPersistent-tp7594227.html</a><br>
Sent from the Shibboleth - Users mailing list archive at Nabble.com.<br>
--<br>
To unsubscribe from this list send an email to users-unsubscribe@shibboleth.net<br>
</div>
</div></div>
</body>
</html>