debug in authentication path

This commit is contained in:
Wolfgang Hottgenroth 2021-09-03 11:57:46 +02:00
parent 1ce54cf9cf
commit 5957662f2d
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F

View File

@ -19,6 +19,7 @@ export class AuthHandlerInterceptor implements HttpInterceptor {
intercept(request: HttpRequest<unknown>, next: HttpHandler): Observable<HttpEvent<unknown>> {
const token = localStorage.getItem(TokenService.Id_Token_Key)
if (request.url.includes(serviceBaseUrl) && token) {
this.messageService.add("api request intercepted")
const clone = request.clone({
setHeaders: { Authorization: `Bearer ${token}`}
})