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

Added WebAuth support to macOS [SDK-1545] #381

Merged
merged 4 commits into from
Apr 29, 2020
Merged

Conversation

Widcket
Copy link
Contributor

@Widcket Widcket commented Apr 29, 2020

Changes

This PR adds WebAuth support for macOS 10.15+ in a backwards-compatible way. No breaking changes were introduced to the public API.

The WebAuth logic was refactored to decouple the platform-specific parts. The changes are completely transparent to the user, and result in a more robust and maintainable implementation.

References

Combines the following already-reviewed PRs:

Closes #375

Testing

  • This change adds unit test coverage
  • This change has been tested on the latest version of the platform/language or why not

Checklist

* Refactor WebAuth and SafariWebAuth
* Refactor auth sessions

* Remove comment

* Add missing return

* Make SafariSession final

* Move extension to shared file

* Move shared logic to override

* Removed unnecessary compilation conditions

* Refactor SafariAuthenticationCallback

* Remove unnecessary else clause

* Rename SafariWebAuth to BaseWebAuth

* Use stripped url with SilentSafariViewController

* Add a default implementation to template methods
* Clean up project files

* Update README.md
* Implement WebAuth for macOS

* Gate ASWebAuthenticationSession for older macOS

* Use root plist

* Match build steps with iOS

* Remove plist target membership

* Update README.md

* Set the right macOS version in available check

* Address review feedback

* Rever changes to CredentialsManager

* Update README.md

* Add supported macOS version to the README
@Widcket Widcket added this to the vNext milestone Apr 29, 2020
@Widcket Widcket requested review from cocojoe and a team April 29, 2020 14:49
Copy link
Member

@cocojoe cocojoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All changes are from PRs previously approved.

@Widcket Widcket merged commit da2ba1d into master Apr 29, 2020
@Widcket Widcket deleted the feature/macos-web-auth branch April 29, 2020 16:48
@Widcket Widcket mentioned this pull request Apr 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: Universal Login for MacOS
2 participants