<?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 AuthenticationManager OAuth2 Implicit - Authorize Behind the Scenes in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/authenticationmanager-oauth2-implicit-authorize/m-p/193596#M2257</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We&amp;nbsp;have Portal for ArcGIS 10.4 configured with ADFS 2016.&amp;nbsp;We also have an SOI on a server that filters data based on a user profile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are developing a UWP app that contains data from two different systems SAP/Hybris and ArcGIS. All resources from both parties&amp;nbsp;are secured through ADFS, however, each system has their own OAuth2 implementation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The main login is from SAP which gets a token through OAuth2. This token does not work with ArcGIS so during the main logon&amp;nbsp;we also have to generate an OAuth2 token for ArcGIS using the same credentials. We don't want a new login page from Portal for ArcGIS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have tried using the AuthenticationManager class&amp;nbsp;with token implicit&amp;nbsp;but this always prompts us for credentials.&lt;/P&gt;&lt;P&gt;We have tried to set a username and password in the GenerateCredentialAsync method but it still prompts us for a username and password.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; credential = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;await&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;AuthenticationManager&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;.Current.GenerateCredentialAsync(..., username, password)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to login to ArcGIS using OAuth2 implicit named users&amp;nbsp;behind the scenes? We have tried using the proxy page but that has been configured for OAuth2 app logins not named user logins. We need that the&amp;nbsp; user identity is carried all the way to the SOI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way of doing this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Jose&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Mar 2017 11:35:10 GMT</pubDate>
    <dc:creator>JoseSousa</dc:creator>
    <dc:date>2017-03-28T11:35:10Z</dc:date>
    <item>
      <title>AuthenticationManager OAuth2 Implicit - Authorize Behind the Scenes</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/authenticationmanager-oauth2-implicit-authorize/m-p/193596#M2257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We&amp;nbsp;have Portal for ArcGIS 10.4 configured with ADFS 2016.&amp;nbsp;We also have an SOI on a server that filters data based on a user profile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are developing a UWP app that contains data from two different systems SAP/Hybris and ArcGIS. All resources from both parties&amp;nbsp;are secured through ADFS, however, each system has their own OAuth2 implementation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The main login is from SAP which gets a token through OAuth2. This token does not work with ArcGIS so during the main logon&amp;nbsp;we also have to generate an OAuth2 token for ArcGIS using the same credentials. We don't want a new login page from Portal for ArcGIS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have tried using the AuthenticationManager class&amp;nbsp;with token implicit&amp;nbsp;but this always prompts us for credentials.&lt;/P&gt;&lt;P&gt;We have tried to set a username and password in the GenerateCredentialAsync method but it still prompts us for a username and password.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; credential = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;await&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;AuthenticationManager&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;.Current.GenerateCredentialAsync(..., username, password)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to login to ArcGIS using OAuth2 implicit named users&amp;nbsp;behind the scenes? We have tried using the proxy page but that has been configured for OAuth2 app logins not named user logins. We need that the&amp;nbsp; user identity is carried all the way to the SOI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way of doing this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Jose&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 11:35:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/authenticationmanager-oauth2-implicit-authorize/m-p/193596#M2257</guid>
      <dc:creator>JoseSousa</dc:creator>
      <dc:date>2017-03-28T11:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: AuthenticationManager OAuth2 Implicit - Authorize Behind the Scenes</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/authenticationmanager-oauth2-implicit-authorize/m-p/193597#M2258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know this was posted years ago, but I'm wondering if you ever figured it out? I have a similar situation where I&amp;nbsp;need to &amp;nbsp;login using OAuth2 behind the scenes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2020 16:12:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/authenticationmanager-oauth2-implicit-authorize/m-p/193597#M2258</guid>
      <dc:creator>ChrisSeabrooke1</dc:creator>
      <dc:date>2020-05-22T16:12:50Z</dc:date>
    </item>
  </channel>
</rss>

