@@ -414,7 +414,21 @@
Loading
414 414
    NSURL *url = navigationAction.request.URL;
415 415
    BOOL hasPrefix = [url.absoluteString hasPrefix:self.redirectURLPrefix];
416 416
    if (hasPrefix) {
417 -
        [self _dismissWithSuccess:YES url:url error:nil];
417 +
        NSURLComponents* components = [[NSURLComponents alloc] initWithString:url.absoluteString];
418 +
        NSArray<NSURLQueryItem *> * items = components.queryItems;
419 +
        if (items) {
420 +
            for (NSURLQueryItem * queryItem in items) {
421 +
                if ([queryItem.name isEqualToString:@"denied"]) {
422 +
                    [self _dismissWithSuccess:NO url:url error:nil];
423 +
                    break;
424 +
                } else if ([queryItem.name isEqualToString:@"oauth_verifier"] || [queryItem.name isEqualToString:@"oauth_token" ]) {
425 +
                    [self _dismissWithSuccess:YES url:url error:nil];
426 +
                    break;;
427 +
                }
428 +
            }
429 +
        } else {
430 +
            [self _dismissWithSuccess:NO url:url error:nil];
431 +
        }
418 432
        decisionHandler(WKNavigationActionPolicyCancel);
419 433
        return;
420 434
    } else if (navigationAction.navigationType == UIWebViewNavigationTypeLinkClicked && [self.dataSource dialog:self shouldOpenURLInExternalBrowser:url]) {
Files Coverage
Parse 76.03%
ParseFacebookUtils/ParseFacebookUtils 94.08%
ParseTwitterUtils/ParseTwitterUtils 70.82%
Project Totals (243 files) 75.89%
2033.3
default=
TRAVIS_OS_NAME=osx
2033.2
default=
TRAVIS_OS_NAME=osx
1
coverage:
2
  ignore:
3
    - Parse/Tests/.*
4
    - ParseTwitterUtils/Tests/.*
5
    - ParseFacebookUtils/Tests/.*
6
  status:
7
    patch: true
8
    changes: false
9
    project:
10
      default:
11
        target: 65
12
comment: false
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading