Skip to content

Commit 1493844

Browse files
dalexsotoGitHub Actions Autoformatter
andauthored
[xcode26.2] Update AuthenticationServices to Xcode 26.2 Beta 1 (#24284)
Co-authored-by: GitHub Actions Autoformatter <[email protected]>
1 parent de2cda6 commit 1493844

File tree

5 files changed

+181
-73
lines changed

5 files changed

+181
-73
lines changed

src/authenticationservices.cs

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ public enum ASCredentialServiceIdentifierType : long {
7575
Domain,
7676
/// <summary>The identifier specifies a URL.</summary>
7777
Url,
78+
/// <summary>The identifier specifies an app.</summary>
79+
[MacCatalyst (26, 2), iOS (26, 2), Mac (26, 2)]
80+
App,
7881
}
7982

8083
/// <summary>Enumerates errors associated with a <see cref="AuthenticationServices.ASWebAuthenticationSession" />.</summary>
@@ -364,6 +367,16 @@ interface ASCredentialProviderExtensionContext {
364367
[NoTV, NoMac, iOS (18, 0), NoMacCatalyst]
365368
[Export ("completeRequestWithTextToInsert:completionHandler:")]
366369
void CompleteRequest (string textToInsert, [NullAllowed] Action<bool> completionHandler);
370+
371+
[Async]
372+
[NoTV, NoMac, iOS (26, 2), MacCatalyst (26, 2)]
373+
[Export ("completeSavePasswordRequestWithCompletionHandler:")]
374+
void CompleteSavePasswordRequest ([NullAllowed] Action<bool> completionHandler);
375+
376+
[Async]
377+
[NoTV, NoMac, iOS (26, 2), MacCatalyst (26, 2)]
378+
[Export ("completeGeneratePasswordRequestWithResults:completionHandler:")]
379+
void CompleteGeneratePasswordRequest (ASGeneratedPassword [] results, [NullAllowed] Action<bool> completionHandler);
367380
}
368381

369382
/// <summary>Holds the identification for a credential service.</summary>
@@ -390,6 +403,24 @@ interface ASCredentialServiceIdentifier : NSCopying, NSSecureCoding {
390403
/// <remarks>To be added.</remarks>
391404
[Export ("type")]
392405
ASCredentialServiceIdentifierType Type { get; }
406+
407+
/// <summary>
408+
/// Constructs a new <see cref="AuthenticationServices.ASCredentialServiceIdentifier" /> with the specified <paramref name="identifier" />, of the specified <paramref name="type" />, and with the specified <paramref name="displayName" />.
409+
/// </summary>
410+
/// <param name="identifier">To be added.</param>
411+
/// <param name="type">To be added.</param>
412+
/// <param name="displayName">To be added.</param>
413+
/// <remarks>To be added.</remarks>
414+
[NoTV, Mac (26, 2), iOS (26, 2), MacCatalyst (26, 2)]
415+
[Export ("initWithIdentifier:type:displayName:")]
416+
NativeHandle Constructor (string identifier, ASCredentialServiceIdentifierType type, string displayName);
417+
418+
/// <summary>Gets the display name.</summary>
419+
/// <value>To be added.</value>
420+
/// <remarks>To be added.</remarks>
421+
[NoTV, Mac (26, 2), iOS (26, 2), MacCatalyst (26, 2)]
422+
[NullAllowed, Export ("displayName")]
423+
string DisplayName { get; }
393424
}
394425

395426
/// <summary>Associates a <see cref="AuthenticationServices.ASPasswordCredentialIdentity.User" /> string with a record in the developer's credential database.</summary>
@@ -525,6 +556,22 @@ interface ASCredentialProviderViewController {
525556
[iOS (26, 0), Mac (26, 0), MacCatalyst (26, 0), NoTV]
526557
[Export ("reportUnusedPasswordCredentialForDomain:userName:")]
527558
void ReportUnusedPasswordCredential (string domain, string userName);
559+
560+
[NoTV, NoMac, iOS (26, 2), MacCatalyst (26, 2)]
561+
[Export ("performSavePasswordRequestWithoutUserInteractionIfPossible:")]
562+
void PerformSavePasswordRequestWithoutUserInteractionIfPossible (ASSavePasswordRequest savePasswordRequest);
563+
564+
[NoTV, NoMac, iOS (26, 2), MacCatalyst (26, 2)]
565+
[Export ("prepareInterfaceForSavePasswordRequest:")]
566+
void PrepareInterfaceForSavePasswordRequest (ASSavePasswordRequest savePasswordRequest);
567+
568+
[NoTV, NoMac, iOS (26, 2), MacCatalyst (26, 2)]
569+
[Export ("performGeneratePasswordsRequestWithoutUserInteraction:")]
570+
void PerformGeneratePasswordsRequestWithoutUserInteraction (ASGeneratePasswordsRequest generatePasswordsRequest);
571+
572+
[NoTV, NoMac, iOS (26, 2), MacCatalyst (26, 2)]
573+
[Export ("prepareInterfaceForGeneratePasswordsRequest:")]
574+
void PrepareInterfaceForGeneratePasswordsRequest (ASGeneratePasswordsRequest generatePasswordsRequest);
528575
}
529576

530577
/// <summary>Associates a username and a password.</summary>
@@ -3026,4 +3073,100 @@ interface ASAuthorizationProviderExtensionSigningAlgorithm222 {
30263073
[Field ("ASAuthorizationProviderExtensionSigningAlgorithmEd25519")]
30273074
NSNumber Ed25519 { get; }
30283075
}
3076+
3077+
[NoTV, NoMac, iOS (26, 2), MacCatalyst (26, 2)]
3078+
[Native]
3079+
public enum ASSavePasswordRequestEvent : long {
3080+
UserInitiated,
3081+
FormDidDisappear,
3082+
GeneratedPasswordFilled
3083+
}
3084+
3085+
3086+
[NoTV, NoMac, iOS (26, 2), MacCatalyst (26, 2)]
3087+
enum ASGeneratedPasswordKind {
3088+
[Field ("ASGeneratedPasswordKindAlphanumeric")]
3089+
Alphanumeric,
3090+
[Field ("ASGeneratedPasswordKindPassphrase")]
3091+
Passphrase,
3092+
[Field ("ASGeneratedPasswordKindStrong")]
3093+
Strong,
3094+
}
3095+
3096+
[NoTV, NoMac, iOS (26, 2), MacCatalyst (26, 2)]
3097+
[BaseType (typeof (NSObject))]
3098+
[DisableDefaultCtor]
3099+
interface ASGeneratedPassword : NSCopying, NSSecureCoding {
3100+
3101+
[BindAs (typeof (ASGeneratedPasswordKind))]
3102+
[Export ("kind")]
3103+
NSString Kind { get; }
3104+
3105+
[Export ("localizedName")]
3106+
string LocalizedName { get; }
3107+
3108+
[Export ("value")]
3109+
string Value { get; }
3110+
3111+
[Export ("initWithKind:value:")]
3112+
NativeHandle Constructor ([BindAs (typeof (ASGeneratedPasswordKind))] NSString kind, string value);
3113+
}
3114+
3115+
[NoTV, NoMac, iOS (26, 2), MacCatalyst (26, 2)]
3116+
[BaseType (typeof (NSObject))]
3117+
[DisableDefaultCtor]
3118+
interface ASGeneratePasswordsRequest : NSCopying, NSSecureCoding {
3119+
3120+
[Export ("serviceIdentifier")]
3121+
ASCredentialServiceIdentifier ServiceIdentifier { get; }
3122+
3123+
[NullAllowed, Export ("passwordFieldPasswordRules")]
3124+
string PasswordFieldPasswordRules { get; }
3125+
3126+
[NullAllowed, Export ("confirmPasswordFieldPasswordRules")]
3127+
string ConfirmPasswordFieldPasswordRules { get; }
3128+
3129+
[NullAllowed, Export ("passwordRulesFromQuirks")]
3130+
string PasswordRulesFromQuirks { get; }
3131+
3132+
[Export ("initWithServiceIdentifier:passwordFieldPasswordRules:confirmPasswordFieldPasswordRules:passwordRulesFromQuirks:")]
3133+
NativeHandle Constructor (ASCredentialServiceIdentifier serviceIdentifier, [NullAllowed] string passwordFieldPasswordRules, [NullAllowed] string confirmPasswordFieldPasswordRules, [NullAllowed] string passwordRulesFromQuirks);
3134+
}
3135+
3136+
[NoTV, NoMac, iOS (26, 2), MacCatalyst (26, 2)]
3137+
[BaseType (typeof (NSObject))]
3138+
[DisableDefaultCtor]
3139+
interface ASSavePasswordRequest : NSCopying, NSSecureCoding {
3140+
3141+
[Export ("serviceIdentifier")]
3142+
ASCredentialServiceIdentifier ServiceIdentifier { get; }
3143+
3144+
[Export ("credential")]
3145+
ASPasswordCredential Credential { get; }
3146+
3147+
[NullAllowed, Export ("title")]
3148+
string Title { get; }
3149+
3150+
[Export ("sessionID")]
3151+
string SessionId { get; }
3152+
3153+
[Export ("event")]
3154+
ASSavePasswordRequestEvent Event { get; }
3155+
3156+
[BindAs (typeof (ASGeneratedPasswordKind))]
3157+
[NullAllowed, Export ("passwordKind")]
3158+
NSString PasswordKind { get; }
3159+
3160+
[Export ("initWithServiceIdentifier:credential:sessionID:event:")]
3161+
NativeHandle Constructor (ASCredentialServiceIdentifier serviceIdentifier, ASPasswordCredential credential, string sessionId, ASSavePasswordRequestEvent @event);
3162+
3163+
[Export ("initWithServiceIdentifier:credential:title:sessionID:event:")]
3164+
NativeHandle Constructor (ASCredentialServiceIdentifier serviceIdentifier, ASPasswordCredential credential, [NullAllowed] string title, string sessionId, ASSavePasswordRequestEvent @event);
3165+
3166+
[Export ("initWithServiceIdentifier:credential:sessionID:event:passwordKind:")]
3167+
NativeHandle Constructor (ASCredentialServiceIdentifier serviceIdentifier, ASPasswordCredential credential, string sessionId, ASSavePasswordRequestEvent @event, [NullAllowed][BindAs (typeof (ASGeneratedPasswordKind))] NSString passwordKind);
3168+
3169+
[Export ("initWithServiceIdentifier:credential:title:sessionID:event:passwordKind:")]
3170+
NativeHandle Constructor (ASCredentialServiceIdentifier serviceIdentifier, ASPasswordCredential credential, [NullAllowed] string title, string sessionId, ASSavePasswordRequestEvent @event, [NullAllowed][BindAs (typeof (ASGeneratedPasswordKind))] NSString passwordKind);
3171+
}
30293172
}

