Xabaril / Esquio

Esquio is a Feature Toggle Library for .NET Developers.
Apache License 2.0
428 stars 49 forks source link

Web Login only works on fresh instance of browser with no cache #167

Closed Kronos11 closed 3 years ago

Kronos11 commented 3 years ago

Authentication doesn't seem to work properly using AAD except if you clear the cache/session data. Is something being stored that needs to be removed upon a new login attempt?

unaizorrilla commented 3 years ago

On 4.0 preview? Let me check this weekend!

Kronos11 commented 3 years ago

Yeah sorry on 4.0 preview

unaizorrilla commented 3 years ago

Are you debugging with VS? Can you try with a compose and test it without debug?

unaizorrilla commented 3 years ago

I'm debugging the issue, the EvaluatingAuthorization on Authentication.razor seems that throw on get my info and a infinite loop is produced! Catching the exception and move to not allowed looks good but I'm testing it

unaizorrilla commented 3 years ago

Hi @Kronos11

Just added a commit that work around this issue ¿can you test it?

I prepare a new compose file for aad to test without debug, please close the issue if all is ok!

https://github.com/Xabaril/Esquio/blob/master/build/docker-compose-demo-with-ui-sqlserver.aad.yml

If works well we can release a new preview this week and well, test all scenarios to release the 4.0 final version!

Thanks for your help testing Esquio!! Unai

Kronos11 commented 3 years ago

Validated it is working as expected! Thanks for the quick fix.