Application authorization management

更新时间:
复制 MD 格式

To associate an existing smart contract service with a new application, you must first create the application and then associate the service with it. You can associate one application with multiple smart contract services. You can also revoke an application key's authorization. After the authorization is revoked, the application is no longer associated with any smart contract service.

Create an application

  1. Go to the Smart Contract Marketplace. In the navigation pane on the left, select Application Authorization Management.

  2. Click Create Application and then click OK in the dialog box that appears.

    The new application appears in the list.

    Note

    The application key for a new application is masked by default. To view the key in plaintext, click the image.png icon on the right and confirm the action. To mask the key again, click the image.png icon.

Manage application authorization relationships

Associate a Contract

You can associate a smart contract service with an application. After the association is complete, you can use the application's AccessKey (AK) and application key to invoke the OpenAPI on the target chain.

  1. On the Application Authorization Management page, find the target application. In the Operation column, click Associate Smart Contract.

  2. In the dialog box that appears, select one or more smart contract services to associate and then click OK.

    The associated services are now displayed in the Smart Contract Service Name column for the application.

Revoke authorization

Revoking an application's authorization removes all of its associated smart contract services.

  1. On the Application Authorization Management page, find the target application. In the Operation column, click Revoke Application Key Authorization.

  2. In the confirmation dialog box, click Confirm.

    The associated smart contract services are then purged from the Smart Contract Service Name column for the application.