<?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: Present OAuth without displaying Maps in Swift Maps SDK Questions</title>
    <link>https://community.esri.com/t5/swift-maps-sdk-questions/present-oauth-without-displaying-maps/m-p/1495254#M309</link>
    <description>&lt;P&gt;Seems I overlooked the migration guide from 100.x to 200.x as there is a solution for it:&amp;nbsp;&lt;A href="https://developers.arcgis.com/swift/reference/migrate-authentication-100-x-to-200-x/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/swift/reference/migrate-authentication-100-x-to-200-x/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;More precisely, this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="swift"&gt;// OAuth user credential
let configuration = OAuthUserConfiguration(portalURL: portalURL, clientID: clientID, redirectURL: redirectURL)
let oAuthUserCredential = try await OAuthUserCredential.credential(for: configuration)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jun 2024 10:01:46 GMT</pubDate>
    <dc:creator>zdtorok</dc:creator>
    <dc:date>2024-06-20T10:01:46Z</dc:date>
    <item>
      <title>Present OAuth without displaying Maps</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/present-oauth-without-displaying-maps/m-p/1494886#M308</link>
      <description>&lt;P&gt;Can I trigger an OAuth authentication flow without presenting the map?&lt;/P&gt;&lt;P&gt;I found this in the Samples code you provide:&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-maps-sdk-swift-samples/blob/main/Shared/Samples/Authenticate%20with%20OAuth/AuthenticateWithOAuthView.swift" target="_blank"&gt;https://github.com/Esri/arcgis-maps-sdk-swift-samples/blob/main/Shared/Samples/Authenticate%20with%20OAuth/AuthenticateWithOAuthView.swift&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But here, it is attached to the displayed map. I would need a solution that when our application starts - before rendering our Map component at all - we start the authentication flow with the built-in handling.&lt;/P&gt;&lt;P&gt;Is it possible? Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2024 12:33:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/present-oauth-without-displaying-maps/m-p/1494886#M308</guid>
      <dc:creator>zdtorok</dc:creator>
      <dc:date>2024-06-19T12:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Present OAuth without displaying Maps</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/present-oauth-without-displaying-maps/m-p/1495254#M309</link>
      <description>&lt;P&gt;Seems I overlooked the migration guide from 100.x to 200.x as there is a solution for it:&amp;nbsp;&lt;A href="https://developers.arcgis.com/swift/reference/migrate-authentication-100-x-to-200-x/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/swift/reference/migrate-authentication-100-x-to-200-x/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;More precisely, this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="swift"&gt;// OAuth user credential
let configuration = OAuthUserConfiguration(portalURL: portalURL, clientID: clientID, redirectURL: redirectURL)
let oAuthUserCredential = try await OAuthUserCredential.credential(for: configuration)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 10:01:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/present-oauth-without-displaying-maps/m-p/1495254#M309</guid>
      <dc:creator>zdtorok</dc:creator>
      <dc:date>2024-06-20T10:01:46Z</dc:date>
    </item>
  </channel>
</rss>

