<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Windows Authentication check behind an Add-In button? in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/windows-authentication-check-behind-an-add-in/m-p/278618#M7288</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have developed a couple of Add-Ins for the Viewer using Silverlight API and now I am wanting to provide authentication and authorization (single sign-on to AD) when the user clicks those buttons. I have two buttons and I want to assign two different AD roles to them. Ideally, if button1 is for roleA and button2 is for roleB and a user is in roleA, she would be able to click button1 and proceed; if not, clicking button1 would bring up an error message. What are the general steps to accomplish something like this? I can see setting up an authentication web service but does that go out and know/get the user and its roles, and how to get that information (InitParam?) back to Silverlight? I have not done any credentials in Silverlight before and don't know how to start.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Jun 2013 14:33:14 GMT</pubDate>
    <dc:creator>SteveClark</dc:creator>
    <dc:date>2013-06-28T14:33:14Z</dc:date>
    <item>
      <title>Windows Authentication check behind an Add-In button?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/windows-authentication-check-behind-an-add-in/m-p/278618#M7288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have developed a couple of Add-Ins for the Viewer using Silverlight API and now I am wanting to provide authentication and authorization (single sign-on to AD) when the user clicks those buttons. I have two buttons and I want to assign two different AD roles to them. Ideally, if button1 is for roleA and button2 is for roleB and a user is in roleA, she would be able to click button1 and proceed; if not, clicking button1 would bring up an error message. What are the general steps to accomplish something like this? I can see setting up an authentication web service but does that go out and know/get the user and its roles, and how to get that information (InitParam?) back to Silverlight? I have not done any credentials in Silverlight before and don't know how to start.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2013 14:33:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/windows-authentication-check-behind-an-add-in/m-p/278618#M7288</guid>
      <dc:creator>SteveClark</dc:creator>
      <dc:date>2013-06-28T14:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Windows Authentication check behind an Add-In button?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/windows-authentication-check-behind-an-add-in/m-p/278619#M7289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: Steve Clark&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's what I got so far. In IIS on my server, I have the app set to Windows Authentication. I also configured Local Groups and linked that to our AD groups. I then set the Authorization Rules for the app so that if you type in the url &amp;lt;server&amp;gt;/apps/MyApp, you have to be in the Local Group in order for the viewer app to come up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I am trying to figure out how to code CanExecute to make a method call to IIS to check if user IsInRole (or something similar). Silverlight doesn't appear to give you many options including Context or HttpContext. I don't need to secure services, I just want to query the IIS role to see whether the Add-In button is enabled or not. How do I make that call?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jul 2013 16:14:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/windows-authentication-check-behind-an-add-in/m-p/278619#M7289</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-07-02T16:14:51Z</dc:date>
    </item>
  </channel>
</rss>

