SecSharedCredential.RequestSharedWebCredential Method

Definition

Asynchronously requests shared web credentials from the iCloud Keychain for the specified domain and account.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.Optimizable)]
public static void RequestSharedWebCredential(string domainName, string account, Action<Security.SecSharedCredentialInfo[],Foundation.NSError> handler);
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.Optimizable)]
public static void RequestSharedWebCredential(string? domainName, string? account, Action<Security.SecSharedCredentialInfo[]?,Foundation.NSError?> handler);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.Optimizable)>]
static member RequestSharedWebCredential : string * string * Action<Security.SecSharedCredentialInfo[], Foundation.NSError> -> unit

Parameters

domainName
String

The fully qualified domain name of the website to request credentials for, or null to search all domains in the app's Associated Domains entitlement.

account
String

The account name to request credentials for, or null to request credentials for all accounts on the matching domain.

handler
Action<SecSharedCredentialInfo[],NSError>

A callback invoked when the request completes, receiving an array of SecSharedCredentialInfo with the matching credentials and an NSError if the request failed.

Attributes

Remarks

This method requires that the app has an Associated Domains entitlement configured for the requested domain. The request may prompt the user for permission.

Applies to