microsoft-authentication-library-for-objc icon indicating copy to clipboard operation
microsoft-authentication-library-for-objc copied to clipboard

Missing spinner when waiting for async events

Open Brynjulf opened this issue 6 years ago • 2 comments

Hi,

I noticed when i was authenticating my user with multifactor (using Microsoft Authenticator) the login screen did not show a spinner while waiting for a reply. I also noticed this when attempting to find a certificate (x509) to authenticate against.

wrapper I was using: https://github.com/bjartebore/react-native-msal-client

Actual device I was using to test certificate: iPhone 7 with ios 12.2

In my Info.plist I added the following snippets:

+  <key>LSApplicationQueriesSchemes</key>
+  <array>
+    <string>msauth</string>
+    <string>msauthv2</string>
+  </array>

and

+       <key>CFBundleURLTypes</key>
+       <array>
+               <dict>
+                       <key>CFBundleTypeRole</key>
+                       <string>Editor</string>
+                       <key>CFBundleURLName</key>
+                       <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
+                       <key>CFBundleURLSchemes</key>
+                       <array>
+                               <string>msal${MY-CLIENT-ID}</string>
+                       </array>
+               </dict>
+       </array>

Brynjulf avatar May 03 '19 13:05 Brynjulf

Thanks for reporting this issue. Can you please specify which WebView Type you were using for this test? You can read more about different WebViews that MSAL supports here: https://github.com/AzureAD/microsoft-authentication-library-for-objc/wiki/Customizing-Browsers-and-WebViews

oldalton avatar May 06 '19 21:05 oldalton

@oldalton that would be the default for iOS 12, ASWebAuthenticationSession

Brynjulf avatar May 07 '19 06:05 Brynjulf