p2 / OAuth2

OAuth2 framework for macOS and iOS, written in Swift.
Other
1.14k stars 277 forks source link

Adds visionOS support. #408

Closed josephquigley closed 1 year ago

josephquigley commented 1 year ago

Many legacy authentication methods that OAuth2 supports are unavailable on visionOS. The only supported method is ASWebAuthenticationSession.

This PR compiles out the incompatible code, such as the OAuth2WebViewController and SFSafariViewControllerDelegate, allowing the visionOS app to compile and run. It also forces the ASWebAuthenticationSession method even if the configuration suggests otherwise.

ossus-lib commented 1 year ago

Thank you, this is great! The repo uses tab indentation, can you change your spaces so indentation matches? Then I'm happy to accept.

josephquigley commented 1 year ago

@ossus-lib Done!

josephquigley commented 1 year ago

@ossus-lib I've adjusted the whitespace and removed the dead code.