Skip to content

Commit 20e617e

Browse files
authored
[AuthenticationServices] Update to Xcode 26 beta 1-5. (#23529)
1 parent 704b154 commit 20e617e

File tree

5 files changed

+36
-22
lines changed

5 files changed

+36
-22
lines changed

src/authenticationservices.cs

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ public enum ASAuthorizationProviderExtensionRequestOptions : ulong {
150150
StrongerKeyAvailable = 1uL << 4,
151151
[Mac (14, 4)]
152152
UserKeyInvalid = 1uL << 5,
153+
[Mac (26, 0)]
154+
SetupAssistant = 1 << 6,
153155
}
154156

155157
[TV (17, 0), iOS (17, 0), MacCatalyst (16, 4), Mac (13, 3)]
@@ -511,6 +513,22 @@ interface ASCredentialProviderViewController {
511513
[NoTV, Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)]
512514
[Export ("performPasskeyRegistrationWithoutUserInteractionIfPossible:")]
513515
void PerformPasskeyRegistrationWithoutUserInteractionIfPossible (ASPasskeyCredentialRequest registrationRequest);
516+
517+
[iOS (26, 0), Mac (26, 0), MacCatalyst (26, 0), NoTV]
518+
[Export ("reportPublicKeyCredentialUpdateForRelyingParty:userHandle:newName:")]
519+
void ReportPublicKeyCredentialUpdate (string relyingParty, NSData userHandle, string newName);
520+
521+
[iOS (26, 0), Mac (26, 0), MacCatalyst (26, 0), NoTV]
522+
[Export ("reportUnknownPublicKeyCredentialForRelyingParty:credentialID:")]
523+
void ReportUnknownPublicKeyCredential (string relyingParty, NSData credentialId);
524+
525+
[iOS (26, 0), Mac (26, 0), MacCatalyst (26, 0), NoTV]
526+
[Export ("reportAllAcceptedPublicKeyCredentialsForRelyingParty:userHandle:acceptedCredentialIDs:")]
527+
void ReportAllAcceptedPublicKeyCredentials (string relyingParty, NSData userHandle, NSData [] acceptedCredentialIds);
528+
529+
[iOS (26, 0), Mac (26, 0), MacCatalyst (26, 0), NoTV]
530+
[Export ("reportUnusedPasswordCredentialForDomain:userName:")]
531+
void ReportUnusedPasswordCredential (string domain, string userName);
514532
}
515533

516534
/// <summary>Associates a username and a password.</summary>
@@ -870,6 +888,8 @@ public enum ASAuthorizationError : long {
870888
MatchedExcludedCredential = 1006,
871889
CredentialImport = 1007,
872890
CredentialExport = 1008,
891+
PreferSignInWithApple = 1009,
892+
DeviceNotConfiguredForPasskeyCreation = 1010,
873893
}
874894

875895
[TV (13, 0), iOS (13, 0)]
@@ -2238,6 +2258,9 @@ interface ASAuthorizationProviderExtensionLoginManager {
22382258
[Async]
22392259
void AttestPendingKey (ASAuthorizationProviderExtensionKeyType keyType, NSData clientDataHash, ASAuthorizationProviderExtensionLoginManagerAttestCallback completion);
22402260

2261+
[Mac (26, 0)]
2262+
[Export ("authenticationMethod")]
2263+
ASAuthorizationProviderExtensionAuthenticationMethod AuthenticationMethod { get; }
22412264
}
22422265

22432266
delegate void ASAuthorizationProviderExtensionLoginManagerAttestCallback ([NullAllowed] NSArray attestationCertificates, [NullAllowed] NSError error);
@@ -2307,8 +2330,19 @@ ASAuthorizationProviderExtensionSigningAlgorithm [] SupportedUserSecureEnclaveKe
23072330
[Mac (15, 0)]
23082331
[Export ("keyWillRotateForKeyType:newKey:loginManager:completion:")]
23092332
void KeyWillRotateForKeyType (ASAuthorizationProviderExtensionKeyType keyType, SecKey newKey, ASAuthorizationProviderExtensionLoginManager loginManager, Action<bool> completion);
2333+
2334+
[Mac (26, 0)]
2335+
[Export ("displayNamesForGroups:loginManager:completion:")]
2336+
void GetDisplayNames (string [] groups, ASAuthorizationProviderExtensionLoginManager loginManager, ASAuthorizationProviderExtensionRegistrationHandlerGetDisplayNamesCallback completion);
2337+
2338+
[Mac (26, 0)]
2339+
[Export ("profilePictureForUserUsingLoginManager:completion:")]
2340+
void GetProfilePictureForUser (ASAuthorizationProviderExtensionLoginManager loginManager, ASAuthorizationProviderExtensionRegistrationHandlerGetProfilePictureForUserCallback completion);
23102341
}
23112342

2343+
delegate void ASAuthorizationProviderExtensionRegistrationHandlerGetDisplayNamesCallback (NSDictionary<NSString, NSString> fullNames);
2344+
delegate void ASAuthorizationProviderExtensionRegistrationHandlerGetProfilePictureForUserCallback (NSData jpegData);
2345+
23122346
interface IASAuthorizationWebBrowserExternallyAuthenticatableRequest { }
23132347

23142348
[NoTV, NoiOS, NoMacCatalyst, Mac (13, 3)]

tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-AuthenticationServices.todo

Lines changed: 0 additions & 6 deletions
This file was deleted.

tests/xtro-sharpie/api-annotations-dotnet/iOS-AuthenticationServices.todo

Lines changed: 0 additions & 6 deletions
This file was deleted.

tests/xtro-sharpie/api-annotations-dotnet/macOS-AuthenticationServices.todo

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# This is an error enum, so we include all values from all platforms, even if the value doesn't exist on that platform.
22
!extra-enum-value! Managed value 1007 for ASAuthorizationError.CredentialImport not found in native headers
33
!extra-enum-value! Managed value 1008 for ASAuthorizationError.CredentialExport not found in native headers
4+
!extra-enum-value! Managed value 1009 for ASAuthorizationError.PreferSignInWithApple not found in native headers
5+
!extra-enum-value! Managed value 1010 for ASAuthorizationError.DeviceNotConfiguredForPasskeyCreation not found in native headers

0 commit comments

Comments
 (0)