Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions src/authenticationservices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ public enum ASAuthorizationProviderExtensionRequestOptions : ulong {
StrongerKeyAvailable = 1uL << 4,
[Mac (14, 4)]
UserKeyInvalid = 1uL << 5,
[Mac (26, 0)]
SetupAssistant = 1 << 6,
}

[TV (17, 0), iOS (17, 0), MacCatalyst (16, 4), Mac (13, 3)]
Expand Down Expand Up @@ -511,6 +513,22 @@ interface ASCredentialProviderViewController {
[NoTV, Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)]
[Export ("performPasskeyRegistrationWithoutUserInteractionIfPossible:")]
void PerformPasskeyRegistrationWithoutUserInteractionIfPossible (ASPasskeyCredentialRequest registrationRequest);

[iOS (26, 0), Mac (26, 0), MacCatalyst (26, 0), NoTV]
[Export ("reportPublicKeyCredentialUpdateForRelyingParty:userHandle:newName:")]
void ReportPublicKeyCredentialUpdate (string relyingParty, NSData userHandle, string newName);

[iOS (26, 0), Mac (26, 0), MacCatalyst (26, 0), NoTV]
[Export ("reportUnknownPublicKeyCredentialForRelyingParty:credentialID:")]
void ReportUnknownPublicKeyCredential (string relyingParty, NSData credentialId);

[iOS (26, 0), Mac (26, 0), MacCatalyst (26, 0), NoTV]
[Export ("reportAllAcceptedPublicKeyCredentialsForRelyingParty:userHandle:acceptedCredentialIDs:")]
void ReportAllAcceptedPublicKeyCredentials (string relyingParty, NSData userHandle, NSData [] acceptedCredentialIds);

[iOS (26, 0), Mac (26, 0), MacCatalyst (26, 0), NoTV]
[Export ("reportUnusedPasswordCredentialForDomain:userName:")]
void ReportUnusedPasswordCredential (string domain, string userName);
}

/// <summary>Associates a username and a password.</summary>
Expand Down Expand Up @@ -870,6 +888,8 @@ public enum ASAuthorizationError : long {
MatchedExcludedCredential = 1006,
CredentialImport = 1007,
CredentialExport = 1008,
PreferSignInWithApple = 1009,
DeviceNotConfiguredForPasskeyCreation = 1010,
}

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

[Mac (26, 0)]
[Export ("authenticationMethod")]
ASAuthorizationProviderExtensionAuthenticationMethod AuthenticationMethod { get; }
}

delegate void ASAuthorizationProviderExtensionLoginManagerAttestCallback ([NullAllowed] NSArray attestationCertificates, [NullAllowed] NSError error);
Expand Down Expand Up @@ -2307,8 +2330,19 @@ ASAuthorizationProviderExtensionSigningAlgorithm [] SupportedUserSecureEnclaveKe
[Mac (15, 0)]
[Export ("keyWillRotateForKeyType:newKey:loginManager:completion:")]
void KeyWillRotateForKeyType (ASAuthorizationProviderExtensionKeyType keyType, SecKey newKey, ASAuthorizationProviderExtensionLoginManager loginManager, Action<bool> completion);

[Mac (26, 0)]
[Export ("displayNamesForGroups:loginManager:completion:")]
void GetDisplayNames (string [] groups, ASAuthorizationProviderExtensionLoginManager loginManager, ASAuthorizationProviderExtensionRegistrationHandlerGetDisplayNamesCallback completion);

[Mac (26, 0)]
[Export ("profilePictureForUserUsingLoginManager:completion:")]
void GetProfilePictureForUser (ASAuthorizationProviderExtensionLoginManager loginManager, ASAuthorizationProviderExtensionRegistrationHandlerGetProfilePictureForUserCallback completion);
}

delegate void ASAuthorizationProviderExtensionRegistrationHandlerGetDisplayNamesCallback (NSDictionary<NSString, NSString> fullNames);
delegate void ASAuthorizationProviderExtensionRegistrationHandlerGetProfilePictureForUserCallback (NSData jpegData);

interface IASAuthorizationWebBrowserExternallyAuthenticatableRequest { }

[NoTV, NoiOS, NoMacCatalyst, Mac (13, 3)]
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This is an error enum, so we include all values from all platforms, even if the value doesn't exist on that platform.
!extra-enum-value! Managed value 1007 for ASAuthorizationError.CredentialImport not found in native headers
!extra-enum-value! Managed value 1008 for ASAuthorizationError.CredentialExport not found in native headers
!extra-enum-value! Managed value 1009 for ASAuthorizationError.PreferSignInWithApple not found in native headers
!extra-enum-value! Managed value 1010 for ASAuthorizationError.DeviceNotConfiguredForPasskeyCreation not found in native headers
Loading