AzureAD/azure-activedirectory-library-for-android

Adal 1.14.+ Problem with MS Authenticator, it opens every time

ChristianGiuseppe opened this issue · 8 comments

Every time I login on my application, the application invokes the following method:

  • acquisitionToken (activity, resource, clientId, mAuthContext.getRedirectUriForBroker (), PromptBehavior.Auto, "domain_hint = domain.com",
    getAuthInteractiveCallback ());

the desired behaviour is that only the first login opens Ms Authenticator but i observed that Ms Authenticator opens every time.

Hi @ChristianGiuseppe it seems like you are using an older version of ADAL. Can you switch to the latest version and let us know if you are still seeing issues?

The latest version of ADAL is 1.16.3-hf2. Thanks!

Hi @ChristianGiuseppe it seems like you are using an older version of ADAL. Can you switch to the latest version and let us know if you are still seeing issues?

The latest version of ADAL is 1.16.3-hf2. Thanks!

Hi @shahzaibj I updated the library but the issue is still present

@ChristianGiuseppe Can you provide logs to help us investigate the issue?

Here the instructions to obtain logs in ADAL: https://github.com/AzureAD/azure-activedirectory-library-for-android#logs

@shahzaibj These are the logs:
AuthenticationContext:getRedirectUriForBroker: [2020-01-23 09:50:00] Get expected redirect Uri. ver:1.16.3-hf2 Android 28-null
BrokerProxy: [2020-01-23 09:50:00] Device runs on 23 and above, skip the check for 22 and below. ver:1.16.3-hf2 Android 28-null
aze: [2020-01-23 09:50:00 - {"thread_id":"2","correlation_id":"UNSET"}] Init: aze Android 28-null
azp: [2020-01-23 09:50:00 - {"thread_id":"2","correlation_id":"UNSET"}] Init with storage helper:
azp Android 28-nullazo: [2020-01-23 09:50:00 - {"thread_id":"2","correlation_id":"UNSET"}]
Init: azo Android 28-nullazm: [2020-01-23 09:50:00 - {"thread_id":"2","correlation_id":"UNSET"}]
Init: azm Android 28-nullazb: [2020-01-23 09:50:00 - {"thread_id":"2","correlation_id":"UNSET"}]
Init: azb Android 28-nullazb: [2020-01-23 09:50:00 - {"thread_id":"2","correlation_id":"UNSET"}]
Context is an Application? [true] Android 28-null
azb: [2020-01-23 09:50:00 - {"thread_id":"2","correlation_id":"UNSET"}] Validating secret key settings. Android 28-null
azb: [2020-01-23 09:50:00 - {"thread_id":"2","correlation_id":"UNSET"}] Initializing SharedPreferencesFileManager Android 28-null
azp: [2020-01-23 09:50:00 - {"thread_id":"2","correlation_id":"UNSET"}] Init with storage helper: azp Android 28-null
awi:acquireToken: [2020-01-23 09:50:00 - f8e30158-2eca-4a27-bbc0-99e198139e8d] Sending async task from thread:17830 ver:1.16.3-hf2 Android 28-null
awi:acquireToken: [2020-01-23 09:50:00 - f8e30158-2eca-4a27-bbc0-99e198139e8d] Running task in thread:18016 ver:1.16.3-hf2 Android 28-null
awi:validateAuthority: [2020-01-23 09:50:00 - f8e30158-2eca-4a27-bbc0-99e198139e8d] Start validating authority ver:1.16.3-hf2 Android 28-null
Discovery: [2020-01-23 09:50:00 - f8e30158-2eca-4a27-bbc0-99e198139e8d] Sending discovery request to query url. ver:1.16.3-hf2 Android 28-null
awi:validateAuthority: [2020-01-23 09:50:04 - f8e30158-2eca-4a27-bbc0-99e198139e8d] The passed in authority is valid. ver:1.16.3-hf2 Android 28-null
AuthenticationContext:getRedirectUriForBroker: [2020-01-23 09:50:04 - f8e30158-2eca-4a27-bbc0-99e198139e8d] Get expected redirect Uri. ver:1.16.3-hf2 Android 28-null
awi:verifyBrokerRedirectUri: [2020-01-23 09:50:04 - f8e30158-2eca-4a27-bbc0-99e198139e8d] The broker redirect URI is valid. ver:1.16.3-hf2 Android 28-null
awi:tryAcquireTokenSilent: [2020-01-23 09:50:04 - f8e30158-2eca-4a27-bbc0-99e198139e8d] Try to acquire token silently, return valid AT or use RT in the cache. ver:1.16.3-hf2 Android 28-nullawi:tryAcquireTokenSilentLocally: [2020-01-23 09:50:04 - f8e30158-2eca-4a27-bbc0-99e198139e8d] Try to silently get token from local cache. ver:1.16.3-hf2 Android 28-nullaxz:getATFromCache: [2020-01-23 09:50:04 - f8e30158-2eca-4a27-bbc0-99e198139e8d] No access token exists. ver:1.16.3-hf2 Android 28-nullawj:getAccessToken: [2020-01-23 09:50:04 - f8e30158-2eca-4a27-bbc0-99e198139e8d] No valid access token exists, try with refresh token. ver:1.16.3-hf2 Android 28-null
awj:tryRT: [2020-01-23 09:50:04 - f8e30158-2eca-4a27-bbc0-99e198139e8d] Regular token cache entry does not exist, try with MRRT. ver:1.16.3-hf2 Android 28-nullawj:tryMRRT: [2020-01-23 09:50:04 - f8e30158-2eca-4a27-bbc0-99e198139e8d] MRRT token does not exist, try with FRT ver:1.16.3-hf2 Android 28-null
awj:tryFRT: [2020-01-23 09:50:04 - f8e30158-2eca-4a27-bbc0-99e198139e8d] FRT cache item does not exist, fall back to try MRRT. ver:1.16.3-hf2 Android 28-nullawj:useMRRT: [2020-01-23 09:50:04 - f8e30158-2eca-4a27-bbc0-99e198139e8d] Send request to use MRRT for new AT. ver:1.16.3-hf2 Android 28-null
awj:useMRRT: [2020-01-23 09:50:04 - f8e30158-2eca-4a27-bbc0-99e198139e8d] MRRT does not exist, cannot proceed with MRRT for new AT. ver:1.16.3-hf2 Android 28-null
awi:tryAcquireTokenSilentWithBroker: [2020-01-23 09:50:04 - f8e30158-2eca-4a27-bbc0-99e198139e8d] Either could not get tokens from local cache or is force refresh request, switch to Broker for auth, clear tokens from local cache for the user. ver:1.16.3-hf2 Android 28-null
awi:removeTokensForUser: [2020-01-23 09:50:04 - f8e30158-2eca-4a27-bbc0-99e198139e8d] No token items need to be deleted for the user. ver:1.16.3-hf2 Android 28-null
awk:logBrokerVersion: [2020-01-23 09:50:04 - f8e30158-2eca-4a27-bbc0-99e198139e8d] Broker app is: com.azure.authenticator;Broker app version: VersionName=6.2001.0140;VersonCode=20200140. ver:1.16.3-hf2 Android 28-null
awk:acquireTokenWithBrokerSilent: [2020-01-23 09:50:04 - f8e30158-2eca-4a27-bbc0-99e198139e8d] User is not specified, skipping background(silent) token request. ver:1.16.3-hf2 Android 28-null
awi:performAcquireTokenRequest: [2020-01-23 09:50:04 - f8e30158-2eca-4a27-bbc0-99e198139e8d] Trying to acquire token interactively. ver:1.16.3-hf2 Android 28-null
AuthenticationContext: [2020-01-23 09:50:04 - f8e30158-2eca-4a27-bbc0-99e198139e8d] Put waiting request. requestId:183818818 CorrelationId: f8e30158-2eca-4a27-bbc0-99e198139e8d ver:1.16.3-hf2 Android 28-null
awi:acquireTokenInteractiveFlow: [2020-01-23 09:50:04 - f8e30158-2eca-4a27-bbc0-99e198139e8d] Launch activity for interactive authentication via broker with callback. ver:1.16.3-hf2 Android 28-null
awk:acquireTokenWithBrokerInteractively: [2020-01-23 09:50:04 - f8e30158-2eca-4a27-bbc0-99e198139e8d] Launch activity for interactive authentication via broker. ver:1.16.3-hf2 Android 28-null
awk:logBrokerVersion: [2020-01-23 09:50:04 - f8e30158-2eca-4a27-bbc0-99e198139e8d] Broker app is: com.azure.authenticator;Broker app version: VersionName=6.2001.0140;VersonCode=20200140. ver:1.16.3-hf2 Android 28-null
aws:bindToBrokerAccountService: [2020-01-23 09:50:04 - f8e30158-2eca-4a27-bbc0-99e198139e8d] Binding to BrokerAccountService for caller uid. ver:1.16.3-hf2 Android 28-null
aws:bindToBrokerAccountService: [2020-01-23 09:50:04 - f8e30158-2eca-4a27-bbc0-99e198139e8d] The status for brokerAccountService bindService call is: true ver:1.16.3-hf2 Android 28-null
aws: [2020-01-23 09:50:04 - f8e30158-2eca-4a27-bbc0-99e198139e8d] Broker Account service is connected. ver:1.16.3-hf2 Android 28-null
awk:acquireTokenWithBrokerInteractively: [2020-01-23 09:50:04 - f8e30158-2eca-4a27-bbc0-99e198139e8d] Calling activity. Pid:17830 tid:18016uid:10394 ver:1.16.3-hf2 Android 28-null
aze: [2020-01-23 09:50:19 - {"thread_id":"2","correlation_id":"f8e30158-2eca-4a27-bbc0-99e198139e8d"}] Init: aze Android 28-null
azp: [2020-01-23 09:50:19 - {"thread_id":"2","correlation_id":"f8e30158-2eca-4a27-bbc0-99e198139e8d"}] Init with storage helper: azp Android 28-null
azo: [2020-01-23 09:50:19 - {"thread_id":"2","correlation_id":"f8e30158-2eca-4a27-bbc0-99e198139e8d"}] Init: azo Android 28-null
azm: [2020-01-23 09:50:19 - {"thread_id":"2","correlation_id":"f8e30158-2eca-4a27-bbc0-99e198139e8d"}] Init: azm Android 28-null
azb: [2020-01-23 09:50:19 - {"thread_id":"2","correlation_id":"f8e30158-2eca-4a27-bbc0-99e198139e8d"}] Init: azb Android 28-null
azb: [2020-01-23 09:50:19 - {"thread_id":"2","correlation_id":"f8e30158-2eca-4a27-bbc0-99e198139e8d"}] Context is an Application? [true] Android 28-nullazb: [2020-01-23 09:50:19 - {"thread_id":"2","correlation_id":"f8e30158-2eca-4a27-bbc0-99e198139e8d"}] Validating secret key settings. Android 28-nullazb: [2020-01-23 09:50:19 - {"thread_id":"2","correlation_id":"f8e30158-2eca-4a27-bbc0-99e198139e8d"}] Initializing SharedPreferencesFileManager Android 28-null
azp: [2020-01-23 09:50:19 - {"thread_id":"2","correlation_id":"f8e30158-2eca-4a27-bbc0-99e198139e8d"}] Init with storage helper: azp Android 28-nullAuthenticationContext:getWaitingRequest: [2020-01-23 09:50:19 - f8e30158-2eca-4a27-bbc0-99e198139e8d] Get waiting request. requestId:183818818 ver:1.16.3-hf2 Android 28-null
awi:onActivityResult: [2020-01-23 09:50:19 - f8e30158-2eca-4a27-bbc0-99e198139e8d] Waiting request found. RequestId:183818818 ver:1.16.3-hf2 Android 28-null
ADAL getAuthInteractiveCallback: [2020-01-23 09:50:19 - f8e30158-2eca-4a27-bbc0-99e198139e8d] getAuthInteractiveCallback : ONSUCCES ver:1.16.3-hf2 Android 28-null

