The **AuthorizationExtensionAbility** module provides APIs for implementing authorization to app accounts based on the ExtensionAbility framework.
> **NOTE**
>
> The initial APIs of this module are supported since API version 10. Newly added APIs will be marked with a superscript to indicate their earliest API version.
| name | string | Yes | Name of the app account to create. |
| name | string | Yes | Name of the app account to create. |
| options | [CreateAccountOptions](#createaccountoptions9) | No | Options for creating the app account. You can customize data based on service requirements, but do not add sensitive data (such as passwords and tokens).<br>By default, no value is passed, which means no additional information needs to be added for the account.|
| options | [CreateAccountOptions](#createaccountoptions9) | No | Options for creating the app account. You can customize data based on service requirements, but do not add sensitive data (such as passwords and tokens).<br>By default, no value is passed, which means no additional information needs to be added for the account.|
**Return value**
**Return value**
...
@@ -730,7 +730,7 @@ Sets a credential for an app account. This API uses an asynchronous callback to
...
@@ -730,7 +730,7 @@ Sets a credential for an app account. This API uses an asynchronous callback to
| ID| Error Message|
| ID| Error Message|
| ------- | -------|
| ------- | -------|
| 12300001 | System service exception. |
| 12300001 | System service exception. |
| 12300002 | Invalid name or credentialType or credential. |
| 12300002 | Invalid name, credentialType, or credential. |
| 12300003 | Account not found. |
| 12300003 | Account not found. |
**Example**
**Example**
...
@@ -776,7 +776,7 @@ Sets a credential for an app account. This API uses a promise to return the resu
...
@@ -776,7 +776,7 @@ Sets a credential for an app account. This API uses a promise to return the resu
| ID| Error Message|
| ID| Error Message|
| ------- | -------|
| ------- | -------|
| 12300001 | System service exception. |
| 12300001 | System service exception. |
| 12300002 | Invalid name or credentialType or credential. |
| 12300002 | Invalid name, credentialType, or credential. |
| 12300003 | Account not found. |
| 12300003 | Account not found. |
**Example**
**Example**
...
@@ -2780,7 +2780,7 @@ Adds an app account name and additional information. This API uses an asynchrono
...
@@ -2780,7 +2780,7 @@ Adds an app account name and additional information. This API uses an asynchrono
| name | string | Yes | Name of the target app account. |
| name | string | Yes | Name of the target app account. |
| extraInfo | string | No | Additional information (information that can be converted to the string type).<br>The additional information cannot be sensitive information (such as the password and token) of the app account.<br>By default, no value is passed, which means no additional information needs to be added for the account.|
| extraInfo | string | No | Additional information (information that can be converted to the string type).<br>The additional information cannot be sensitive information (such as the password and token) of the app account.<br>By default, no value is passed, which means no additional information needs to be added for the account.|
**Return value**
**Return value**
...
@@ -4982,3 +4982,298 @@ Obtains the remote object of an authenticator. This API cannot be overloaded.
...
@@ -4982,3 +4982,298 @@ Obtains the remote object of an authenticator. This API cannot be overloaded.
| callback | AsyncCallback<[AccountCapabilityResponse](#accountcapabilityresponse10), { [key: string]: object }> | Yes | Callback invoked to return the result. If the operation is successful, **err** is **null**. Otherwise, **err** is an error object. |