Table of contents


Unofficial Content

This article explains how to authenticate your users with Mercado Libre using GeneXus Access Manager (GAM).

1. Enter to the GAM's Backend and go to the Authentication Types section. Create a new OAuth 2.0 Authentication Type and define basic information in the General section: Name, Description, Images (optional), etc.

2. In the Configuration section you need to define the following for the General, Authorization, Token and User Information tab:

General

Client ID:     client_id      Value: <clientid>
Client Secret: client_secret  Value: <clientsecret>
Redirect URL:  redirect_uri   Value: https://<server>/webapp

Authorization

URL: http://auth.mercadolibre.com/authorization
Response type:  response_type    Value: code
Scope:          scope            Value: read
State:          state
Include ClientID and RedirectURL
Response:
Access code TAG: code
Error description TAG: error_description

Token

URL: https://api.mercadolibre.com/oauth/token
Header Cotent type: Content-type    Value: application/x-www-form-urlencoded
Grant type:         grant_type      Value: authorization_code
Include All
Response:
Access token TAG: access_token
Token type TAG: token_type
Expires in TAG: expires_in
User Id TAG: user_id
Refresh Token TAG: refresh_token
Error description TAG: error_description
Validate external token = True
Refresh token URL = leave it empty 

User Information

URL:  https://api.mercadolibre.com/users/me
Method: Get
Header Content type: Content-type     Value: application/json;charset=utf-8
Include Acces Token: access_token
Email TAG: email
External ID TAG: id
Name TAG:  nickname
First name TAG: first_name
Last name TAG: last_name
URL profile TAG: permalink
Error description TAG: error_description

Availability

As of GeneXus 15 Upgrade 11.

See Also

GAM - OAuth 2.0 Authentication Type

    

 

Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant