Auth Code
Last updated
Last updated
The authorization code interface requires user authorization from the MulitMarket white-label client to obtain the authorization code. After the user agrees, the code is returned to the third-party platform. The third-party platform can then obtain a valid access token for accessing user information by calling the backend interface with the appId, appSecret, and code information. Finally, this token can be used to retrieve basic user information and perform authorization binding.
Steps:
Open the authorization page to obtain the authorization code https://www.headline.net/en-US/auth2/code?appId=088b591f5fd735be62608a272f4d971f&thirdAppType=HG&url=https%3A%2F%2Fwww.hg.com%2Flogin After confirming the authorization, you will be redirected to https://www.hg.com/login?code=********&app=headline
The third-party platform exchanges the authorization code for an access token By obtaining the code, the backend calls the interface to exchange for accessToken
Obtain user information based on the access token for account binding The third-party platform backend retrieves user information based on accessToken
Success