Questions tagged [aswebauthenticationsession]

22 questions
9
votes
0 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…
5
votes
2 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
  • 27,054
  • 46
  • 150
  • 273
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
  • 27,054
  • 46
  • 150
  • 273
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
  • 9,325
  • 19
  • 83
  • 140
3
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…
3
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…
2
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
  • 33
  • 7
2
votes
1 answer

ASWebAuthenticationSession: Support own provider

My company has a couple of apps and would like to use it's own SSO service instead of using a public like google or facebook. For SSO we would like to use ASWebAuthenticationSession. What are the requirements to that SSO service to work with…
netshark1000
  • 6,563
  • 8
  • 49
  • 101
1
vote
0 answers

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…
1
vote
1 answer

ASWebAuthenticationSession completionHandler not called on Strava Authentication

ASWebAuthenticationSession completionHandler not called on clicking Authorize button in Strava Authentication. below given is my code.(used Using ASWebAuthenticationSession to connect to Strava account fails this link to implement.) import…
Ben Rockey
  • 834
  • 5
  • 18
1
vote
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
vote
1 answer

Clear cookies when using ASWebAuthenticationSession

How to clear cookies when using ASWebAuthenticationSession, the scenario is like, a different user can use the same device to login. If a user has already used it with SSO done, app is not insisting SSO for the new user. So need to clear…
ragul ml
  • 513
  • 2
  • 5
  • 17
1
vote
1 answer

Using ASWebAuthenticationSession to connect to Strava account fails

I have trouble using the new ASWebAuthenticationSession class that is used for the OAuth2 process in iOS applications. I want to use this class to connect my app with my Strava account. I have the following code: class AuthController { private…
inexcitus
  • 2,071
  • 2
  • 21
  • 34
0
votes
0 answers

How to get console log of ASWebAuthenticationSession

I debug the ASWebAuthenticationSession using safari, there it will give a 401 error. But I want to print this log information into the application.
1
2