Questions tagged [aswebauthenticationsession]

39 questions
16
votes
2 answers

Does AsWebAuthenticationsession support universal links?

I use AsWebAuthenticationsession to authenticate from another application to my application. I open AsWebAuthenticationsession, and it redirects my application's universal links. The problem is when it redirects my application universal link, it…
8
votes
4 answers

How to get an auth code using ASWebAuthenticationSession?

I'm trying to obtain an auth code from Stripe's OAuth endpoint using ASWebAuthenticationSession - this event happens after the my Stripe redirect url gets called. Unfortunately, the authSession's completion handler doesn't call back with a…
7
votes
3 answers

ASWebAuthenticationSessionError.canceledLogin does not fire when swiping down to dismiss

I am creating an ASWebAuthenticationSession session and in the completion handler I have cleanup tasks for when the user cancel's the login: let session = ASWebAuthenticationSession(url: url, callbackURLScheme: redirectURI) { (callbackURL: URL?,…
TruMan1
  • 33,665
  • 59
  • 184
  • 335
5
votes
0 answers

ASWebAuthenticationSession only shows Cancel button

I am authenticating our web service using ASWebAuthenticationSession and for some reason the only option after the final redirect is Cancel. I had this working before where even if I did press Cancel, the callback Url was sent through the completion…
4
votes
2 answers

How to get Password AutoFill to work with ASWebAuthenticationSession?

I have a sample HTML form that follows the password auto-fill requirements. When navigating to the web page without the app, using the built-in Safari app, the native Password AutoFill dialogs for the login and signup forms correctly show: However,…
TruMan1
  • 33,665
  • 59
  • 184
  • 335
4
votes
0 answers

ASWebAuthentication and SFAuthentication login problem after logout on iOS 11 and iOS 12, not able to invalidate session

I am using ASWebAuthentication and SFAuthenticationto authenticate on a OAuth2 server with grant_type : authorization_code. Everything work perfect except of: user login successfully Logout by revoking access token and refresh token with status…
4
votes
4 answers

Using ASWebAuthentication in SwiftUI

Having a bit of trouble getting authentication to work from within a SwiftUI view. I’m using ASWebAuthentication and whenever I run I get an error: Cannot start ASWebAuthenticationSession without providing presentation context. Set…
Ronni
  • 55
  • 1
  • 7
4
votes
2 answers

ASWebAuthenticationSession in MacOS 10.15 (Catalina)

I am trying to implement the new ASWebAuthenticationSession in MacOS 10.15 and I'm getting a bit confused about the callbackURLScheme. The header file for ASWebAuthenticationSession says: The callback URL usually has a custom URL scheme. For the…
Darren
  • 10,182
  • 20
  • 95
  • 162
4
votes
1 answer

Using SFSafariViewController instead of ASWebAuthenticationSession/SFAuthenticationSession for OAuth

Our user experience team does not like the consent popup every time login page is opened. Also, we are looking to customize the look of the browser window presented when OAuth is implemented using…
3
votes
0 answers

SFAuthenticationSession, ASWebAuthenticationSession universal links redirect urls

I still don't quite get it. As far as I understand it we should do https redirects instead of using custom url schemes because everyone could define the custom schemes into their apps. Why are then Apple's solutions SFAuthenticationSession(used…
2
votes
1 answer

ASWebAuthenticationSession only triggers universal links about 50% of the time

We have an OAuth flow in our application and we're performing the "authorisation step" by opening ASWebAuthenticationSession. When it completes, we parse out the query parameters from the callback URL, validate, and continue with the rest of the…
2
votes
1 answer

ASWebAuthenticationSession get Cookies

im trying to use ASWebAuthenticationSession to authenticate with a private identity provider. Authentication with ASWebAuthenticationSession starts Callback with my custom scheme got called I need all Cookies of this requests to authenticate the…
2
votes
1 answer

Capacitor plugin with ASWebAuthenticationSession: must be used from main thread only

I'm trying to get rid off an annoying warning/error in the xcode console. I've implemented a custom plugin to open Keycloak using ASWebAuthenticationSession and I'm having issue figuring out how to call the main thread window. This is the…
2
votes
1 answer

ASWebAuthenticationSession provides no way to modify warning dialog

I am trying to implement a few different authentication mechanisms with my iOS application. The key is that the iOS application is distributed via the App Store and the server that it connects to is open source. For this customers are expected to…
2
votes
1 answer

ASWebAuthenticatioSession SSO dialog consent issue

When using SFAuthenticationSession or ASWebAuthenticationSession the user is currently prompted to give consent every time the window is presented. At some point the user opts to Sign Out and again is presented with a UIAlert asking their consent to…
1
2 3