Я пытаюсь внедрить Azure B2C в мое приложение Angular 6:
authentication-interceptor.ts:
@Injectable()
export class AuthenticationInterceptor implements HttpInterceptor {
constructor(private adalService: AdalService) { }
intercept(req: HttpRequest<any>, next:HttpHandler): Observable<HttpEvent<any>>{
const authHeader = this.adalService.userInfo.token;
var header = 'Bearer ' + authHeader;
const authReq = req.clone({headers: req.headers.set('Authorization', header)});
return next.handle(authReq);
}
}
api-service.ts:
getMenuItemsDistinct():Observable<string[]>{
var url = `${environment.apiUrl}/api/menuitemsdistinct`;
return this.httpClient.get<string[]>(url);
}
module.ts:
providers: [
AdalService,
AuthenticationGuard,
{ provide: HTTP_INTERCEPTORS, useClass: AuthenticationInterceptor, multi: true }
]
Fiddler: 
Я ожидаю, что запрос в fiddler будет показывать токен на предъявителя (я не уверен) ?.Странно то, что когда я отлаживаю приложение, в методе перехвата AuthenticationInterceptor достигается точка останова, но, как вы можете видеть в fiddler, я не вижу токен, а потом я получаю 401.Любые предложения, как решить эту проблему, или, может быть, я пропускаю некоторые шаги здесь?У меня есть хороший токен в коде при отладке.
Как утверждает Хьюго, инструменты Google Crome показывают носителя.Не уверен, почему скрипач отправил:
