<?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 Specifically detecting invalid credentials in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/specifically-detecting-invalid-credentials/m-p/178471#M4462</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Greetings, and thank you in advance for the help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm writing an app to enable users to leverage the World Routing service using Oauth2 for the authentication process.&amp;nbsp; I can get through the auth process, but see the '499 Token Required' error afterwards.&amp;nbsp; I see this error until I provide data and generate a route.&amp;nbsp; After that, things work nicely.&amp;nbsp; This seems to be a separate issue though.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My issue in question is this:&amp;nbsp; I want to be able to validate the username and password specified before providing data and attempting to generate a route.&amp;nbsp; I've noticed that, after I provide data and attempt to generate a route with invalid credentials (using IdentityManager.GenerateCredentialAsync), my callback method has an exception whose message is this, "Unable to generate token.\r\nInvalid username or password".&amp;nbsp; This is exactly what I'm looking for!&amp;nbsp; However, is there a way to validate credentials and get this message before attempting to generate route, possibly during the auth process (and perhaps before going thhrough token steps)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In a perfect world, I'd be able to provide the username\password, and receive a response indicating whether or not the credentials are valid without having to try and generate a route first.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you again for the assistance!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Feb 2014 16:09:31 GMT</pubDate>
    <dc:creator>AlexanderNelson</dc:creator>
    <dc:date>2014-02-13T16:09:31Z</dc:date>
    <item>
      <title>Specifically detecting invalid credentials</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/specifically-detecting-invalid-credentials/m-p/178471#M4462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Greetings, and thank you in advance for the help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm writing an app to enable users to leverage the World Routing service using Oauth2 for the authentication process.&amp;nbsp; I can get through the auth process, but see the '499 Token Required' error afterwards.&amp;nbsp; I see this error until I provide data and generate a route.&amp;nbsp; After that, things work nicely.&amp;nbsp; This seems to be a separate issue though.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My issue in question is this:&amp;nbsp; I want to be able to validate the username and password specified before providing data and attempting to generate a route.&amp;nbsp; I've noticed that, after I provide data and attempt to generate a route with invalid credentials (using IdentityManager.GenerateCredentialAsync), my callback method has an exception whose message is this, "Unable to generate token.\r\nInvalid username or password".&amp;nbsp; This is exactly what I'm looking for!&amp;nbsp; However, is there a way to validate credentials and get this message before attempting to generate route, possibly during the auth process (and perhaps before going thhrough token steps)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In a perfect world, I'd be able to provide the username\password, and receive a response indicating whether or not the credentials are valid without having to try and generate a route first.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you again for the assistance!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 16:09:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/specifically-detecting-invalid-credentials/m-p/178471#M4462</guid>
      <dc:creator>AlexanderNelson</dc:creator>
      <dc:date>2014-02-13T16:09:31Z</dc:date>
    </item>
  </channel>
</rss>

