mercadolibre / net-sdk

MercadoLibre's .NET SDK
56 stars 80 forks source link

Redirect to OAuth provider #30

Closed rmengel closed 3 years ago

rmengel commented 4 years ago

Hi, i'm trying to make the authorization processes but when i call the method apiInstance.Auth(responseType, clientId, redirectUri); , passing all the parameters, like in the sample code, my application is not redirected to the ML authentication page. If i a make a redirect with Response.Redirect(completed code below) all work fine. Response.Redirect(string.Format("{0}response_type={1}&client_id={2}&redirect_uri={3}", baseUrl, response_type, client_id, redirect_uri));

I'm not logged in my ML account, and i have no user in the permission list of my app.

Thank for your support!

MaxiTussie commented 3 years ago

Buen día, pudiste resolverlo? yo estoy con el mismo problema

rmengel commented 3 years ago

Here this method dosen't work, i receive an error of xml formater in the request, than i'm init the authentication process with the Response.Redirect and in their return i'm calling the GetToken.