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

Auth0.webAuth() doesn't work during migration from iOS to VisionOS platform #823

Open
6 tasks done
DanilRostov opened this issue Jan 14, 2024 · 14 comments
Open
6 tasks done
Assignees
Labels
feature request A feature has been asked for or suggested by the community

Comments

@DanilRostov
Copy link

Checklist

Description

Hi Auth0 team. Thank you for the great product! I have iOS application that I'm migration to VisionOS platform. I have auth0 in iOS app and that works just fine. I use webAuth() method and during migration to VisionOS I got the next error: "Module 'Auth0' has no member named 'webAuth'". I discovered the source code a little bit and found the next condition in "Auth0" file that are not passing: #if WEB_AUTH_PLATFORM. That should be the root cause why error occues on compilation stage. I tried to apply the flag "-DWEB_AUTH_PLATFORM" to "Swift Compiler - Custom Flags", but it didn't help. Are there any tweaks that I can apply to my project and make it work? What would be the recomended approach for VisionOS platform?

I would be happy if someone provide any relevant information. Thank you!

Reproduction

  1. Create VisionOS application
  2. Add Auth0 Swift Package 2.5.0
  3. Use webAuth() method
  4. Compile the project

Additional context

No response

Auth0.swift version

2.5.0

Platform

iOS

Platform version(s)

17.2

Xcode version

15.1

Package manager

Swift Package Manager

@DanilRostov DanilRostov added the bug This points to a verified bug in the code label Jan 14, 2024
@DanilRostov DanilRostov changed the title Auth0.webAuth() doesn't work with VisionOS platform Auth0.webAuth() doesn't work during migration from iOS to VisionOS platform Jan 14, 2024
@Widcket Widcket added feature request A feature has been asked for or suggested by the community and removed bug This points to a verified bug in the code labels Jan 15, 2024
@Widcket
Copy link
Contributor

Widcket commented Jan 15, 2024

Hi @DanilRostov, thanks for raising this.

The SDK does not yet support VisionOS. Unfortunately, I don't have any news to share ATM regarding future plans around this.

I discovered the source code a little bit and found the next condition in "Auth0" file that are not passing: #if WEB_AUTH_PLATFORM. That should be the root cause why error occues on compilation stage.

WEB_AUTH_PLATFORM is defined:

@thefaj
Copy link

thefaj commented Feb 5, 2024

Very interested in visionOS support as well for our app.
Thank you for prioritizing this (lack of Auth0 support is a blocking issue for us).

@cgcardona
Copy link

We're also very interested in VisionOS support. We love Auth0 and are using it for our MacOS and iOS apps! Would love to also use it for VisionOS.

Thanks for all the great work!

@thefaj
Copy link

thefaj commented Feb 19, 2024

Not sure why Auth0 didn't just update this library as compatible for visionOS way back in June 2023 (maybe there's a staffing issue inside the company?).

Anyway, the library works just fine on visionOS once you update the Swift library to 5.9 and add in visionOS flags in this and the SimpleKeychain repositories. I have a fork that fixes things for the Swift Package Manager. I ignored the Cocoapods or Carthage stuff and got rid of the XCTest targets that aren't necessary.
https://github.com/senstream/Auth0.swift

Note: Just use this as a reference to get things up and running in your project.

@cgcardona
Copy link

@thefaj this is great! I'll check out your fork. Thanks!

FWIW I contacted Auth0 on X and asked them to share this thread w/ their engineering team and they said that they would.

@thefaj
Copy link

thefaj commented Feb 19, 2024

@cgcardona Awesome! And good luck with your visionOS work! 🥽

It looks like Apple WWDR reached out to Auth0 in December to get visionOS support added, but Auth0 marked the request as invalid: #818

@Widcket
Copy link
Contributor

Widcket commented Feb 19, 2024

Hi @thefaj,

Not sure why Auth0 didn't just update this library as compatible for visionOS way back in June 2023 (maybe there's a staffing issue inside the company?).

The visionOS SDK only became stable last month with the release of Xcode 15.2. We can't add support for the non-stable SDK of a new Apple platform, as things are bound to change. For example, at first #if os(iOS) evaluated to true on visionOS, then it changed to #if os(xrOS), and now it's #if os(visionOS).

once you update the Swift library to 5.9 and add in visionOS flags

That requires Xcode 15+; but as of today it's still possible to upload to the App Store apps built with Xcode 14. And that will be the case until the last days of April. So we can't drop support for Xcode 14 just yet, as per our support policy.

Screenshot 2024-02-19 at 19 36 12

I ignored the Cocoapods or Carthage stuff and got rid of the XCTest targets that aren't necessary.

We need to ensure to support Carthage and Cocoapods as well, and we can't simply remove the entire test target from Package.swift.

It looks like Apple WWDR reached out to Auth0 in December to get visionOS support added, but Auth0 marked the request as invalid

That issue was created by an anonymous account with no activity and, as such, was not taken seriously.

Thanks for your patience on this.

@thefaj
Copy link

thefaj commented Feb 19, 2024

@Widcket Thanks for making this a priority.

@NumaNumaNuma
Copy link

NumaNumaNuma commented Apr 18, 2024

Hi @Widcket , any update on this?

@kkarimz
Copy link

kkarimz commented May 9, 2024

Hello @Widcket , any update on this please or timeline on when it will be supported? Thanks!

@thefaj
Copy link

thefaj commented May 9, 2024

fortunately the sdk is open source, so we’re shipping with my branch on visionOS. The lack of communication from Auth0 is disturbing, however. I’ve filed a complaint against this sdk with Auth0 internal support but of course got no response.

We’re exploring alternatives in case this is a sign that Auth0/Okta as a company is in decline. (Their customer support certainly is non existent.)

@desusai7
Copy link
Contributor

Dear Community,

I'd like to extend my apologies for the recent lack of communication and support regarding our SDK. The SDKs team recently underwent restructuring, which impacted our ability to respond promptly. However, I want to assure you that the new team is actively addressing these issues.

I will personally ensure that clear timelines and updates are provided by the end of next week. Thank you for your patience and valuable feedback.

@desusai7 desusai7 self-assigned this May 10, 2024
@brth31
Copy link

brth31 commented May 10, 2024

@thefaj @kkarimz @NumaNumaNuma thank you so much for your patience here! I'm Bharath from the Auth0 product team. In the upcoming weeks, we are planning to address all open issues across our portfolio of SDKs. We also have some exciting new releases coming up this quarter.

We will report back with timelines and updates on this issue by next week :)

@desusai7
Copy link
Contributor

Hi everyone,

We really appreciate your patience. We’ve discussed this internally, and as promised, I’m excited to share information about our timelines. We are planning to release visionOS support by mid-June.

Thank you for your understanding and support!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request A feature has been asked for or suggested by the community
Projects
None yet
Development

No branches or pull requests

8 participants