Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let headers = new Headers();
- headers.append('Authorization', 'Basic' + btoa(this.client_id + ':' + this.client_secret));
- headers.append('Content-Type', 'application/x-www-form-urlencoded');
- return this.http.post(this.authenticationUrl, 'grant_type=password&username=spiros&password=qwerty1234', {headers: headers})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement