Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

Android Broker fails to refresh silently due to incorrect UID #1687

Closed
1 of 8 tasks
trwalke opened this issue Jan 10, 2020 · 1 comment
Closed
1 of 8 tasks

Android Broker fails to refresh silently due to incorrect UID #1687

trwalke opened this issue Jan 10, 2020 · 1 comment
Assignees
Labels

Comments

@trwalke
Copy link
Member

trwalke commented Jan 10, 2020

Which Version of ADAL are you using ?
latest (5.2.5)

Which platform has the issue?
xamarin android

What authentication flow has the issue?

  • Desktop / Mobile
    • Interactive
    • Silent
    • Integrated Windows Auth
    • Username Password
    • Device code flow (browserless)
  • Web App
    • Authorization code
    • OBO
  • Web API
    • OBO

Repro
Make an interactive call using broker on android for one resource and then try to acquire a token silently for a different resource.

Expected behavior
Broker should be able to successfully refresh the token
Actual behavior
The app is forced to sign in interactively again and broker throws the following error
"Could not locate a cache for this app"

Possible Solution
We need to send the UID instead of the PID that we send today because the UID will not change for the user on the device. The broker uses the UID to cache responses so if the UID changes for any reason the cache lookup will fail.

@trwalke
Copy link
Member Author

trwalke commented Jan 16, 2020

@trwalke trwalke closed this as completed Jan 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant