<?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 Re: How to authentication mapservice with username and password? in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-authentication-mapservice-with-username-and/m-p/689043#M8708</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The sample that Rex pointed out demonstrates how to develop your own SignIn UI.&lt;/P&gt;&lt;P&gt;Alternatively, for WinPhone and Desktop platforms, you can use the UI provided by the toolkit and the SignInChallengeHandler component.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To activate this component, add this line of code at the startup of your application:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2b91af; font-size: 10pt; font-family: Consolas;"&gt;&amp;nbsp; IdentityManager&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;.Current.ChallengeHandler = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; Esri.ArcGISRuntime.Toolkit.Security.&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 10pt; font-family: Consolas;"&gt;SignInChallengeHandler();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Compared to the sample, the toolkit SignInChallengeHandler component offers additional advantages:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;manage all authentication types (token, HTTP secured, PKI (for desktop), OAuth(if setting the OAuthAuthorizeHandler))&lt;/LI&gt;&lt;LI&gt;allow credentials storage so the user can automatically get logged when launching again your application.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The credentials storage is not active by default. To get it, you need to set to true the property AllowSaveCredentials:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2b91af; font-size: 10pt; font-family: Consolas;"&gt;&amp;nbsp; IdentityManager&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;.Current.ChallengeHandler = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; Esri.ArcGISRuntime.Toolkit.Security.&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 10pt; font-family: Consolas;"&gt;SignInChallengeHandler&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; { AllowSaveCredentials = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;true&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;, CredentialSaveOption = &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 10pt; font-family: Consolas;"&gt;CredentialSaveOption&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;.Selected }; &lt;/SPAN&gt;// set it to CredentialSaveOption.Hidden if it's not an user choice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that for WinStore platform, the SignIn UI component is built in the API, so you get it by default.&lt;/P&gt;&lt;P&gt;However the credentials storage is not active by default. You can activate it with code like:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt; var&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; challengeHandler = &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 10pt; font-family: Consolas;"&gt;IdentityManager&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;.Current.ChallengeHandler &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 10pt; font-family: Consolas;"&gt;DefaultChallengeHandler&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; challengeHandler.AllowSaveCredentials = true;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Oct 2014 08:20:49 GMT</pubDate>
    <dc:creator>DominiqueBroux</dc:creator>
    <dc:date>2014-10-09T08:20:49Z</dc:date>
    <item>
      <title>How to authentication mapservice with username and password?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-authentication-mapservice-with-username-and/m-p/689041#M8706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In api-reference, I found solution for authentication with token base which I need to use a proxy page.&lt;/P&gt;&lt;P&gt;I would appreciate, if you give me some suggestion for do it without a proxy page. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 04:18:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-authentication-mapservice-with-username-and/m-p/689041#M8706</guid>
      <dc:creator>ItthisakPhueaksri</dc:creator>
      <dc:date>2014-10-09T04:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to authentication mapservice with username and password?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-authentication-mapservice-with-username-and/m-p/689042#M8707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at this sample: &lt;A href="https://github.com/Esri/arcgis-runtime-samples-dotnet/blob/master/src/Desktop/ArcGISRuntimeSDKDotNet_DesktopSamples/Samples/Security/TokenSecuredServices.xaml.cs" title="https://github.com/Esri/arcgis-runtime-samples-dotnet/blob/master/src/Desktop/ArcGISRuntimeSDKDotNet_DesktopSamples/Samples/Security/TokenSecuredServices.xaml.cs"&gt;arcgis-runtime-samples-dotnet/TokenSecuredServices.xaml.cs at master · Esri/arcgis-runtime-samples-dotnet · GitHub&lt;/A&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 05:54:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-authentication-mapservice-with-username-and/m-p/689042#M8707</guid>
      <dc:creator>RexHansen</dc:creator>
      <dc:date>2014-10-09T05:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to authentication mapservice with username and password?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-authentication-mapservice-with-username-and/m-p/689043#M8708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The sample that Rex pointed out demonstrates how to develop your own SignIn UI.&lt;/P&gt;&lt;P&gt;Alternatively, for WinPhone and Desktop platforms, you can use the UI provided by the toolkit and the SignInChallengeHandler component.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To activate this component, add this line of code at the startup of your application:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2b91af; font-size: 10pt; font-family: Consolas;"&gt;&amp;nbsp; IdentityManager&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;.Current.ChallengeHandler = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; Esri.ArcGISRuntime.Toolkit.Security.&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 10pt; font-family: Consolas;"&gt;SignInChallengeHandler();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Compared to the sample, the toolkit SignInChallengeHandler component offers additional advantages:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;manage all authentication types (token, HTTP secured, PKI (for desktop), OAuth(if setting the OAuthAuthorizeHandler))&lt;/LI&gt;&lt;LI&gt;allow credentials storage so the user can automatically get logged when launching again your application.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The credentials storage is not active by default. To get it, you need to set to true the property AllowSaveCredentials:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2b91af; font-size: 10pt; font-family: Consolas;"&gt;&amp;nbsp; IdentityManager&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;.Current.ChallengeHandler = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; Esri.ArcGISRuntime.Toolkit.Security.&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 10pt; font-family: Consolas;"&gt;SignInChallengeHandler&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; { AllowSaveCredentials = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;true&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;, CredentialSaveOption = &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 10pt; font-family: Consolas;"&gt;CredentialSaveOption&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;.Selected }; &lt;/SPAN&gt;// set it to CredentialSaveOption.Hidden if it's not an user choice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that for WinStore platform, the SignIn UI component is built in the API, so you get it by default.&lt;/P&gt;&lt;P&gt;However the credentials storage is not active by default. You can activate it with code like:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt; var&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; challengeHandler = &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 10pt; font-family: Consolas;"&gt;IdentityManager&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;.Current.ChallengeHandler &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 10pt; font-family: Consolas;"&gt;DefaultChallengeHandler&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; challengeHandler.AllowSaveCredentials = true;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 08:20:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-authentication-mapservice-with-username-and/m-p/689043#M8708</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2014-10-09T08:20:49Z</dc:date>
    </item>
  </channel>
</rss>

