-
Notifications
You must be signed in to change notification settings - Fork 230
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 support for iOS13 changes in ASWebAuthenticationSession #297
Conversation
@@ -100,7 +100,9 @@ public struct Telemetry { | |||
} | |||
|
|||
static func swiftVersion() -> String { | |||
#if swift(>=4.0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quick change to add support for 5.x logging and no you can't simply ask for the literal string version
@@ -236,7 +239,7 @@ class SafariWebAuth: WebAuth { | |||
} | |||
|
|||
private func generateDefaultState() -> String? { | |||
var data = Data(count: 32) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
compiler warning fix
@@ -127,4 +135,13 @@ class SafariAuthenticationSession: AuthSession { | |||
authSession = nil | |||
} | |||
} | |||
|
|||
#if swift(>=5.1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basically asks is this Xcode 11 as the compiler is 5.1
.circleci/config.yml
Outdated
steps: | ||
- run: | ||
name: Set Ruby Version | ||
command: echo "ruby-2.5" > ~/.ruby-version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Default ruby not working in this new image, this is the workaround.
@@ -1276,7 +1276,7 @@ | |||
isa = PBXProject; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general you can ignore these, it's just updating to latest version
Update Example App Update Deps
Update Telemetry
3bd3729
to
baac5b1
Compare
…auth0#297)" This reverts commit 882c513.
Changes
iOS 13 Requires presentationContextProvider to be set in ASWebAuthenticationSession so the Browser can be displayed. Without this, the WebAuthentication flow will fail.
This PR adds default window for this so there is no breaking changing required for this to be set by the developer.
Notes:
Developers will need to update to this minor otherwise the previous version which will compile will have a run time issue due to the breaking change in iOS 13 behaviour. See References
References
#295
Testing
Please describe how this can be tested by reviewers. Be specific about anything not tested and reasons why. If this library has unit and/or integration testing, tests should be added for new functionality and existing tests should complete without errors.
Checklist