-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when first time acquire access token for resource #45
Comments
Error explained in a post above was raised when using latest adal-angular5 and adal-angular versions, but I played with versions in a meantime. When I use following combination: Also, instances of my global providers are multiplied, what is strange. Somehow application bootstrap is done multiple times. Thanks, Vedran |
Hi, Can anyone help here? I am using now 2.1.1 version of adal-angular5 and still error mentioned in my question remains. It happens in this line of code inside else-if of the adal-angular5.js file:
requestInfo.stateResponse has a value: '12345678-abcd-efgh-9876-1fa334df7c72|87654321-asdf-48b2-b9ca-111222333444' and error is: Again, error is there only when calling aquireToken first time. If I repeat the call there is no error. Also, there is still problem that instances of my global providers are multiplied. Somehow application bootstrap is done multiple times. Thanks, |
Hi, I am also facing the same issue with few more issues.
Now if I reload the page, the erros are gone.
|
Hello, when I am trying to fetch access Token in my Angular 5 application for the first time after user is logged in, with following method:
adalService.acquireToken(resource)
and I am getting this error:
AuthCallbackComponent_Host.ngfactory.js? [sm]:1 ERROR TypeError: Cannot read property '12345678-abcd-efgh-9876-1fa334df7c72|87654321-asdf-48b2-b9ca-111222333444' of undefined
at Adal5Service.handleWindowCallback (adal-angular5.js:77)
at LoginService.completeAuthentication (login.service.ts:80)
at AuthCallbackComponent.ngOnInit (callback.component.ts:17)
Resource is an API defined on AAD. Login service is my angular service which calls Adal5Service.handleWindowCallback function in this code, during standard, complete authentication, action:
...
public completeAuthentication(): void {
this.adalService.handleWindowCallback();
}
...
Second time Token is received without errors, but I don't want to implement retries. I would rather understand what is going wrong here. Any similar problem faced by anyone?
Thanks a lot. Vedran
The text was updated successfully, but these errors were encountered: