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

Add support for custom Web Auth providers [SDK-3338] #699

Merged
merged 8 commits into from
May 26, 2022

Conversation

Widcket
Copy link
Contributor

@Widcket Widcket commented May 26, 2022

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

📋 Changes

This PR adds support for custom Web Auth providers, and includes a built-in provider that uses SFSafariViewController.
This merely merges the feature into master; all the code has been reviewed in previous PRs.

🎯 Testing

The changes have been tested manually using:

  • An iPhone 11 Pro running iOS 15.4.1
  • An iPhone 14 simulator running iOS 15.5, using Xcode 13.4 (13F17a)
  • macOS 12.4

Widcket and others added 7 commits May 17, 2022 11:49
* Implement custom Web Auth user agents

* Use a static factory

* Rename Safari provider methods

* Move custom description into user agents

* Remove optionals

* Add comment to SafariUserAgent

* Simplify implementation

* Return the closures directly

* Move Safari provider inside the library

* Handle other ASWebAuthenticationSessionError cases

* Move common logic to an extension

* Fix tests

* Remove whitespace
* Add unit tests

* Remove unnecessary import

* Fix matcher name

* Use ASProvider in WebAuth test

* Add platform guards

* Update Auth0Tests/SafariProviderSpec.swift

Co-authored-by: Adam Mcgrath <adam.mcgrath@auth0.com>
* Add API documentation

* Add link to example implementation

* Update Auth0/WebAuthUserAgent.swift

* Update Auth0/WebAuthUserAgent.swift
@Widcket Widcket requested a review from a team as a code owner May 26, 2022 20:43
@Widcket Widcket marked this pull request as draft May 26, 2022 20:43
@Widcket Widcket changed the title Feature/webauth providers Add support for custom Web Auth providers [SDK-3338] May 26, 2022
@Widcket Widcket marked this pull request as ready for review May 26, 2022 20:53
@Widcket Widcket merged commit 2515089 into master May 26, 2022
@Widcket Widcket deleted the feature/webauth-providers branch May 26, 2022 21:19
@Widcket Widcket mentioned this pull request May 26, 2022
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.

2 participants