tests/cecil-tests/Documentation.KnownFailures.txt

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,9 +1143,15 @@ F:AuthenticationServices.ASCredentialRequestType.PasskeyAssertion
11431143
F:AuthenticationServices.ASCredentialRequestType.PasskeyRegistration
11441144
F:AuthenticationServices.ASCredentialRequestType.Password
11451145
F:AuthenticationServices.ASExtensionErrorCode.MatchedExcludedCredential
1146+
F:AuthenticationServices.ASGeneratedPasswordKind.Alphanumeric
1147+
F:AuthenticationServices.ASGeneratedPasswordKind.Passphrase
1148+
F:AuthenticationServices.ASGeneratedPasswordKind.Strong
11461149
F:AuthenticationServices.ASPublicKeyCredentialClientDataCrossOriginValue.CrossOrigin
11471150
F:AuthenticationServices.ASPublicKeyCredentialClientDataCrossOriginValue.NotSet
11481151
F:AuthenticationServices.ASPublicKeyCredentialClientDataCrossOriginValue.SameOriginWithAncestors
1152+
F:AuthenticationServices.ASSavePasswordRequestEvent.FormDidDisappear
1153+
F:AuthenticationServices.ASSavePasswordRequestEvent.GeneratedPasswordFilled
1154+
F:AuthenticationServices.ASSavePasswordRequestEvent.UserInitiated
11491155
F:AuthenticationServices.ASUserAgeRange.Child
11501156
F:AuthenticationServices.ASUserAgeRange.NotChild
11511157
F:AuthenticationServices.ASUserAgeRange.Unknown
@@ -9234,15 +9240,23 @@ M:AuthenticationServices.ASCredentialIdentityStore.SaveCredentialIdentityEntries
92349240
M:AuthenticationServices.ASCredentialIdentityStore.SaveCredentialIdentityEntriesAsync(AuthenticationServices.IASCredentialIdentity[])
92359241
M:AuthenticationServices.ASCredentialProviderExtensionContext.CompleteAssertionRequest(AuthenticationServices.ASPasskeyAssertionCredential,System.Action{System.Boolean})
92369242
M:AuthenticationServices.ASCredentialProviderExtensionContext.CompleteAssertionRequestAsync(AuthenticationServices.ASPasskeyAssertionCredential)
9243+
M:AuthenticationServices.ASCredentialProviderExtensionContext.CompleteGeneratePasswordRequest(AuthenticationServices.ASGeneratedPassword[],System.Action{System.Boolean})
9244+
M:AuthenticationServices.ASCredentialProviderExtensionContext.CompleteGeneratePasswordRequestAsync(AuthenticationServices.ASGeneratedPassword[])
92379245
M:AuthenticationServices.ASCredentialProviderExtensionContext.CompleteOneTimeCodeRequest(AuthenticationServices.ASOneTimeCodeCredential,System.Action{System.Boolean})
92389246
M:AuthenticationServices.ASCredentialProviderExtensionContext.CompleteOneTimeCodeRequestAsync(AuthenticationServices.ASOneTimeCodeCredential)
92399247
M:AuthenticationServices.ASCredentialProviderExtensionContext.CompleteRegistrationRequest(AuthenticationServices.ASPasskeyRegistrationCredential,System.Action{System.Boolean})
92409248
M:AuthenticationServices.ASCredentialProviderExtensionContext.CompleteRegistrationRequestAsync(AuthenticationServices.ASPasskeyRegistrationCredential)
92419249
M:AuthenticationServices.ASCredentialProviderExtensionContext.CompleteRequest(System.String,System.Action{System.Boolean})
92429250
M:AuthenticationServices.ASCredentialProviderExtensionContext.CompleteRequestAsync(System.String)
9251+
M:AuthenticationServices.ASCredentialProviderExtensionContext.CompleteSavePasswordRequest(System.Action{System.Boolean})
9252+
M:AuthenticationServices.ASCredentialProviderExtensionContext.CompleteSavePasswordRequestAsync
9253+
M:AuthenticationServices.ASCredentialProviderViewController.PerformGeneratePasswordsRequestWithoutUserInteraction(AuthenticationServices.ASGeneratePasswordsRequest)
92439254
M:AuthenticationServices.ASCredentialProviderViewController.PerformPasskeyRegistrationWithoutUserInteractionIfPossible(AuthenticationServices.ASPasskeyCredentialRequest)
9255+
M:AuthenticationServices.ASCredentialProviderViewController.PerformSavePasswordRequestWithoutUserInteractionIfPossible(AuthenticationServices.ASSavePasswordRequest)
92449256
M:AuthenticationServices.ASCredentialProviderViewController.PrepareCredentialList(AuthenticationServices.ASCredentialServiceIdentifier[],AuthenticationServices.ASPasskeyCredentialRequestParameters)
9257+
M:AuthenticationServices.ASCredentialProviderViewController.PrepareInterfaceForGeneratePasswordsRequest(AuthenticationServices.ASGeneratePasswordsRequest)
92459258
M:AuthenticationServices.ASCredentialProviderViewController.PrepareInterfaceForPasskeyRegistration(AuthenticationServices.IASCredentialRequest)
9259+
M:AuthenticationServices.ASCredentialProviderViewController.PrepareInterfaceForSavePasswordRequest(AuthenticationServices.ASSavePasswordRequest)
92469260
M:AuthenticationServices.ASCredentialProviderViewController.PrepareInterfaceForUserChoosingTextToInsert
92479261
M:AuthenticationServices.ASCredentialProviderViewController.PrepareInterfaceToProvideCredential(AuthenticationServices.IASCredentialRequest)
92489262
M:AuthenticationServices.ASCredentialProviderViewController.PrepareOneTimeCodeCredentialList(AuthenticationServices.ASCredentialServiceIdentifier[])
@@ -9252,6 +9266,8 @@ M:AuthenticationServices.ASCredentialProviderViewController.ReportPublicKeyCrede
92529266
M:AuthenticationServices.ASCredentialProviderViewController.ReportUnknownPublicKeyCredential(System.String,Foundation.NSData)
92539267
M:AuthenticationServices.ASCredentialProviderViewController.ReportUnusedPasswordCredential(System.String,System.String)
92549268
M:AuthenticationServices.ASExtensionErrorCodeExtensions.#ctor
9269+
M:AuthenticationServices.ASGeneratedPassword.#ctor(AuthenticationServices.ASGeneratedPasswordKind,System.String)
9270+
M:AuthenticationServices.ASGeneratePasswordsRequest.#ctor(AuthenticationServices.ASCredentialServiceIdentifier,System.String,System.String,System.String)
92559271
M:AuthenticationServices.ASOneTimeCodeCredential.#ctor(System.String)
92569272
M:AuthenticationServices.ASOneTimeCodeCredential.Create(System.String)
92579273
M:AuthenticationServices.ASOneTimeCodeCredentialIdentity.#ctor(AuthenticationServices.ASCredentialServiceIdentifier,System.String,System.String)
@@ -9274,6 +9290,10 @@ M:AuthenticationServices.ASPasswordCredentialRequest.#ctor(AuthenticationService
92749290
M:AuthenticationServices.ASPasswordCredentialRequest.Request(AuthenticationServices.ASPasswordCredentialIdentity)
92759291
M:AuthenticationServices.ASPublicKeyCredentialClientData.#ctor(Foundation.NSData,System.String)
92769292
M:AuthenticationServices.ASPublicKeyCredentialClientData.Dispose(System.Boolean)
9293+
M:AuthenticationServices.ASSavePasswordRequest.#ctor(AuthenticationServices.ASCredentialServiceIdentifier,AuthenticationServices.ASPasswordCredential,System.String,AuthenticationServices.ASSavePasswordRequestEvent,AuthenticationServices.ASGeneratedPasswordKind)
9294+
M:AuthenticationServices.ASSavePasswordRequest.#ctor(AuthenticationServices.ASCredentialServiceIdentifier,AuthenticationServices.ASPasswordCredential,System.String,AuthenticationServices.ASSavePasswordRequestEvent)
9295+
M:AuthenticationServices.ASSavePasswordRequest.#ctor(AuthenticationServices.ASCredentialServiceIdentifier,AuthenticationServices.ASPasswordCredential,System.String,System.String,AuthenticationServices.ASSavePasswordRequestEvent,AuthenticationServices.ASGeneratedPasswordKind)
9296+
M:AuthenticationServices.ASSavePasswordRequest.#ctor(AuthenticationServices.ASCredentialServiceIdentifier,AuthenticationServices.ASPasswordCredential,System.String,System.String,AuthenticationServices.ASSavePasswordRequestEvent)
92779297
M:AuthenticationServices.ASSettingsHelper.OpenCredentialProviderAppSettings(System.Action{Foundation.NSError})
92789298
M:AuthenticationServices.ASSettingsHelper.OpenCredentialProviderAppSettingsAsync
92799299
M:AuthenticationServices.ASSettingsHelper.OpenVerificationCodeAppSettings(System.Action{Foundation.NSError})
@@ -18785,6 +18805,13 @@ P:AuthenticationServices.ASAuthorizationWebBrowserPlatformPublicKeyCredential.Re
1878518805
P:AuthenticationServices.ASAuthorizationWebBrowserPlatformPublicKeyCredential.UserHandle
1878618806
P:AuthenticationServices.ASAuthorizationWebBrowserPublicKeyCredentialManager.AuthorizationStateForPlatformCredentials
1878718807
P:AuthenticationServices.ASAuthorizationWebBrowserPublicKeyCredentialManager.IsDeviceConfiguredForPasskeys
18808+
P:AuthenticationServices.ASGeneratedPassword.Kind
18809+
P:AuthenticationServices.ASGeneratedPassword.LocalizedName
18810+
P:AuthenticationServices.ASGeneratedPassword.Value
18811+
P:AuthenticationServices.ASGeneratePasswordsRequest.ConfirmPasswordFieldPasswordRules
18812+
P:AuthenticationServices.ASGeneratePasswordsRequest.PasswordFieldPasswordRules
18813+
P:AuthenticationServices.ASGeneratePasswordsRequest.PasswordRulesFromQuirks
18814+
P:AuthenticationServices.ASGeneratePasswordsRequest.ServiceIdentifier
1878818815
P:AuthenticationServices.ASOneTimeCodeCredential.Code
1878918816
P:AuthenticationServices.ASOneTimeCodeCredentialIdentity.Label
1879018817
P:AuthenticationServices.ASOneTimeCodeCredentialIdentity.Rank
@@ -18836,6 +18863,12 @@ P:AuthenticationServices.ASPublicKeyCredentialClientData.Challenge
1883618863
P:AuthenticationServices.ASPublicKeyCredentialClientData.CrossOrigin
1883718864
P:AuthenticationServices.ASPublicKeyCredentialClientData.Origin
1883818865
P:AuthenticationServices.ASPublicKeyCredentialClientData.TopOrigin
18866+
P:AuthenticationServices.ASSavePasswordRequest.Credential
18867+
P:AuthenticationServices.ASSavePasswordRequest.Event
18868+
P:AuthenticationServices.ASSavePasswordRequest.PasswordKind
18869+
P:AuthenticationServices.ASSavePasswordRequest.ServiceIdentifier
18870+
P:AuthenticationServices.ASSavePasswordRequest.SessionId
18871+
P:AuthenticationServices.ASSavePasswordRequest.Title
1883918872
P:AuthenticationServices.ASWebAuthenticationSession.AdditionalHeaderFields
1884018873
P:AuthenticationServices.ASWebAuthenticationSession.CanStart
1884118874
P:AuthenticationServices.ASWebAuthenticationSession.PrefersEphemeralWebBrowserSession
@@ -25599,6 +25632,9 @@ T:AuthenticationServices.ASCoseAlgorithmIdentifier
2559925632
T:AuthenticationServices.ASCredentialIdentityStoreGetCredentialIdentitiesHandler
2560025633
T:AuthenticationServices.ASCredentialIdentityTypes
2560125634
T:AuthenticationServices.ASCredentialRequestType
25635+
T:AuthenticationServices.ASGeneratedPassword
25636+
T:AuthenticationServices.ASGeneratedPasswordKind
25637+
T:AuthenticationServices.ASGeneratePasswordsRequest
2560225638
T:AuthenticationServices.ASOneTimeCodeCredential
2560325639
T:AuthenticationServices.ASOneTimeCodeCredentialIdentity
2560425640
T:AuthenticationServices.ASOneTimeCodeCredentialRequest
@@ -25614,6 +25650,8 @@ T:AuthenticationServices.ASPasskeyRegistrationCredentialExtensionOutput
2561425650
T:AuthenticationServices.ASPasswordCredentialRequest
2561525651
T:AuthenticationServices.ASPublicKeyCredentialClientData
2561625652
T:AuthenticationServices.ASPublicKeyCredentialClientDataCrossOriginValue
25653+
T:AuthenticationServices.ASSavePasswordRequest
25654+
T:AuthenticationServices.ASSavePasswordRequestEvent
2561725655
T:AuthenticationServices.ASSettingsHelper
2561825656
T:AuthenticationServices.ASSettingsHelperRequestToTurnOnCredentialProviderExtensionCallback
2561925657
T:AuthenticationServices.ASUserAgeRange

0 commit comments

Comments
 (0)