You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public.Client.AcquireTokenInteractive called Replace with suggested partition key ""
public.Client.AcquireTokenInteractive called Export with suggested partition key ""
base.Client.AcquireTokenSilent called Replace with suggested partition key "oid.tid"
Only AcquireTokenSilent suggests a key. It therefore always fails for an application using the key to look up a partition because the partition in question will always be empty or nonexistent, because AcquireTokenInteractive didn't suggest that key after acquiring tokens.
Part, if not all, of the problem is that AuthParams.CacheKey() doesn't consider all values of AuthorizationType (the value is ATInteractive in interactive auth). Maybe it should have a default case? I see there's also TokenResponse.CacheKey(). That may also need an update, or perhaps there's a way to consolidate these methods.
Another part of the problem is test gaps--neither CacheKey() is tested, nor is the value of AuthParams.AuthorizationType set by AcquireToken methods.
The text was updated successfully, but these errors were encountered:
...because clients suggest partition keys inconsistently. For example, here's a repro using interactive auth:
Output:
Only
AcquireTokenSilent
suggests a key. It therefore always fails for an application using the key to look up a partition because the partition in question will always be empty or nonexistent, becauseAcquireTokenInteractive
didn't suggest that key after acquiring tokens.Part, if not all, of the problem is that AuthParams.CacheKey() doesn't consider all values of
AuthorizationType
(the value isATInteractive
in interactive auth). Maybe it should have a default case? I see there's also TokenResponse.CacheKey(). That may also need an update, or perhaps there's a way to consolidate these methods.Another part of the problem is test gaps--neither
CacheKey()
is tested, nor is the value ofAuthParams.AuthorizationType
set by AcquireToken methods.The text was updated successfully, but these errors were encountered: