Hi.

I'm trying to connect a new app via the /oauth/token endpoint.

I do a POST request to that endpoint with following information:

URL:
http://gitlab.com/oauth/token?client_id=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&client_id=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXx&code=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&grant_type=authorization_code&redirect_uri=gitskariosgithubdevel%3A%2F%2Foauth

Body:
{"client_id":"XXXXXXXXXXXXXXXXXXXXXXXXXX","client_secret":"XXXXXXXXXXXXXXXXXXXXXX","code":"XXXXXXXXXXXXXXXXXXXXXXXX","grant_type":"authorization_code","redirect_uri":"gitskariosgithubdevel://oauth"}

And i receive a 401 Unathorized response.

{"error":"You need to sign in before continuing."}

Or 

{
  "error": "invalid_grant",
  "error_description": "The provided authorization grant is invalid, 
expired, revoked, does not match the redirection URI used in the 
authorization request, or was issued to another client."
}

Any advice?

-- 
You received this message because you are subscribed to the Google Groups 
"GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to gitlabhq+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/gitlabhq/6ea8f28d-86a6-4c1c-ba71-6ddfa4b4757b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to