@ChristianGiuseppe These seem to be logs associated to just one ADAL request. What I understand from your initial description of the issue is that you are calling acquire token multiple times and the first time you expect it to be an interactive request and open the Authenticator app for the user to complete the authentication, and the next time the acquire token is called, you don't expect it to be an interactive request and rather expect the token to be returned silently with no user interaction. Is that right?

If that is indeed what you are expecting, then we will need complete logs (logs that contain multiple ADAL requests as opposed to just one) to be able to diagnose the issue.

Please let me know if this isn't what you are trying to achieve. Thanks!

@shahzaibj Yes it right
these are logs associated with multiple requests:
AuthenticationContext:getRedirectUriForBroker: [2020-01-31 09:39:35] Get expected redirect Uri. ver:1.16.3-hf2 Android 28-null
AuthenticationContext:getRedirectUriForBroker: [2020-01-31 09:39:35] Get expected redirect Uri. ver:1.16.3-hf2 Android 28-null
BrokerProxy: [2020-01-31 09:39:35] Device runs on 23 and above, skip the check for 22 and below. ver:1.16.3-hf2 Android 28-null
aze: [2020-01-31 09:39:35 - {"thread_id":"2","correlation_id":"UNSET"}] Init: aze Android 28-null
azp: [2020-01-31 09:39:35 - {"thread_id":"2","correlation_id":"UNSET"}] Init with storage helper: azp Android 28-null
azo: [2020-01-31 09:39:35 - {"thread_id":"2","correlation_id":"UNSET"}] Init: azo Android 28-null
azm: [2020-01-31 09:39:35 - {"thread_id":"2","correlation_id":"UNSET"}] Init: azm Android 28-null
azb: [2020-01-31 09:39:35 - {"thread_id":"2","correlation_id":"UNSET"}] Init: azb Android 28-null
azb: [2020-01-31 09:39:35 - {"thread_id":"2","correlation_id":"UNSET"}] Context is an Application? [true] Android 28-null
azb: [2020-01-31 09:39:35 - {"thread_id":"2","correlation_id":"UNSET"}] Validating secret key settings. Android 28-null
azb: [2020-01-31 09:39:35 - {"thread_id":"2","correlation_id":"UNSET"}] Initializing SharedPreferencesFileManager Android 28-null
azp: [2020-01-31 09:39:35 - {"thread_id":"2","correlation_id":"UNSET"}] Init with storage helper: azp Android 28-null
awi:acquireToken: [2020-01-31 09:39:35 - 7bd3baed-d643-4089-bb8c-94ece266a04b] Sending async task from thread:17998 ver:1.16.3-hf2 Android 28-null
awi:acquireToken: [2020-01-31 09:39:35 - 7bd3baed-d643-4089-bb8c-94ece266a04b] Running task in thread:18201 ver:1.16.3-hf2 Android 28-null
awi:validateAuthority: [2020-01-31 09:39:35 - 7bd3baed-d643-4089-bb8c-94ece266a04b] Start validating authority ver:1.16.3-hf2 Android 28-null
Discovery: [2020-01-31 09:39:35 - 7bd3baed-d643-4089-bb8c-94ece266a04b] Sending discovery request to query url. ver:1.16.3-hf2 Android 28-null
awi:validateAuthority: [2020-01-31 09:39:35 - 7bd3baed-d643-4089-bb8c-94ece266a04b] The passed in authority is valid. ver:1.16.3-hf2 Android 28-null
AuthenticationContext:getRedirectUriForBroker: [2020-01-31 09:39:35 - 7bd3baed-d643-4089-bb8c-94ece266a04b] Get expected redirect Uri. ver:1.16.3-hf2 Android 28-null
awi:verifyBrokerRedirectUri: [2020-01-31 09:39:35 - 7bd3baed-d643-4089-bb8c-94ece266a04b] The broker redirect URI is valid. ver:1.16.3-hf2 Android 28-null
awi:tryAcquireTokenSilent: [2020-01-31 09:39:35 - 7bd3baed-d643-4089-bb8c-94ece266a04b] Try to acquire token silently, return valid AT or use RT in the cache. ver:1.16.3-hf2 Android 28-null
awi:tryAcquireTokenSilentLocally: [2020-01-31 09:39:35 - 7bd3baed-d643-4089-bb8c-94ece266a04b] Try to silently get token from local cache. ver:1.16.3-hf2 Android 28-null
axz:getATFromCache: [2020-01-31 09:39:35 - 7bd3baed-d643-4089-bb8c-94ece266a04b] No access token exists. ver:1.16.3-hf2 Android 28-null
awj:getAccessToken: [2020-01-31 09:39:35 - 7bd3baed-d643-4089-bb8c-94ece266a04b] No valid access token exists, try with refresh token. ver:1.16.3-hf2 Android 28-null
awj:tryRT: [2020-01-31 09:39:35 - 7bd3baed-d643-4089-bb8c-94ece266a04b] Regular token cache entry does not exist, try with MRRT. ver:1.16.3-hf2 Android 28-null
awj:tryMRRT: [2020-01-31 09:39:35 - 7bd3baed-d643-4089-bb8c-94ece266a04b] MRRT token does not exist, try with FRT ver:1.16.3-hf2 Android 28-null
awj:tryFRT: [2020-01-31 09:39:35 - 7bd3baed-d643-4089-bb8c-94ece266a04b] FRT cache item does not exist, fall back to try MRRT. ver:1.16.3-hf2 Android 28-null
awj:useMRRT: [2020-01-31 09:39:36 - 7bd3baed-d643-4089-bb8c-94ece266a04b] Send request to use MRRT for new AT. ver:1.16.3-hf2 Android 28-null
awj:useMRRT: [2020-01-31 09:39:36 - 7bd3baed-d643-4089-bb8c-94ece266a04b] MRRT does not exist, cannot proceed with MRRT for new AT. ver:1.16.3-hf2 Android 28-null
awi:tryAcquireTokenSilentWithBroker: [2020-01-31 09:39:36 - 7bd3baed-d643-4089-bb8c-94ece266a04b] Either could not get tokens from local cache or is force refresh request, switch to Broker for auth, clear tokens from local cache for the user. ver:1.16.3-hf2 Android 28-null
awi:removeTokensForUser: [2020-01-31 09:39:36 - 7bd3baed-d643-4089-bb8c-94ece266a04b] No token items need to be deleted for the user. ver:1.16.3-hf2 Android 28-null
awk:logBrokerVersion: [2020-01-31 09:39:36 - 7bd3baed-d643-4089-bb8c-94ece266a04b] Broker app is: com.azure.authenticator;Broker app version: VersionName=6.2001.0140;VersonCode=20200140. ver:1.16.3-hf2 Android 28-null
awk:acquireTokenWithBrokerSilent: [2020-01-31 09:39:36 - 7bd3baed-d643-4089-bb8c-94ece266a04b] User is not specified, skipping background(silent) token request. ver:1.16.3-hf2 Android 28-null
awi:performAcquireTokenRequest: [2020-01-31 09:39:36 - 7bd3baed-d643-4089-bb8c-94ece266a04b] Trying to acquire token interactively. ver:1.16.3-hf2 Android 28-null
AuthenticationContext: [2020-01-31 09:39:36 - 7bd3baed-d643-4089-bb8c-94ece266a04b] Put waiting request. requestId:249975863 CorrelationId: 7bd3baed-d643-4089-bb8c-94ece266a04b ver:1.16.3-hf2 Android 28-null
awi:acquireTokenInteractiveFlow: [2020-01-31 09:39:36 - 7bd3baed-d643-4089-bb8c-94ece266a04b] Launch activity for interactive authentication via broker with callback. ver:1.16.3-hf2 Android 28-null
awk:acquireTokenWithBrokerInteractively: [2020-01-31 09:39:36 - 7bd3baed-d643-4089-bb8c-94ece266a04b] Launch activity for interactive authentication via broker. ver:1.16.3-hf2 Android 28-null
awk:logBrokerVersion: [2020-01-31 09:39:36 - 7bd3baed-d643-4089-bb8c-94ece266a04b] Broker app is: com.azure.authenticator;Broker app version: VersionName=6.2001.0140;VersonCode=20200140. ver:1.16.3-hf2 Android 28-null
aws:bindToBrokerAccountService: [2020-01-31 09:39:36 - 7bd3baed-d643-4089-bb8c-94ece266a04b] Binding to BrokerAccountService for caller uid. ver:1.16.3-hf2 Android 28-null
aws:bindToBrokerAccountService: [2020-01-31 09:39:36 - 7bd3baed-d643-4089-bb8c-94ece266a04b] The status for brokerAccountService bindService call is: true ver:1.16.3-hf2 Android 28-null
aws: [2020-01-31 09:39:36 - 7bd3baed-d643-4089-bb8c-94ece266a04b] Broker Account service is connected. ver:1.16.3-hf2 Android 28-null
awk:acquireTokenWithBrokerInteractively: [2020-01-31 09:39:36 - 7bd3baed-d643-4089-bb8c-94ece266a04b] Calling activity. Pid:17998 tid:18201uid:10409 ver:1.16.3-hf2 Android 28-null
aze: [2020-01-31 09:39:42 - {"thread_id":"2","correlation_id":"7bd3baed-d643-4089-bb8c-94ece266a04b"}] Init: aze Android 28-null
azp: [2020-01-31 09:39:42 - {"thread_id":"2","correlation_id":"7bd3baed-d643-4089-bb8c-94ece266a04b"}] Init with storage helper: azp Android 28-null
azo: [2020-01-31 09:39:42 - {"thread_id":"2","correlation_id":"7bd3baed-d643-4089-bb8c-94ece266a04b"}] Init: azo Android 28-null
azm: [2020-01-31 09:39:42 - {"thread_id":"2","correlation_id":"7bd3baed-d643-4089-bb8c-94ece266a04b"}] Init: azm Android 28-null
azb: [2020-01-31 09:39:42 - {"thread_id":"2","correlation_id":"7bd3baed-d643-4089-bb8c-94ece266a04b"}] Init: azb Android 28-null
azb: [2020-01-31 09:39:42 - {"thread_id":"2","correlation_id":"7bd3baed-d643-4089-bb8c-94ece266a04b"}] Context is an Application? [true] Android 28-null
azb: [2020-01-31 09:39:42 - {"thread_id":"2","correlation_id":"7bd3baed-d643-4089-bb8c-94ece266a04b"}] Validating secret key settings. Android 28-null
azb: [2020-01-31 09:39:42 - {"thread_id":"2","correlation_id":"7bd3baed-d643-4089-bb8c-94ece266a04b"}] Initializing SharedPreferencesFileManager Android 28-null
azp: [2020-01-31 09:39:42 - {"thread_id":"2","correlation_id":"7bd3baed-d643-4089-bb8c-94ece266a04b"}] Init with storage helper: azp Android 28-null
AuthenticationContext:getWaitingRequest: [2020-01-31 09:39:42 - 7bd3baed-d643-4089-bb8c-94ece266a04b] Get waiting request. requestId:249975863 ver:1.16.3-hf2 Android 28-null
awi:onActivityResult: [2020-01-31 09:39:42 - 7bd3baed-d643-4089-bb8c-94ece266a04b] Waiting request found. RequestId:249975863 ver:1.16.3-hf2 Android 28-null
com.example.testexample: [2020-01-31 09:39:42 - 7bd3baed-d643-4089-bb8c-94ece266a04b] [1580463582636] - [getAuthInteractiveCallback]: ONSUCCES ver:1.16.3-hf2 Android 28-null
AuthenticationContext:getRedirectUriForBroker: [2020-01-31 09:40:08] Get expected redirect Uri. ver:1.16.3-hf2 Android 28-null
AuthenticationContext:getRedirectUriForBroker: [2020-01-31 09:40:08] Get expected redirect Uri. ver:1.16.3-hf2 Android 28-null
BrokerProxy: [2020-01-31 09:40:08] Device runs on 23 and above, skip the check for 22 and below. ver:1.16.3-hf2 Android 28-null
aze: [2020-01-31 09:40:08 - {"thread_id":"2","correlation_id":"UNSET"}] Init: aze Android 28-null
azp: [2020-01-31 09:40:08 - {"thread_id":"2","correlation_id":"UNSET"}] Init with storage helper: azp Android 28-null
azo: [2020-01-31 09:40:08 - {"thread_id":"2","correlation_id":"UNSET"}] Init: azo Android 28-null
azm: [2020-01-31 09:40:08 - {"thread_id":"2","correlation_id":"UNSET"}] Init: azm Android 28-null
azb: [2020-01-31 09:40:08 - {"thread_id":"2","correlation_id":"UNSET"}] Init: azb Android 28-null
azb: [2020-01-31 09:40:08 - {"thread_id":"2","correlation_id":"UNSET"}] Context is an Application? [true] Android 28-null
azb: [2020-01-31 09:40:08 - {"thread_id":"2","correlation_id":"UNSET"}] Validating secret key settings. Android 28-null
azb: [2020-01-31 09:40:08 - {"thread_id":"2","correlation_id":"UNSET"}] Initializing SharedPreferencesFileManager Android 28-null
azp: [2020-01-31 09:40:08 - {"thread_id":"2","correlation_id":"UNSET"}] Init with storage helper: azp Android 28-null
awi:acquireToken: [2020-01-31 09:40:08 - 2c765f66-3852-4725-8abd-26abd770b5f0] Sending async task from thread:19419 ver:1.16.3-hf2 Android 28-null
awi:acquireToken: [2020-01-31 09:40:08 - 2c765f66-3852-4725-8abd-26abd770b5f0] Running task in thread:19508 ver:1.16.3-hf2 Android 28-null
awi:validateAuthority: [2020-01-31 09:40:08 - 2c765f66-3852-4725-8abd-26abd770b5f0] Start validating authority ver:1.16.3-hf2 Android 28-null
Discovery: [2020-01-31 09:40:08 - 2c765f66-3852-4725-8abd-26abd770b5f0] Sending discovery request to query url. ver:1.16.3-hf2 Android 28-null
awi:validateAuthority: [2020-01-31 09:40:08 - 2c765f66-3852-4725-8abd-26abd770b5f0] The passed in authority is valid. ver:1.16.3-hf2 Android 28-null
AuthenticationContext:getRedirectUriForBroker: [2020-01-31 09:40:08 - 2c765f66-3852-4725-8abd-26abd770b5f0] Get expected redirect Uri. ver:1.16.3-hf2 Android 28-null
awi:verifyBrokerRedirectUri: [2020-01-31 09:40:08 - 2c765f66-3852-4725-8abd-26abd770b5f0] The broker redirect URI is valid. ver:1.16.3-hf2 Android 28-null
awi:tryAcquireTokenSilent: [2020-01-31 09:40:08 - 2c765f66-3852-4725-8abd-26abd770b5f0] Try to acquire token silently, return valid AT or use RT in the cache. ver:1.16.3-hf2 Android 28-null
awi:tryAcquireTokenSilentLocally: [2020-01-31 09:40:08 - 2c765f66-3852-4725-8abd-26abd770b5f0] Try to silently get token from local cache. ver:1.16.3-hf2 Android 28-null
axz:getATFromCache: [2020-01-31 09:40:08 - 2c765f66-3852-4725-8abd-26abd770b5f0] No access token exists. ver:1.16.3-hf2 Android 28-null
awj:getAccessToken: [2020-01-31 09:40:08 - 2c765f66-3852-4725-8abd-26abd770b5f0] No valid access token exists, try with refresh token. ver:1.16.3-hf2 Android 28-null
awj:tryRT: [2020-01-31 09:40:08 - 2c765f66-3852-4725-8abd-26abd770b5f0] Regular token cache entry does not exist, try with MRRT. ver:1.16.3-hf2 Android 28-null
awj:tryMRRT: [2020-01-31 09:40:09 - 2c765f66-3852-4725-8abd-26abd770b5f0] MRRT token does not exist, try with FRT ver:1.16.3-hf2 Android 28-null
awj:tryFRT: [2020-01-31 09:40:09 - 2c765f66-3852-4725-8abd-26abd770b5f0] FRT cache item does not exist, fall back to try MRRT. ver:1.16.3-hf2 Android 28-null
awj:useMRRT: [2020-01-31 09:40:09 - 2c765f66-3852-4725-8abd-26abd770b5f0] Send request to use MRRT for new AT. ver:1.16.3-hf2 Android 28-null
awj:useMRRT: [2020-01-31 09:40:09 - 2c765f66-3852-4725-8abd-26abd770b5f0] MRRT does not exist, cannot proceed with MRRT for new AT. ver:1.16.3-hf2 Android 28-null
awi:tryAcquireTokenSilentWithBroker: [2020-01-31 09:40:09 - 2c765f66-3852-4725-8abd-26abd770b5f0] Either could not get tokens from local cache or is force refresh request, switch to Broker for auth, clear tokens from local cache for the user. ver:1.16.3-hf2 Android 28-null
awi:removeTokensForUser: [2020-01-31 09:40:09 - 2c765f66-3852-4725-8abd-26abd770b5f0] No token items need to be deleted for the user. ver:1.16.3-hf2 Android 28-null
awk:logBrokerVersion: [2020-01-31 09:40:09 - 2c765f66-3852-4725-8abd-26abd770b5f0] Broker app is: com.azure.authenticator;Broker app version: VersionName=6.2001.0140;VersonCode=20200140. ver:1.16.3-hf2 Android 28-null
awk:acquireTokenWithBrokerSilent: [2020-01-31 09:40:09 - 2c765f66-3852-4725-8abd-26abd770b5f0] User is not specified, skipping background(silent) token request. ver:1.16.3-hf2 Android 28-null
awi:performAcquireTokenRequest: [2020-01-31 09:40:09 - 2c765f66-3852-4725-8abd-26abd770b5f0] Trying to acquire token interactively. ver:1.16.3-hf2 Android 28-null
AuthenticationContext: [2020-01-31 09:40:09 - 2c765f66-3852-4725-8abd-26abd770b5f0] Put waiting request. requestId:84255868 CorrelationId: 2c765f66-3852-4725-8abd-26abd770b5f0 ver:1.16.3-hf2 Android 28-null
awi:acquireTokenInteractiveFlow: [2020-01-31 09:40:09 - 2c765f66-3852-4725-8abd-26abd770b5f0] Launch activity for interactive authentication via broker with callback. ver:1.16.3-hf2 Android 28-null
awk:acquireTokenWithBrokerInteractively: [2020-01-31 09:40:09 - 2c765f66-3852-4725-8abd-26abd770b5f0] Launch activity for interactive authentication via broker. ver:1.16.3-hf2 Android 28-null
awk:logBrokerVersion: [2020-01-31 09:40:09 - 2c765f66-3852-4725-8abd-26abd770b5f0] Broker app is: com.azure.authenticator;Broker app version: VersionName=6.2001.0140;VersonCode=20200140. ver:1.16.3-hf2 Android 28-null
aws:bindToBrokerAccountService: [2020-01-31 09:40:09 - 2c765f66-3852-4725-8abd-26abd770b5f0] Binding to BrokerAccountService for caller uid. ver:1.16.3-hf2 Android 28-null
aws:bindToBrokerAccountService: [2020-01-31 09:40:09 - 2c765f66-3852-4725-8abd-26abd770b5f0] The status for brokerAccountService bindService call is: true ver:1.16.3-hf2 Android 28-null
aws: [2020-01-31 09:40:09 - 2c765f66-3852-4725-8abd-26abd770b5f0] Broker Account service is connected. ver:1.16.3-hf2 Android 28-null
awk:acquireTokenWithBrokerInteractively: [2020-01-31 09:40:09 - 2c765f66-3852-4725-8abd-26abd770b5f0] Calling activity. Pid:19419 tid:19508uid:10409 ver:1.16.3-hf2 Android 28-null
aze: [2020-01-31 09:40:25 - {"thread_id":"2","correlation_id":"2c765f66-3852-4725-8abd-26abd770b5f0"}] Init: aze Android 28-null
azp: [2020-01-31 09:40:25 - {"thread_id":"2","correlation_id":"2c765f66-3852-4725-8abd-26abd770b5f0"}] Init with storage helper: azp Android 28-null
azo: [2020-01-31 09:40:25 - {"thread_id":"2","correlation_id":"2c765f66-3852-4725-8abd-26abd770b5f0"}] Init: azo Android 28-null
azm: [2020-01-31 09:40:25 - {"thread_id":"2","correlation_id":"2c765f66-3852-4725-8abd-26abd770b5f0"}] Init: azm Android 28-null
azb: [2020-01-31 09:40:25 - {"thread_id":"2","correlation_id":"2c765f66-3852-4725-8abd-26abd770b5f0"}] Init: azb Android 28-null
azb: [2020-01-31 09:40:25 - {"thread_id":"2","correlation_id":"2c765f66-3852-4725-8abd-26abd770b5f0"}] Context is an Application? [true] Android 28-null
azb: [2020-01-31 09:40:25 - {"thread_id":"2","correlation_id":"2c765f66-3852-4725-8abd-26abd770b5f0"}] Validating secret key settings. Android 28-null
azb: [2020-01-31 09:40:25 - {"thread_id":"2","correlation_id":"2c765f66-3852-4725-8abd-26abd770b5f0"}] Initializing SharedPreferencesFileManager Android 28-null
azp: [2020-01-31 09:40:25 - {"thread_id":"2","correlation_id":"2c765f66-3852-4725-8abd-26abd770b5f0"}] Init with storage helper: azp Android 28-null
AuthenticationContext:getWaitingRequest: [2020-01-31 09:40:25 - 2c765f66-3852-4725-8abd-26abd770b5f0] Get waiting request. requestId:84255868 ver:1.16.3-hf2 Android 28-null
awi:onActivityResult: [2020-01-31 09:40:25 - 2c765f66-3852-4725-8abd-26abd770b5f0] Waiting request found. RequestId:84255868 ver:1.16.3-hf2 Android 28-null
com.example.testexample: [2020-01-31 09:40:25 - 2c765f66-3852-4725-8abd-26abd770b5f0] [1580463625159] - [getAuthInteractiveCallback]: ONSUCCES ver:1.16.3-hf2 Android 28-null
AuthenticationContext:getRedirectUriForBroker: [2020-01-31 09:41:33] Get expected redirect Uri. ver:1.16.3-hf2 Android 28-null
AuthenticationContext:getRedirectUriForBroker: [2020-01-31 09:41:33] Get expected redirect Uri. ver:1.16.3-hf2 Android 28-null
BrokerProxy: [2020-01-31 09:41:33] Device runs on 23 and above, skip the check for 22 and below. ver:1.16.3-hf2 Android 28-null
aze: [2020-01-31 09:41:33 - {"thread_id":"2","correlation_id":"UNSET"}] Init: aze Android 28-null
azp: [2020-01-31 09:41:33 - {"thread_id":"2","correlation_id":"UNSET"}] Init with storage helper: azp Android 28-null
azo: [2020-01-31 09:41:33 - {"thread_id":"2","correlation_id":"UNSET"}] Init: azo Android 28-null
azm: [2020-01-31 09:41:33 - {"thread_id":"2","correlation_id":"UNSET"}] Init: azm Android 28-null
azb: [2020-01-31 09:41:33 - {"thread_id":"2","correlation_id":"UNSET"}] Init: azb Android 28-null
azb: [2020-01-31 09:41:33 - {"thread_id":"2","correlation_id":"UNSET"}] Context is an Application? [true] Android 28-null
azb: [2020-01-31 09:41:33 - {"thread_id":"2","correlation_id":"UNSET"}] Validating secret key settings. Android 28-null
azb: [2020-01-31 09:41:33 - {"thread_id":"2","correlation_id":"UNSET"}] Initializing SharedPreferencesFileManager Android 28-null
azp: [2020-01-31 09:41:33 - {"thread_id":"2","correlation_id":"UNSET"}] Init with storage helper: azp Android 28-null
awi:acquireToken: [2020-01-31 09:41:33 - f2bece60-1adc-4ad7-81ac-21bf5f4e8784] Sending async task from thread:19902 ver:1.16.3-hf2 Android 28-null
awi:acquireToken: [2020-01-31 09:41:33 - f2bece60-1adc-4ad7-81ac-21bf5f4e8784] Running task in thread:19990 ver:1.16.3-hf2 Android 28-null
awi:validateAuthority: [2020-01-31 09:41:33 - f2bece60-1adc-4ad7-81ac-21bf5f4e8784] Start validating authority ver:1.16.3-hf2 Android 28-null
Discovery: [2020-01-31 09:41:33 - f2bece60-1adc-4ad7-81ac-21bf5f4e8784] Sending discovery request to query url. ver:1.16.3-hf2 Android 28-null
awi:validateAuthority: [2020-01-31 09:41:33 - f2bece60-1adc-4ad7-81ac-21bf5f4e8784] The passed in authority is valid. ver:1.16.3-hf2 Android 28-null
AuthenticationContext:getRedirectUriForBroker: [2020-01-31 09:41:33 - f2bece60-1adc-4ad7-81ac-21bf5f4e8784] Get expected redirect Uri. ver:1.16.3-hf2 Android 28-null
awi:verifyBrokerRedirectUri: [2020-01-31 09:41:33 - f2bece60-1adc-4ad7-81ac-21bf5f4e8784] The broker redirect URI is valid. ver:1.16.3-hf2 Android 28-null
awi:tryAcquireTokenSilent: [2020-01-31 09:41:33 - f2bece60-1adc-4ad7-81ac-21bf5f4e8784] Try to acquire token silently, return valid AT or use RT in the cache. ver:1.16.3-hf2 Android 28-null
awi:tryAcquireTokenSilentLocally: [2020-01-31 09:41:33 - f2bece60-1adc-4ad7-81ac-21bf5f4e8784] Try to silently get token from local cache. ver:1.16.3-hf2 Android 28-null
axz:getATFromCache: [2020-01-31 09:41:33 - f2bece60-1adc-4ad7-81ac-21bf5f4e8784] No access token exists. ver:1.16.3-hf2 Android 28-null
awj:getAccessToken: [2020-01-31 09:41:33 - f2bece60-1adc-4ad7-81ac-21bf5f4e8784] No valid access token exists, try with refresh token. ver:1.16.3-hf2 Android 28-null
awj:tryRT: [2020-01-31 09:41:33 - f2bece60-1adc-4ad7-81ac-21bf5f4e8784] Regular token cache entry does not exist, try with MRRT. ver:1.16.3-hf2 Android 28-null
awj:tryMRRT: [2020-01-31 09:41:33 - f2bece60-1adc-4ad7-81ac-21bf5f4e8784] MRRT token does not exist, try with FRT ver:1.16.3-hf2 Android 28-null
awj:tryFRT: [2020-01-31 09:41:33 - f2bece60-1adc-4ad7-81ac-21bf5f4e8784] FRT cache item does not exist, fall back to try MRRT. ver:1.16.3-hf2 Android 28-null
awj:useMRRT: [2020-01-31 09:41:33 - f2bece60-1adc-4ad7-81ac-21bf5f4e8784] Send request to use MRRT for new AT. ver:1.16.3-hf2 Android 28-null
awj:useMRRT: [2020-01-31 09:41:33 - f2bece60-1adc-4ad7-81ac-21bf5f4e8784] MRRT does not exist, cannot proceed with MRRT for new AT. ver:1.16.3-hf2 Android 28-null
awi:tryAcquireTokenSilentWithBroker: [2020-01-31 09:41:33 - f2bece60-1adc-4ad7-81ac-21bf5f4e8784] Either could not get tokens from local cache or is force refresh request, switch to Broker for auth, clear tokens from local cache for the user. ver:1.16.3-hf2 Android 28-null
awi:removeTokensForUser: [2020-01-31 09:41:33 - f2bece60-1adc-4ad7-81ac-21bf5f4e8784] No token items need to be deleted for the user. ver:1.16.3-hf2 Android 28-null
awk:logBrokerVersion: [2020-01-31 09:41:33 - f2bece60-1adc-4ad7-81ac-21bf5f4e8784] Broker app is: com.azure.authenticator;Broker app version: VersionName=6.2001.0140;VersonCode=20200140. ver:1.16.3-hf2 Android 28-null
awk:acquireTokenWithBrokerSilent: [2020-01-31 09:41:33 - f2bece60-1adc-4ad7-81ac-21bf5f4e8784] User is not specified, skipping background(silent) token request. ver:1.16.3-hf2 Android 28-null
awi:performAcquireTokenRequest: [2020-01-31 09:41:33 - f2bece60-1adc-4ad7-81ac-21bf5f4e8784] Trying to acquire token interactively. ver:1.16.3-hf2 Android 28-null
AuthenticationContext: [2020-01-31 09:41:33 - f2bece60-1adc-4ad7-81ac-21bf5f4e8784] Put waiting request. requestId:189489007 CorrelationId: f2bece60-1adc-4ad7-81ac-21bf5f4e8784 ver:1.16.3-hf2 Android 28-null
awi:acquireTokenInteractiveFlow: [2020-01-31 09:41:33 - f2bece60-1adc-4ad7-81ac-21bf5f4e8784] Launch activity for interactive authentication via broker with callback. ver:1.16.3-hf2 Android 28-null
awk:acquireTokenWithBrokerInteractively: [2020-01-31 09:41:33 - f2bece60-1adc-4ad7-81ac-21bf5f4e8784] Launch activity for interactive authentication via broker. ver:1.16.3-hf2 Android 28-null
awk:logBrokerVersion: [2020-01-31 09:41:33 - f2bece60-1adc-4ad7-81ac-21bf5f4e8784] Broker app is: com.azure.authenticator;Broker app version: VersionName=6.2001.0140;VersonCode=20200140. ver:1.16.3-hf2 Android 28-null
aws:bindToBrokerAccountService: [2020-01-31 09:41:33 - f2bece60-1adc-4ad7-81ac-21bf5f4e8784] Binding to BrokerAccountService for caller uid. ver:1.16.3-hf2 Android 28-null
aws:bindToBrokerAccountService: [2020-01-31 09:41:33 - f2bece60-1adc-4ad7-81ac-21bf5f4e8784] The status for brokerAccountService bindService call is: true ver:1.16.3-hf2 Android 28-null
aws: [2020-01-31 09:41:33 - f2bece60-1adc-4ad7-81ac-21bf5f4e8784] Broker Account service is connected. ver:1.16.3-hf2 Android 28-null
awk:acquireTokenWithBrokerInteractively: [2020-01-31 09:41:33 - f2bece60-1adc-4ad7-81ac-21bf5f4e8784] Calling activity. Pid:19902 tid:19990uid:10409 ver:1.16.3-hf2 Android 28-null
aze: [2020-01-31 09:41:35 - {"thread_id":"2","correlation_id":"f2bece60-1adc-4ad7-81ac-21bf5f4e8784"}] Init: aze Android 28-null
azp: [2020-01-31 09:41:35 - {"thread_id":"2","correlation_id":"f2bece60-1adc-4ad7-81ac-21bf5f4e8784"}] Init with storage helper: azp Android 28-null
azo: [2020-01-31 09:41:35 - {"thread_id":"2","correlation_id":"f2bece60-1adc-4ad7-81ac-21bf5f4e8784"}] Init: azo Android 28-null
azm: [2020-01-31 09:41:35 - {"thread_id":"2","correlation_id":"f2bece60-1adc-4ad7-81ac-21bf5f4e8784"}] Init: azm Android 28-null
azb: [2020-01-31 09:41:35 - {"thread_id":"2","correlation_id":"f2bece60-1adc-4ad7-81ac-21bf5f4e8784"}] Init: azb Android 28-null
azb: [2020-01-31 09:41:35 - {"thread_id":"2","correlation_id":"f2bece60-1adc-4ad7-81ac-21bf5f4e8784"}] Context is an Application? [true] Android 28-null
azb: [2020-01-31 09:41:35 - {"thread_id":"2","correlation_id":"f2bece60-1adc-4ad7-81ac-21bf5f4e8784"}] Validating secret key settings. Android 28-null
azb: [2020-01-31 09:41:35 - {"thread_id":"2","correlation_id":"f2bece60-1adc-4ad7-81ac-21bf5f4e8784"}] Initializing SharedPreferencesFileManager Android 28-null
azp: [2020-01-31 09:41:35 - {"thread_id":"2","correlation_id":"f2bece60-1adc-4ad7-81ac-21bf5f4e8784"}] Init with storage helper: azp Android 28-null
AuthenticationContext:getWaitingRequest: [2020-01-31 09:41:35 - f2bece60-1adc-4ad7-81ac-21bf5f4e8784] Get waiting request. requestId:189489007 ver:1.16.3-hf2 Android 28-null
awi:onActivityResult: [2020-01-31 09:41:35 - f2bece60-1adc-4ad7-81ac-21bf5f4e8784] Waiting request found. RequestId:189489007 ver:1.16.3-hf2 Android 28-null
com.example.testexample: [2020-01-31 09:41:35 - f2bece60-1adc-4ad7-81ac-21bf5f4e8784] [1580463695873] - [getAuthInteractiveCallback]: ONSUCCES ver:1.16.3-hf2 Android 28-null

@ChristianGiuseppe Are you providing a login hint to the acquire token method? It seems like you're not, and therefore the Authenticator app is opening and showing you the Pick Account screen to select an account to use for the request. This is expected behavior. ADAL / Broker cannot provide a token silently unless they know which account you are requesting token for.

Can you check if you're passing a login hint to the acquire token method and let me know if you still experience the same behavior even with the login hint provided. Thanks!

@shahzaibj Thanks a lot for the answer. The suggestion to add the login hint in the acquireToken seems to have solved the problem.