• 0
Sign in to follow this  
Marcos H. Bello

Erro de autenticação - URI

Question

Estou com um problema para autenticar e receber o Token

 

Retorna o erro The redirect_uri does not match the original, mas a URL esta correta:

 

#Erro retornado

array(
    'body' => object(stdClass) {
        message => 'The redirect_uri does not match the original'
        error => 'invalid_grant'
        status => (int) 400
        cause => array()
    },
    'httpCode' => (int) 400
)

 

 

#Codigo PHP:

$redirectURI = 'http://int-env.elasticbeanstalk.com/';

$oAuth = $meli->authorize($code, $redirectURI);

 

 

#Configuração no Application Manager do ML:

 

Authentication and Security

Redirect URI:http://int-env.elasticbeanstalk.com/

Authorized Javascript Origins: elasticbeanstalk.com/

Scopes: write read

 

Alguém sabe oque pode estar acontecendo?

 

Muito Obrigado!

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this