This seems to be a regression and it works fine in early beta versions.
When start a ASWebAuthenticationSession by setting prefersEphemeralWebBrowserSession to false (default), there will be a popover asking "AppName" want to use "certainurl.com" to sign in. When tapping the continue button from popover, a safari window will show and user can put username and password to continue authentication.
However in beta 9, when user clicks the continue button, the popover will dismiss and send error back into the completion block which was passed in when init the ASWebAuthenticationSession. The error code is ASWebAuthenticationSessionErrorCodeCanceledLogin, which should only happen when user clicks cancel instead of continue button.
Here is a public project if you want to give a try:
https://github.com/Azure-Samples/ms-identity-macOS-swift-objc
When start a ASWebAuthenticationSession by setting prefersEphemeralWebBrowserSession to false (default), there will be a popover asking "AppName" want to use "certainurl.com" to sign in. When tapping the continue button from popover, a safari window will show and user can put username and password to continue authentication.
However in beta 9, when user clicks the continue button, the popover will dismiss and send error back into the completion block which was passed in when init the ASWebAuthenticationSession. The error code is ASWebAuthenticationSessionErrorCodeCanceledLogin, which should only happen when user clicks cancel instead of continue button.
Here is a public project if you want to give a try:
https://github.com/Azure-Samples/ms-identity-macOS-swift-objc