Advertisement
Guest User

Untitled

a guest
Mar 30th, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. HTTP.post(`${api}/token`, {
  2. params: {
  3. grant_type: 'password',
  4. client_id: 'some_id',
  5. client_sectet: 'some_secret',
  6. username: 'username',
  7. password: 'password'
  8. }
  9. }, (e, r) => {
  10. if (e) {
  11. console.error(e);
  12. } else {
  13. console.log(r);
  14. }
  15. });
  16.  
  17. POST http://.../token 400 (Bad Request)
  18. Error: failed [400] {"error":"invalid_request","error_description":"The grant type was not specified in the request"}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement