<?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: Using ArcGIS SSO in Swift app to access organizations feature services. in Swift Maps SDK Questions</title>
    <link>https://community.esri.com/t5/swift-maps-sdk-questions/using-arcgis-sso-in-swift-app-to-access/m-p/1383529#M224</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/143199"&gt;@DuanePfeiffer&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you for the code. Please, mask the license key you posted in the code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry, I misunderstood your initial question. I thought you are getting prompted between application sessions even after providing credentials first time. However, look like you are prompted to enter the username/password instead of an OAuth login page. Is that correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If yes, is it because the &amp;nbsp;`OAuthUserConfiguration` expect a portal URL and you are passing the feature service URL?&lt;/P&gt;&lt;PRE&gt;portalURL: K.vegetationManagementFeatureServiceURL&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nimesh&lt;/P&gt;</description>
    <pubDate>Fri, 16 Feb 2024 17:59:36 GMT</pubDate>
    <dc:creator>NimeshJarecha</dc:creator>
    <dc:date>2024-02-16T17:59:36Z</dc:date>
    <item>
      <title>Using ArcGIS SSO in Swift app to access organizations feature services.</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/using-arcgis-sso-in-swift-app-to-access/m-p/1383200#M221</link>
      <description>&lt;P&gt;I would like to present arcgis.com's Sign in screen to authenticate users.&amp;nbsp; So they can use SAML logins.&amp;nbsp; I'm using arcgis toolkit (swift) and Authenticator/AuthenticationManager but I always get the username and password dialog.&amp;nbsp; We were able to do this with UIKit but I'm not seeing how to do it using SwiftUI.&amp;nbsp; Help please....&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 01:30:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/using-arcgis-sso-in-swift-app-to-access/m-p/1383200#M221</guid>
      <dc:creator>DuanePfeiffer</dc:creator>
      <dc:date>2024-02-16T01:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using ArcGIS SSO in Swift app to access organizations feature services.</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/using-arcgis-sso-in-swift-app-to-access/m-p/1383207#M222</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/143199"&gt;@DuanePfeiffer&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Are you setting up the persistent credential stores as shown in &lt;A href="https://github.com/Esri/arcgis-maps-sdk-swift-toolkit/blob/v.next/AuthenticationExample/AuthenticationExample/AuthenticationApp.swift#L59" target="_self"&gt;authentication example&lt;/A&gt;&amp;nbsp;of the toolkit?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nimesh&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 01:59:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/using-arcgis-sso-in-swift-app-to-access/m-p/1383207#M222</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2024-02-16T01:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using ArcGIS SSO in Swift app to access organizations feature services.</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/using-arcgis-sso-in-swift-app-to-access/m-p/1383520#M223</link>
      <description>&lt;P&gt;Yes,&amp;nbsp; here is the code I'm using.&lt;/P&gt;&lt;LI-CODE lang="swift"&gt;        let config = OAuthUserConfiguration(portalURL: K.vegetationManagementFeatureServiceURL,
                                           clientID: K.clientID,
                                           redirectURL: K.redirectURL)

        authenticator = Authenticator(oAuthUserConfigurations: [config])

        // Sets authenticator as ArcGIS and Network challenge handlers to handle authentication
        // challenges.
        ArcGISEnvironment.authenticationManager.handleChallenges(using: authenticator)
        Task {
            try? await ArcGISEnvironment.authenticationManager.setupPersistentCredentialStorage(
                access: .whenUnlockedThisDeviceOnly,
                synchronizesWithiCloud: false
            )
        }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 18:05:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/using-arcgis-sso-in-swift-app-to-access/m-p/1383520#M223</guid>
      <dc:creator>DuanePfeiffer</dc:creator>
      <dc:date>2024-02-16T18:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using ArcGIS SSO in Swift app to access organizations feature services.</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/using-arcgis-sso-in-swift-app-to-access/m-p/1383529#M224</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/143199"&gt;@DuanePfeiffer&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you for the code. Please, mask the license key you posted in the code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry, I misunderstood your initial question. I thought you are getting prompted between application sessions even after providing credentials first time. However, look like you are prompted to enter the username/password instead of an OAuth login page. Is that correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If yes, is it because the &amp;nbsp;`OAuthUserConfiguration` expect a portal URL and you are passing the feature service URL?&lt;/P&gt;&lt;PRE&gt;portalURL: K.vegetationManagementFeatureServiceURL&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nimesh&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 17:59:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/using-arcgis-sso-in-swift-app-to-access/m-p/1383529#M224</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2024-02-16T17:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using ArcGIS SSO in Swift app to access organizations feature services.</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/using-arcgis-sso-in-swift-app-to-access/m-p/1383541#M225</link>
      <description>&lt;P&gt;You are correct.&amp;nbsp; I am now using "&lt;A href="https://www.arcgis.com" target="_blank"&gt;https://www.arcgis.com&lt;/A&gt;" and it is working.&amp;nbsp; Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 18:12:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/using-arcgis-sso-in-swift-app-to-access/m-p/1383541#M225</guid>
      <dc:creator>DuanePfeiffer</dc:creator>
      <dc:date>2024-02-16T18:12:00Z</dc:date>
    </item>
  </channel>
</rss>

