Guest User

Untitled

a guest
Jan 6th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. axios.post("http://localhost:8080/oauth/access_token", 'grant_type=password&username='+username+'&password='+password,
  2. { headers: {
  3. 'Authorization': 'Basic ' + btoa("clientid:clientsecret"),
  4. 'Content-Type': 'application/x-www-form-urlencoded,charset=UTF-8'
  5. }
Add Comment
Please, Sign In to add comment