#30 added new module with all config for a security layer

This commit is contained in:
fabio.formosa
2021-01-31 20:50:41 +01:00
parent e23343d7ed
commit 6f50f45aa8
39 changed files with 1856 additions and 112 deletions

View File

@@ -53,9 +53,6 @@ export class ApiService {
if (args)
options['params'] = serialize(args);
// if(this.jwtToken)
// options.headers = options.headers.set('Authorization', `Bearer ${this.jwtToken}`);
return this.http.get(path, options)
.pipe(catchError(this.checkError.bind(this)));
}
@@ -78,9 +75,6 @@ export class ApiService {
withCredentials: true
}
// if(this.jwtToken)
// options.headers = options.headers.append('Authorization', `Bearer ${this.jwtToken}`);
const req = new HttpRequest(method, path, body, options);
return this.http.request(req)