Closed CadiChris closed 4 years ago
It truly is a shame that such a detailed post is received like this by the community and collaborators of the project.
Hey we managed to fix this problem, in a (sadly necessary) work-around way.
Check out *our repo!
How did you fix this ? I am still getting this error.
@chan4lk I am so sorry I cannot provide you of the repo because the company I worked for decided it would not go the open-source way, and asked for removal.
Now let me tell you, what I did was at most 4 days of work, nothing more. Information is out there, just iterate over the proposed solutions until you land a stable solution and then please come back and propose a link to a repo like I did on November 2018.
Again, sorry for not reproducing the solution I made for the company I worked for, it was up to them to censor it to the community. But still, good news are that I did not provide of a new solution: Just a formalization of the StackOverflow answers on the topic.
Hi,
I am having the same problem with the infinite loop when working with react-adal
. Are there any plans to address it soon? Is this repo not supported any more?
Hi @zsid. I don't know if changes have happen in the adal
library, but a new version of react-adal
is now available. Maybe you can try it https://github.com/salvoravida/react-adal/issues/33#issuecomment-536196697
@zsid it would be great a feedback on your use case!
Salvo
I will update to the packages later this week and test it out
Unfortunately, adal js
is generally not being updated except for high priority security fixes. You may have to defer to the react-adal
maintainers for a workaround. Infinite redirect loops are a known bug here.
We also recommend that people move to the msal js
library here, as this is the library that is getting all of Microsoft's current support. We have plans for an official react implementation on our roadmap here. There is also an active community project called react-aad-msal that helps integrate msal js
into a react app.
Hi there,
While working with
react-adal
I faced an issue where I got an infinite login loop for users that are not authorized to access my application.In other words :
http://myapp/
http://myapp/
http://myapp/#error=access_denied
adal
code (that is the topic of this issue) user is redirected tohttp://myapp/
I went for a bit of digging into the code, to see what was causing the redirection to
http://myapp/
at (5).The result of this investigation is that I don't understand why
adal
, inacquireToken()
, does not checkgetLoginError()
before indicatingcallback('User login is required', null, 'login required');
In other words, I don't understand why this piece of code doest not check
getLoginError()
:this._user
is not set, but it could be due to a login error that occurred after the user actually tried to login...no ?Would it make sense, in
acquireToken()
to have something like:I can fix my problem by changing code in
react-adal
, but I'd really like to have your opinion on this.