I am using the Azure AD adal library to do authentication. There is a call to aquire a token that returns an observable. How can this observable be added into the intercept?
When you need to return something from Observable, you can use map instead of subscribe:
Observable
map
subscribe
return this.authAzureService.getAccessToken() .map(token => request = this.getRequestWithHeaders(request, token)); }