Changeset 247547 in webkit


Ignore:
Timestamp:
Jul 17, 2019 5:15:00 PM (5 years ago)
Author:
jiewen_tan@apple.com
Message:

Provide a NSURL cateogry to tell AppSSO Kerberos URLs
https://bugs.webkit.org/show_bug.cgi?id=199887
<rdar://problem/52323161>

Reviewed by Brent Fulgham.

  • UIProcess/Cocoa/SOAuthorization/SOAuthorizationNSURLExtras.h:
  • UIProcess/Cocoa/SOAuthorization/SOAuthorizationNSURLExtras.mm:

(+[NSURL _web_willPerformSOKerberosAuthorizationWithURL:]):

Location:
trunk/Source/WebKit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r247545 r247547  
     12019-07-17  Jiewen Tan  <jiewen_tan@apple.com>
     2
     3        Provide a NSURL cateogry to tell AppSSO Kerberos URLs
     4        https://bugs.webkit.org/show_bug.cgi?id=199887
     5        <rdar://problem/52323161>
     6
     7        Reviewed by Brent Fulgham.
     8
     9        * UIProcess/Cocoa/SOAuthorization/SOAuthorizationNSURLExtras.h:
     10        * UIProcess/Cocoa/SOAuthorization/SOAuthorizationNSURLExtras.mm:
     11        (+[NSURL _web_willPerformSOKerberosAuthorizationWithURL:]):
     12
    1132019-07-17  Antoine Quint  <graouts@apple.com>
    214
  • trunk/Source/WebKit/UIProcess/Cocoa/SOAuthorization/SOAuthorizationNSURLExtras.h

    r246527 r247547  
    2626#pragma once
    2727
    28 // FIXME rdar://problem/50028246 Remove the following once the radar is fixed.
    2928@interface NSURL (SOAuthorizationExtras)
    3029
     30// FIXME: <rdar://problem/50028246> Remove the following once the radar is fixed.
    3131+ (BOOL)_web_canPerformAuthorizationWithURL:(NSURL *)url;
    3232
     33// FIXME: <rdar://problem/53224485> Remove the following once the radar is fixed.
     34+ (BOOL)_web_willPerformSOKerberosAuthorizationWithURL:(NSURL *)url;
     35
    3336@end
  • trunk/Source/WebKit/UIProcess/Cocoa/SOAuthorization/SOAuthorizationNSURLExtras.mm

    r246527 r247547  
    4040}
    4141
     42+ (BOOL)_web_willPerformSOKerberosAuthorizationWithURL:(NSURL *)url
     43{
     44#if HAVE(APP_SSO)
     45    return [PAL::getSOAuthorizationClass() canPerformAuthorizationWithURL:url responseCode:401];
     46#else
     47    return false;
     48#endif
     49}
     50
    4251@end
Note: See TracChangeset for help on using the changeset viewer.