Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS 13 Beta changes, Xcode 11 Beta and Auth0 Swift SDK. #295

Closed
4 tasks done
CapeFurSeal opened this issue Aug 13, 2019 · 10 comments
Closed
4 tasks done

iOS 13 Beta changes, Xcode 11 Beta and Auth0 Swift SDK. #295

CapeFurSeal opened this issue Aug 13, 2019 · 10 comments

Comments

@CapeFurSeal
Copy link

CapeFurSeal commented Aug 13, 2019

Description

When calling the webAuth function in iOS 13 nothing happens as the new delegate has not been implemented. Will this be fixed before the iOS 13 release?

Error:
Failed with Error Domain=com.apple.AuthenticationServices.WebAuthenticationSession Code=2 "Cannot start ASWebAuthenticationSession without providing presentation context. Set presentationContextProvider before calling -start." UserInfo={NSDebugDescription=Cannot start ASWebAuthenticationSession without providing presentation context. Set presentationContextProvider before calling -start.}

Screenshot 2019-08-17 at 09 21 38

Auth0
        .authentication(clientId:"", domain:"")
        .webAuth(withConnection:"")
        .start { result in
          switch result {
          case .success(let credentials):
            print("credentials: \(credentials)")
          case .failure(let error):
            print("Failed with \(error)")
          }
      }

Prerequisites

  • Did you check the documentation? [Add a link]
  • Did you check the Auth0 Community?
  • Are you reporting this to the correct repository?
  • Are there any related or duplicate Issues or PRs for this issue?
@cocojoe
Copy link
Member

cocojoe commented Aug 15, 2019

Support will be made for iOS 13. You can have a play with the beta branch in #297 and feedback if you like.

@CapeFurSeal
Copy link
Author

Thanks @cocojoe . Much appreciated.

@nickgarfield
Copy link

I just pulled the latest release 1.17.0 (released a couple hours ago) and am still seeing this error. Is there anything new we need to pass along in the webAuth call to resolve this?

@CapeFurSeal
Copy link
Author

This worked perfectly on iOS 13.1 Public beta 2 with branch #297 .

@cocojoe
Copy link
Member

cocojoe commented Sep 16, 2019

All of this is addressed in 17.1 release.

@cocojoe cocojoe closed this as completed Sep 16, 2019
@Tirth21896
Copy link

I have updated my pods with all new pod release 1.18.0 and it's still giving me "Error Domain=com.apple.AuthenticationServices.WebAuthenticationSession Code=2 "Cannot start ASWebAuthenticationSession without providing presentation context. Set presentationContextProvider before calling -start." UserInfo={NSDebugDescription=Cannot start ASWebAuthenticationSession without providing presentation context. Set presentationContextProvider before calling -start.}" error.

@cocojoe
Copy link
Member

cocojoe commented Oct 1, 2019

I would guess it relates to https://github.com/auth0/Auth0.swift#important-notice

@Tirth21896
Copy link

My bad when I cleared my build folder and then build it again it worked

@leojkwan
Copy link

don't know what I did wrong, on iOS 13, Swift 5.0 Xcode 11.1. ran into same issue. reverted back to 1.17.1 and fixed the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants
@cocojoe @CapeFurSeal @nickgarfield @leojkwan @Tirth21896 and others