MQL5.community OAuth. - page 2

 

@MetaQuotes 


The OAuth authorization code flow succeeds and access_token is returned with token_type=Bearer and valid expires_in.


However, an immediate POST request to https://www.mql5.com/api/oauth/user_info with the fresh access_token returns error 103: "Access token is invalid because the user is not authorized".

GET requests return HTML 404 instead of JSON API response.

 

Hello!

To use /api/oauth/user_info endpoint please specify "client_id" parameter in your request.

 
Pavel Kozlov # :

Hello!

To use /api/oauth/user_info endpoint please specify "client_id" parameter in your request.


Thank you very much.

Yes, that was my mistake.

The current MQL5 router already passes client_id to the authorization URL and token exchange, but it really wasn't passed to user_info

Thank you - everything works!