Estou tentando fazer login no spring oauth2
const body = new HttpParams() .set('username', credentials.login) .set('password', credentials.senha) .set('grant_type', 'password'); let a = btoa( 'sistemaOnLine:$2a$10$LOtptpML.31/npNP4Z87vOEjctNXa9FMA29a.G0D8nj9Zq1nlMMjK' ); const headers = { Authorization: 'Basic ' + a, 'Content-type': 'application/x-www-form-urlencoded', }; return this.http .post<any>('http://localhost:8200/oauth-api/oauth/', body.toString(), { headers }) .pipe(map((response) => this.authenticateSuccess(response, true)));
Só que dá erro 404