-
Notifications
You must be signed in to change notification settings - Fork 328
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
MSAL AcquiretokenSilent success case taking 1+ second #1040
Comments
This is a bug in the test, but we should see if there's a way for us to detect it. The stress test was sending in https://management.core.windows.net//.default (note the double slash before default) so the cache lookup filtering by scopes was failing. and then we were doing a full AT token exchange which is where the time came from. The server ends up taking the // in the scope and normalizing it and when we cache the token, we cache it with /.default as expected (which is where the later lookup mismatch occurs). So perhaps we should see if we can parse the scopes and if they start with https ensure they're a proper url? |
This will be fixed on the service side (ETA beginning of May normally) |
@MarkZuber : any objection to closing it? |
I'd like to keep this active for tracking until we verify the server has fixed this issue. |
then I get I'll move it to 3.0.5+ |
@MarkZuber do you have any idea when this will get fixed? This is blocking us. |
@MarkZuber : apprently the change should be in prod now. |
@jmprieur My path is a bit different. @MarkZuber implied that this was a server side issue so I did expect 2.7.1 to benefit as well. Do we also need to upgrade to version 3.0.8? Cheers |
@jmprieur I've upgraded to 3.08 and Xamarin Forms 4 Pre-10 and AcquireTokenSilentAsync is still taking ~2-3 seconds on startup. This is on a Samsung S7 Edge. The LogCat output is:
|
@stevehurcombe the startup delay a different issue: this is instance discovery. you might want to follow #1174 for that one. Closing this one as it's fixed. |
Which Version of MSAL are you using ?
MSAL 3.0.1-preview
Platform
net45, netcore
The code below is consistently causing 1-1.2 seconds of time for acquire token silent. It is expected that this should take 5-10ms.
The text was updated successfully, but these errors were encountered: