文档中心 > Miravia Open Platform

Miravia - Configure seller authorization

更新时间:2024/01/30 访问次数:450

If your application needs to access Miravia sellers’ business data, your application needs to get the authorization from sellers, and you need to guide them to complete the flow of “using Miravia seller account to log in and authorize”.

Authorization strategy

Miravia Open Platform uses OAuth 2.0 protocol for user authentication and provides different authorization strategies for different application categories, which are pre-defined for the application category that your application belongs to. You can view the detailed authorization strategy for your application on the top section of the Auth Management page, including the following information:

  • Authorized Policy: The overall strategy for your application
  • Access Token Duration: The validity duration of the access token for your application
  • Refresh Token Duration: The validity duration of the refresh token
  • Authorized Page: Whether the authorization page is displayed.
  • Authorized Agreement: The OAuth2.0 authorization type
  • Authorized User Limit: The maximum number of sellers who can authorize the application

Important
The following 2 kinds of authorization policy are applied to different APP categories:

  • Allow binding user to authorize: This authorization policy applies to the “Seller In-house APP” and “Customer Service” categories. For this policy, only sellers who have been configured in the “Authorized Seller Whitelist” field can authorize your application. Refer to the section below for details.
  • Allow login users to authorize: This authorization policy applies to the “ERP System” and other APP categories. For this policy, any Miravia sellers can authorize your application, so you do not need to configure the seller whitelist. You can just send your authorization URL to your sellers for authorization.

Specify seller whitelist

If you develop an application for specific sellers, you can limit the authorization scope by specifying the seller whitelist on Miravia Open Platform, then only these sellers can authorize your application to access their business data in Miravia marketplace. After your application is deployed online, you need to provide the authorization URL to the sellers. When the sellers log in your application for the first time, they will be prompted to complete the authorization process.

Take the following steps to specify the short code of sellers who can authorize your application to access their business data.
1. Open the APP Console and click App Management -> Auth Management.
2. In the Authorization Information section, view the description of the authorization strategy for your application.
3. In the Authorized Seller Whitelist section, enter the seller account in the authorization field. Multiple seller accounts can be separated by semicolons.
4. Click Submit.

Note: If you are a third party developer and your application is open to all Miravia sellers, you only need to provide the URL of your application to the sellers when the application is deployed online. The sellers can follow the URL to complete the authorization process.


FAQ

关于此文档暂时还没有FAQ
返回
顶部