-
Notifications
You must be signed in to change notification settings - Fork 986
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
feat(plugins): Better define plugin behaviour protocols #1514
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1514 +/- ##
=======================================
Coverage 81.34% 81.34%
=======================================
Files 16 16
Lines 1855 1855
=======================================
Hits 1509 1509
Misses 346 346 ☔ View full report in Codecov by Sentry. |
81ea6a4
to
778b874
Compare
Closes apacheGH-1212. Co-Authored-By: Christopher J. Brody <[email protected]>
This also adds a dictionary parameter containing the other navigation action details so that plugins can make choices based on frames. Closes apacheGH-1272. Closes apacheGH-1333. Co-Authored-By: Michael Tamburro <[email protected]>
778b874
to
2da37a6
Compare
without a credential. | ||
- Returns: A Boolean value indicating if the plugin is handling the request. | ||
*/ | ||
- (BOOL)willHandleAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge completionHandler:(void (^)(NSURLSessionAuthChallengeDisposition, NSURLCredential * _Nullable))completionHandler; |
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.
@erisu Updated this to be willHandleAuthenticationChallenge
and return a BOOL
so that multiple plugins can have a chance to respond
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.
LGTM
Platforms affected
iOS
Motivation and Context
Closes GH-1212.
Closes GH-1272.
Closes GH-1333.
Description
Adds protocols to formalize the methods that plugins should implement to interact with behaviour around authentication challenges and navigation decisions.
For navigation decisions, we now pass along the full navigation action details as a dictionary.
This also adds the ability for plugins to intercept and respond to server authentication challenges.
Testing
All existing tests pass.
Checklist