Azure-Samples / active-directory-verifiable-credentials

A code sample demonstrating how to use Azure Active Directory's preview functionality to issue and consume verifiable credentials.
108 stars 64 forks source link

Could not load request. #1

Closed kg0r0 closed 3 years ago

kg0r0 commented 3 years ago

The following error was displayed while checking the operation using the emulator. I tried changing the host to 10.0.2.2 but that didn't solve.

image

Below is the emulator I tried.

image

I would appreciate if you could tell me if there are any settings required to check the operation using the emulator.

timcappalli commented 3 years ago

Can you please provide more details such as the Microsoft Authenticator version, are you using the most recent sample code, etc

kg0r0 commented 3 years ago

Thank you for confirmation. I am using the following version. Microsoft Authenticator: Application Version 6.2007.4534 Node.js: 14.0.0

I used the sample code of 7th July. However, when the Sample Code is updated, the URI scheme is changed from "verifiablecredential://"" to "openid: //" and the "QR code is invalid" error occurs.

timcappalli commented 3 years ago

You need to be on Authenticator 6.2007.5012 or greater. If you're not seeing an update, you'll need to join the Authenticator beta in the Play Store. Also, please use the latest sample code.

kg0r0 commented 3 years ago

Thank you very much. I'll try it.

kg0r0 commented 3 years ago

I tried with the latest Microsoft Authenticator 6.2007.5086 and sample code.

View logs ``` 08-04 04:38:18:200 UTC INFO/App: App restriction sharedDeviceMode: false LaunchActivity.queryIsSharedDeviceModeAppRestrictionSet()@55 [main] 08-04 04:38:19:452 UTC INFO/App: Merging broker accounts into accounts list MergeBrokerAccountsTask.doInBackground()@59 [AsyncTask #4] 08-04 04:38:19:476 UTC INFO/App: hasDosPreventer = false AccountStorageCustomQueries.hasMfaAccountsConfiguredForNotifications()@92 [main] 08-04 04:38:19:513 UTC INFO/App: hasDosPreventer = false AccountStorageCustomQueries.hasMfaAccountsConfiguredForNotifications()@92 [main] 08-04 04:38:19:529 UTC INFO/App: onResume MainActivity.onResume()@222 [main] 08-04 04:38:19:580 UTC INFO/App: Network Info: [type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: , failover: false, available: true, roaming: false] Util$Companion.isConnected()@87 [main] 08-04 04:38:19:591 UTC INFO/App: Proxy Info is null for this connection Util$Companion.isConnected()@93 [main] 08-04 04:38:19:606 UTC INFO/App: Task CallbackDialogTask, id = MainActivityData PrivacyWe gather non-personally identifiable usage data to help us improve the app. You can turn this off in settings. Learn more in the FAQs available under the Help menu. has been put to the queue. DialogTaskQueue.enqueueTask()@58 [main] 08-04 04:38:19:607 UTC INFO/App: Proceed to showing: CallbackDialogTask, id = MainActivityData PrivacyWe gather non-personally identifiable usage data to help us improve the app. You can turn this off in settings. Learn more in the FAQs available under the Help menu. DialogTaskQueue.showTask()@86 [main] 08-04 04:38:23:046 UTC INFO/App: Total number of broker accounts: 0 MergeBrokerAccountsTask.doInBackground()@68 [AsyncTask #4] 08-04 04:38:23:108 UTC INFO/App: Syncing broker accounts into accounts list SyncBrokerAccountsTask.doInBackground()@34 [AsyncTask #7] 08-04 04:38:23:116 UTC INFO/App: Total number of received brokerAccounts: 0 SyncBrokerAccountsTask.doInBackground()@45 [AsyncTask #7] 08-04 04:38:23:118 UTC INFO/App: Total Number of AAD accounts: 0 SyncBrokerAccountsTask.doInBackground()@62 [AsyncTask #7] 08-04 04:38:23:119 UTC INFO/App: Total number of accounts to remove: 0 SyncBrokerAccountsTask.doInBackground()@86 [AsyncTask #7] 08-04 04:38:23:584 UTC INFO/App: Determining if calling package is a recent valid install referrer: Installed At = 1596507131 Current Time = 1596515903 Referring App = utm_source=google-play&utm_medium=organic InstallReferrerApi.onInstallReferrerSetupFinished()@53 [main] 08-04 04:38:23:585 UTC INFO/App: Install referrer calculation completed, determined from too long ago InstallReferrerApi.onInstallReferrerSetupFinished()@85 [main] 08-04 04:38:23:606 UTC DEBUG/App: onPause MainActivity.onPause()@332 [main] 08-04 04:38:23:637 UTC INFO/App: Show data privacy information AppDialogFragments$showDataPrivacyDialogIfNecessary$dataPrivacyDialogBuilder$2.onShow()@134 [main] 08-04 04:38:23:708 UTC INFO/App: Task CallbackDialogTask, id = FirstRunActivityData PrivacyWe gather non-personally identifiable usage data to help us improve the app. You can turn this off in settings. Learn more in the FAQs available under the Help menu. has been put to the queue. DialogTaskQueue.enqueueTask()@58 [main] 08-04 04:38:23:750 UTC INFO/App: First Run Experience Starting Slide: 1 FirstRunIntroBaseFragment.onStart()@66 [main] 08-04 04:38:23:754 UTC INFO/App: Task is already in the queue: CallbackDialogTask, id = FirstRunActivityData PrivacyWe gather non-personally identifiable usage data to help us improve the app. You can turn this off in settings. Learn more in the FAQs available under the Help menu. DialogTaskQueue.enqueueTask()@50 [main] 08-04 04:38:23:773 UTC INFO/App: App contains 0 accounts total. CollectLogsUtils.logNumberOfAccounts()@402 [main] 08-04 04:38:23:847 UTC INFO/App: hasDosPreventer = false AccountStorageCustomQueries.hasMfaAccountsConfiguredForNotifications()@92 [DefaultDispatcher-worker-1] 08-04 04:38:23:870 UTC INFO/App: Merging broker accounts into accounts list MergeBrokerAccountsTask.doInBackground()@59 [AsyncTask #7] 08-04 04:38:23:872 UTC INFO/App: Total number of broker accounts: 0 MergeBrokerAccountsTask.doInBackground()@68 [AsyncTask #7] 08-04 04:38:24:469 UTC INFO/App: hasDosPreventer = false AccountStorageCustomQueries.hasMfaAccountsConfiguredForNotifications()@92 [DefaultDispatcher-worker-3] 08-04 04:38:24:755 UTC INFO/App: Dialog task MainActivityData PrivacyWe gather non-personally identifiable usage data to help us improve the app. You can turn this off in settings. Learn more in the FAQs available under the Help menu. has finished. DialogTaskQueue.taskFinished()@123 [main] 08-04 04:38:24:766 UTC INFO/App: Proceed to showing: CallbackDialogTask, id = FirstRunActivityData PrivacyWe gather non-personally identifiable usage data to help us improve the app. You can turn this off in settings. Learn more in the FAQs available under the Help menu. DialogTaskQueue.showTask()@86 [main] 08-04 04:38:24:778 UTC DEBUG/App: onStop MainActivity.onStop()@341 [main] 08-04 04:38:24:780 UTC INFO/App: Clearing the dialog queue. DialogTaskQueue.clear()@138 [main] 08-04 04:38:24:793 UTC DEBUG/App: onDestroy MainActivity.onDestroy()@355 [main] 08-04 04:38:25:114 UTC INFO/App: Show data privacy information AppDialogFragments$showDataPrivacyDialogIfNecessary$dataPrivacyDialogBuilder$2.onShow()@134 [main] 08-04 04:38:25:238 UTC INFO/App: FCM device registration successful: tF5YSVzYiC FcmRegistrationManager.getLegacyTokenForSenderIds()@91 [Firebase-Messaging-Intent-Handle] 08-04 04:38:25:238 UTC INFO/App: Refreshed token: tF5YSVzYiC FcmRegistrationManager.acquireLegacyFcmToken()@61 [Firebase-Messaging-Intent-Handle] 08-04 04:38:25:252 UTC INFO/App: FCM device registration successful: tF5YSVzYiC FcmRegistrationManager.persistFcmToken()@113 [Firebase-Messaging-Intent-Handle] 08-04 04:38:25:256 UTC INFO/App: FCM REGISTRATION IDS: current: tF5YSVzYiC, activated: , previousActivated: CollectLogsUtils.printDeviceTokens()@414 [Firebase-Messaging-Intent-Handle] 08-04 04:38:25:256 UTC INFO/App: isDosPreventerAvailable: false CollectLogsUtils.printDeviceTokens()@420 [Firebase-Messaging-Intent-Handle] 08-04 04:38:25:464 UTC INFO/App: FcmChangeDeviceToken Worker started. FcmChangeDeviceTokenWorker.doWork()@33 [pool-10-thread-1] 08-04 04:38:25:470 UTC INFO/App: FCM REGISTRATION IDS: current: tF5YSVzYiC, activated: , previousActivated: CollectLogsUtils.printDeviceTokens()@414 [pool-10-thread-1] 08-04 04:38:25:474 UTC INFO/App: isDosPreventerAvailable: false CollectLogsUtils.printDeviceTokens()@420 [pool-10-thread-1] 08-04 04:38:25:475 UTC INFO/App: FcmChangeDeviceToken Worker completed. FcmChangeDeviceTokenWorker.doWork()@55 [pool-10-thread-1] 08-04 04:38:59:970 UTC INFO/App: DataPrivacyDialog button_ok was clicked AppDialogFragments$showDataPrivacyDialogIfNecessary$dataPrivacyDialogBuilder$1.onClick()@127 [main] 08-04 04:38:59:987 UTC WARN/App: Attempted to finish taskId = FirstRunActivityData PrivacyWe gather non-personally identifiable usage data to help us improve the app. You can turn this off in settings. Learn more in the FAQs available under the Help menu. but it's not shown by DialogTaskQueue now. DialogTaskQueue.taskFinished()@127 [main] 08-04 04:39:40:633 UTC INFO/App: Navigating to add MSA account by scanning QR code. FirstRunIntroAddMsaFragment$onViewCreated$2.onClick()@54 [main] 08-04 04:39:40:886 UTC INFO/App: Merging broker accounts into accounts list MergeBrokerAccountsTask.doInBackground()@59 [AsyncTask #7] 08-04 04:39:40:888 UTC INFO/App: Total number of broker accounts: 0 MergeBrokerAccountsTask.doInBackground()@68 [AsyncTask #7] 08-04 04:39:40:899 UTC INFO/App: hasDosPreventer = false AccountStorageCustomQueries.hasMfaAccountsConfiguredForNotifications()@92 [main] 08-04 04:39:40:904 UTC INFO/App: hasDosPreventer = false AccountStorageCustomQueries.hasMfaAccountsConfiguredForNotifications()@92 [main] 08-04 04:39:40:907 UTC INFO/App: Syncing broker accounts into accounts list SyncBrokerAccountsTask.doInBackground()@34 [AsyncTask #7] 08-04 04:39:40:918 UTC INFO/App: onResume MainActivity.onResume()@222 [main] 08-04 04:39:40:925 UTC INFO/App: Handling launch Flow: ADD_MSA_ACCOUNT_QRCODE MainActivity.handleActivityLaunchFlow()@748 [main] 08-04 04:39:40:926 UTC INFO/App: Launching to add MSA account using QR code MainActivity.launchAddAccountViaQrCode()@1001 [main] 08-04 04:39:40:930 UTC INFO/App: Total number of received brokerAccounts: 0 SyncBrokerAccountsTask.doInBackground()@45 [AsyncTask #7] 08-04 04:39:40:937 UTC INFO/App: Total Number of AAD accounts: 0 SyncBrokerAccountsTask.doInBackground()@62 [AsyncTask #7] 08-04 04:39:40:938 UTC INFO/App: Total number of accounts to remove: 0 SyncBrokerAccountsTask.doInBackground()@86 [AsyncTask #7] 08-04 04:39:40:980 UTC INFO/App: Network Info: [type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: , failover: false, available: true, roaming: false] Util$Companion.isConnected()@87 [main] 08-04 04:39:40:986 UTC INFO/App: Proxy Info is null for this connection Util$Companion.isConnected()@93 [main] 08-04 04:39:41:218 UTC INFO/App: hasDosPreventer = false AccountStorageCustomQueries.hasMfaAccountsConfiguredForNotifications()@92 [DefaultDispatcher-worker-2] 08-04 04:39:41:240 UTC INFO/App: Merging broker accounts into accounts list MergeBrokerAccountsTask.doInBackground()@59 [AsyncTask #7] 08-04 04:39:41:252 UTC INFO/App: Total number of broker accounts: 0 MergeBrokerAccountsTask.doInBackground()@68 [AsyncTask #7] 08-04 04:39:41:267 UTC DEBUG/App: onPause MainActivity.onPause()@332 [main] 08-04 04:39:41:837 UTC INFO/App: hasDosPreventer = false AccountStorageCustomQueries.hasMfaAccountsConfiguredForNotifications()@92 [main] 08-04 04:39:42:111 UTC INFO/App: hasDosPreventer = false AccountStorageCustomQueries.hasMfaAccountsConfiguredForNotifications()@92 [DefaultDispatcher-worker-2] 08-04 04:39:43:588 UTC INFO/App: onRequestPermissionsResult: requestCode = 1 MainActivity.onRequestPermissionsResult()@431 [main] 08-04 04:39:43:711 UTC INFO/App: onResume MainActivity.onResume()@222 [main] 08-04 04:39:53:903 UTC DEBUG/App: onBackPressed MainActivity.onBackPressed()@361 [main] 08-04 04:39:53:938 UTC INFO/App: Merging broker accounts into accounts list MergeBrokerAccountsTask.doInBackground()@59 [AsyncTask #10] 08-04 04:39:53:977 UTC INFO/App: hasDosPreventer = false AccountStorageCustomQueries.hasMfaAccountsConfiguredForNotifications()@92 [main] 08-04 04:39:53:986 UTC INFO/App: hasDosPreventer = false AccountStorageCustomQueries.hasMfaAccountsConfiguredForNotifications()@92 [main] 08-04 04:39:53:987 UTC INFO/App: Total number of broker accounts: 0 MergeBrokerAccountsTask.doInBackground()@68 [AsyncTask #10] 08-04 04:39:53:988 UTC INFO/App: Syncing broker accounts into accounts list SyncBrokerAccountsTask.doInBackground()@34 [AsyncTask #10] 08-04 04:39:53:990 UTC INFO/App: Network Info: [type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: , failover: false, available: true, roaming: false] Util$Companion.isConnected()@87 [main] 08-04 04:39:54:004 UTC INFO/App: Proxy Info is null for this connection Util$Companion.isConnected()@93 [main] 08-04 04:39:54:063 UTC INFO/App: Total number of received brokerAccounts: 0 SyncBrokerAccountsTask.doInBackground()@45 [AsyncTask #10] 08-04 04:39:54:107 UTC INFO/App: hasDosPreventer = false AccountStorageCustomQueries.hasMfaAccountsConfiguredForNotifications()@92 [main] 08-04 04:39:54:148 UTC INFO/App: hasDosPreventer = false AccountStorageCustomQueries.hasMfaAccountsConfiguredForNotifications()@92 [DefaultDispatcher-worker-2] 08-04 04:39:54:173 UTC INFO/App: Total Number of AAD accounts: 0 SyncBrokerAccountsTask.doInBackground()@62 [AsyncTask #10] 08-04 04:39:54:257 UTC INFO/App: Total number of accounts to remove: 0 SyncBrokerAccountsTask.doInBackground()@86 [AsyncTask #10] 08-04 04:39:54:324 UTC INFO/App: Merging broker accounts into accounts list MergeBrokerAccountsTask.doInBackground()@59 [AsyncTask #11] 08-04 04:39:54:337 UTC INFO/App: Total number of broker accounts: 0 MergeBrokerAccountsTask.doInBackground()@68 [AsyncTask #11] 08-04 04:39:54:349 UTC INFO/App: hasDosPreventer = false AccountStorageCustomQueries.hasMfaAccountsConfiguredForNotifications()@92 [DefaultDispatcher-worker-1] 08-04 04:39:56:937 UTC INFO/App: Launching to add secret-key based account MainActivity.launchAddAccountViaQrCode()@1005 [main] 08-04 04:40:04:712 UTC WARN/App: File not found: authenticator.txt.1 CollectLogsUtils.readFileFromInternalStorage()@99 [AsyncTask #12] 08-04 04:40:04:724 UTC WARN/App: File not found: broker.txt.1 CollectLogsUtils.readFileFromInternalStorage()@99 [AsyncTask #12] 08-04 04:40:04:725 UTC WARN/App: File not found: DID.txt.1 CollectLogsUtils.readFileFromInternalStorage()@99 [AsyncTask #12] 08-04 04:40:04:745 UTC WARN/App: File not found: brooklyn.txt.1 CollectLogsUtils.readFileFromInternalStorage()@99 [AsyncTask #12] 08-04 04:38:19:060 UTC INFO/Broker: [2020-08-04 04:38:19 - {"thread_id":"2","correlation_id":"UNSET"}] KEY_MIGRATION_BROADCASTER_START| Called by: AUTHENTICATOR_APP_LAUNCH Android 30 Thread.run()@923 [pool-12-thread-1] 08-04 04:38:19:454 UTC INFO/Broker: [2020-08-04 04:38:19 - {"thread_id":"1124","correlation_id":"UNSET"}] Creating BrokerClientApplication singleton instance Android 30 Thread.run()@923 [pool-12-thread-1] 08-04 04:38:19:602 UTC INFO/Broker: [2020-08-04 04:38:19 - {"thread_id":"1124","correlation_id":"UNSET"}] Upgrade state [INCOMPLETE] Android 30 Thread.run()@923 [pool-12-thread-1] 08-04 04:38:19:612 UTC INFO/WPJ: Get upn WPJ(PRT) 3.3.1 WorkplaceJoin.getWorkplaceJoinedUPN()@217 [main] 08-04 04:38:19:625 UTC INFO/Broker: [2020-08-04 04:38:19 - {"thread_id":"1124","correlation_id":"UNSET"}] Upgrade state [INCOMPLETE] Android 30 Thread.run()@923 [pool-12-thread-1] 08-04 04:38:19:628 UTC INFO/Broker: [2020-08-04 04:38:19 - {"thread_id":"1124","correlation_id":"UNSET"}] Performing fallback cache migration. Android 30 Thread.run()@923 [pool-12-thread-1] 08-04 04:38:19:766 UTC DEBUG/WPJ: Connecting to WPJService to retrieve WPJ Registered Upn. WPJ(PRT) 3.3.1 WorkplaceJoinServiceProxy.getWorkplaceJoinedUpn()@85 [pool-21-thread-1] 08-04 04:38:19:790 UTC DEBUG/WPJ: Binding to WPJService for caller uid: 10152 WPJ(PRT) 3.3.1 WorkplaceJoinServiceHandler.bindToWPJService()@148 [pool-21-thread-1] 08-04 04:38:19:796 UTC INFO/Broker: [2020-08-04 04:38:19 - {"thread_id":"1162","correlation_id":"UNSET"}] Performing cache upgrade... Android 30 Thread.run()@923 [pool-12-thread-1] 08-04 04:38:19:854 UTC INFO/Broker: [2020-08-04 04:38:19 - {"thread_id":"1162","correlation_id":"UNSET"}] Found [0] accounts. Android 30 Thread.run()@923 [pool-12-thread-1] 08-04 04:38:19:863 UTC INFO/Broker: [2020-08-04 04:38:19 - {"thread_id":"2","correlation_id":"UNSET"}] KEY_MIGRATION_BROADCASTER| The other broker not found. Android 30 Thread.run()@923 [pool-12-thread-1] 08-04 04:38:19:864 UTC INFO/Broker: [2020-08-04 04:38:19 - {"thread_id":"2","correlation_id":"UNSET"}] KEY_MIGRATION_BROADCASTER_END| The other broker doesn't support this operation, or there is no broker on the other side. Android 30 Thread.run()@923 [pool-12-thread-1] 08-04 04:38:19:885 UTC DEBUG/WPJ: The status for WorkplaceJoinService bindService call is: true WPJ(PRT) 3.3.1 WorkplaceJoinServiceHandler.bindToWPJService()@155 [pool-21-thread-1] 08-04 04:38:19:901 UTC INFO/Broker: [2020-08-04 04:38:19 - {"thread_id":"1162","correlation_id":"UNSET"}] Loading cloud metadata. Android 30 Thread.run()@923 [pool-12-thread-1] 08-04 04:38:19:906 UTC WARN/Broker: [2020-08-04 04:38:19 - {"thread_id":"1162","correlation_id":"UNSET"}] Telemetry is disabled because the Telemetry context or configuration is null Android 30 Thread.run()@923 [pool-12-thread-1] 08-04 04:38:23:003 UTC INFO/Broker: [2020-08-04 04:38:22 - {"thread_id":"1124","correlation_id":"UNSET"}] No account matching broker account type exists. Android 30 Thread.run()@923 [pool-12-thread-1] 08-04 04:38:23:114 UTC INFO/Broker: [2020-08-04 04:38:23 - {"thread_id":"1170","correlation_id":"UNSET"}] No account matching broker account type exists. Android 30 Thread.run()@923 [pool-12-thread-1] 08-04 04:38:23:575 UTC INFO/Broker: [2020-08-04 04:38:23 - {"thread_id":"2","correlation_id":"UNSET"}] KEY_MIGRATION_BROADCASTER| New key generated. Android 30 Thread.run()@923 [pool-12-thread-1] 08-04 04:38:23:872 UTC INFO/Broker: [2020-08-04 04:38:23 - {"thread_id":"1170","correlation_id":"UNSET"}] No account matching broker account type exists. Android 30 Thread.run()@923 [pool-12-thread-1] 08-04 04:38:24:232 UTC DEBUG/WPJ: WPJ Service is connected. WPJ(PRT) 3.3.1 WorkplaceJoinServiceHandler$WorkplaceJoinServiceConnection.onServiceConnected()@206 [main] 08-04 04:38:24:335 UTC DEBUG/WPJ: # of Accounts in AccountManager:0 WPJ(PRT) 3.3.1 AccountManagerStorageHelper.getWPJAccount()@244 [pool-23-thread-1] 08-04 04:38:24:356 UTC DEBUG/WPJ: Retrieved upn from WPJ Service. UPN is null WPJ(PRT) 3.3.1 WorkplaceJoinServiceProxy.getWorkplaceJoinedUpn()@87 [pool-21-thread-1] 08-04 04:38:24:378 UTC INFO/WPJ: WPJ account does not exist. WPJ(PRT) 3.3.1 WorkplaceJoinOperation.getAccount()@161 [pool-21-thread-1] 08-04 04:38:24:493 UTC INFO/WPJ: The device is not joined WPJ(PRT) 3.3.1 WorkplaceJoin$1.run()@229 [pool-21-thread-1] 08-04 04:39:40:880 UTC INFO/Broker: [2020-08-04 04:39:40 - {"thread_id":"2","correlation_id":"UNSET"}] KEY_MIGRATION_BROADCASTER| Called by: AUTHENTICATOR_APP_LAUNCH | This broker already has a key. No need to migrate. Android 30 Thread.run()@923 [pool-12-thread-1] 08-04 04:39:40:888 UTC INFO/Broker: [2020-08-04 04:39:40 - {"thread_id":"1170","correlation_id":"UNSET"}] No account matching broker account type exists. Android 30 Thread.run()@923 [pool-12-thread-1] 08-04 04:39:40:930 UTC INFO/Broker: [2020-08-04 04:39:40 - {"thread_id":"1170","correlation_id":"UNSET"}] No account matching broker account type exists. Android 30 Thread.run()@923 [pool-12-thread-1] 08-04 04:39:41:003 UTC INFO/WPJ: Get upn WPJ(PRT) 3.3.1 WorkplaceJoin.getWorkplaceJoinedUPN()@217 [main] 08-04 04:39:41:023 UTC DEBUG/WPJ: Connecting to WPJService to retrieve WPJ Registered Upn. WPJ(PRT) 3.3.1 WorkplaceJoinServiceProxy.getWorkplaceJoinedUpn()@85 [pool-21-thread-2] 08-04 04:39:41:039 UTC DEBUG/WPJ: Binding to WPJService for caller uid: 10152 WPJ(PRT) 3.3.1 WorkplaceJoinServiceHandler.bindToWPJService()@148 [pool-21-thread-2] 08-04 04:39:41:072 UTC DEBUG/WPJ: The status for WorkplaceJoinService bindService call is: true WPJ(PRT) 3.3.1 WorkplaceJoinServiceHandler.bindToWPJService()@155 [pool-21-thread-2] 08-04 04:39:41:306 UTC INFO/Broker: [2020-08-04 04:39:41 - {"thread_id":"1170","correlation_id":"UNSET"}] No account matching broker account type exists. Android 30 Thread.run()@923 [pool-12-thread-1] 08-04 04:39:42:235 UTC DEBUG/WPJ: WPJ Service is connected. WPJ(PRT) 3.3.1 WorkplaceJoinServiceHandler$WorkplaceJoinServiceConnection.onServiceConnected()@206 [main] 08-04 04:39:42:285 UTC DEBUG/WPJ: # of Accounts in AccountManager:0 WPJ(PRT) 3.3.1 AccountManagerStorageHelper.getWPJAccount()@244 [pool-23-thread-2] 08-04 04:39:42:286 UTC DEBUG/WPJ: Retrieved upn from WPJ Service. UPN is null WPJ(PRT) 3.3.1 WorkplaceJoinServiceProxy.getWorkplaceJoinedUpn()@87 [pool-21-thread-2] 08-04 04:39:42:287 UTC INFO/WPJ: WPJ account does not exist. WPJ(PRT) 3.3.1 WorkplaceJoinOperation.getAccount()@161 [pool-21-thread-2] 08-04 04:39:42:300 UTC INFO/WPJ: The device is not joined WPJ(PRT) 3.3.1 WorkplaceJoin$1.run()@229 [pool-21-thread-2] 08-04 04:39:53:986 UTC INFO/Broker: [2020-08-04 04:39:53 - {"thread_id":"1195","correlation_id":"UNSET"}] No account matching broker account type exists. Android 30 Thread.run()@923 [pool-12-thread-1] 08-04 04:39:54:016 UTC INFO/Broker: [2020-08-04 04:39:54 - {"thread_id":"1195","correlation_id":"UNSET"}] No account matching broker account type exists. Android 30 Thread.run()@923 [pool-12-thread-1] 08-04 04:39:54:049 UTC INFO/WPJ: Get upn WPJ(PRT) 3.3.1 WorkplaceJoin.getWorkplaceJoinedUPN()@217 [main] 08-04 04:39:54:105 UTC DEBUG/WPJ: Connecting to WPJService to retrieve WPJ Registered Upn. WPJ(PRT) 3.3.1 WorkplaceJoinServiceProxy.getWorkplaceJoinedUpn()@85 [pool-21-thread-2] 08-04 04:39:54:157 UTC DEBUG/WPJ: Binding to WPJService for caller uid: 10152 WPJ(PRT) 3.3.1 WorkplaceJoinServiceHandler.bindToWPJService()@148 [pool-21-thread-2] 08-04 04:39:54:223 UTC DEBUG/WPJ: The status for WorkplaceJoinService bindService call is: true WPJ(PRT) 3.3.1 WorkplaceJoinServiceHandler.bindToWPJService()@155 [pool-21-thread-2] 08-04 04:39:54:233 UTC DEBUG/WPJ: WPJ Service is connected. WPJ(PRT) 3.3.1 WorkplaceJoinServiceHandler$WorkplaceJoinServiceConnection.onServiceConnected()@206 [main] 08-04 04:39:54:238 UTC DEBUG/WPJ: # of Accounts in AccountManager:0 WPJ(PRT) 3.3.1 AccountManagerStorageHelper.getWPJAccount()@244 [pool-23-thread-2] 08-04 04:39:54:244 UTC DEBUG/WPJ: Retrieved upn from WPJ Service. UPN is null WPJ(PRT) 3.3.1 WorkplaceJoinServiceProxy.getWorkplaceJoinedUpn()@87 [pool-21-thread-2] 08-04 04:39:54:254 UTC INFO/WPJ: WPJ account does not exist. WPJ(PRT) 3.3.1 WorkplaceJoinOperation.getAccount()@161 [pool-21-thread-2] 08-04 04:39:54:256 UTC INFO/WPJ: The device is not joined WPJ(PRT) 3.3.1 WorkplaceJoin$1.run()@229 [pool-21-thread-2] 08-04 04:39:54:335 UTC INFO/Broker: [2020-08-04 04:39:54 - {"thread_id":"1201","correlation_id":"UNSET"}] No account matching broker account type exists. Android 30 Thread.run()@923 [pool-12-thread-1] 08-04 04:40:02:418 UTC ERROR/DID_SDK/: Error loading Request [main] 08-04 04:40:02:419 UTC ERROR/DID_SDK/: com.microsoft.did.sdk.util.controlflow.ServiceErrorException: 404: Tunnel d7ed8827238f.ngrok.io not found at com.microsoft.did.sdk.datasource.network.BaseNetworkOperation.onFailure(BaseNetworkOperation.kt:51) at com.microsoft.did.sdk.datasource.network.BaseNetworkOperation.fire$suspendImpl(BaseNetworkOperation.kt:33) at com.microsoft.did.sdk.datasource.network.BaseNetworkOperation$fire$1.invokeSuspend(Unknown Source:11) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665) [main] App details: App version: 6.2007.5086 App version code: 202050860 ADAL version: 3.1.0 Broker version: 3.3.1 Device details: Android version: 11 Android build: google/sdk_gphone_x86/generic_x86_arm:11/RPB2.200611.012/6677315:user/release-keys Device name: generic_x86_arm Device ID: RPB2.200611.012 Device manufacturer: Google Device model: sdk_gphone_x86 Device display: RPB2.200611.012 Device brand: google Device hardware: ranchu Locale: en_US ACCOUNTS None ```

If I am using an emulator, I may not be able to communicate using ngrok. So, I changed the host from ngrok to 10.0.2.2. However, It looks like the request to 10.0.2.2:80 caused an error.

View logs ``` 08-04 04:42:37:594 UTC INFO/App: App restriction sharedDeviceMode: false LaunchActivity.queryIsSharedDeviceModeAppRestrictionSet()@55 [main] 08-04 04:42:38:569 UTC INFO/App: Merging broker accounts into accounts list MergeBrokerAccountsTask.doInBackground()@59 [AsyncTask #4] 08-04 04:42:38:586 UTC INFO/App: hasDosPreventer = false AccountStorageCustomQueries.hasMfaAccountsConfiguredForNotifications()@92 [main] 08-04 04:42:38:596 UTC INFO/App: hasDosPreventer = false AccountStorageCustomQueries.hasMfaAccountsConfiguredForNotifications()@92 [main] 08-04 04:42:38:606 UTC INFO/App: onResume MainActivity.onResume()@222 [main] 08-04 04:42:38:656 UTC INFO/App: Network Info: [type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: , failover: false, available: true, roaming: false] Util$Companion.isConnected()@87 [main] 08-04 04:42:38:663 UTC INFO/App: Proxy Info is null for this connection Util$Companion.isConnected()@93 [main] 08-04 04:42:38:679 UTC INFO/App: Task CallbackDialogTask, id = MainActivityData PrivacyWe gather non-personally identifiable usage data to help us improve the app. You can turn this off in settings. Learn more in the FAQs available under the Help menu. has been put to the queue. DialogTaskQueue.enqueueTask()@58 [main] 08-04 04:42:38:679 UTC INFO/App: Proceed to showing: CallbackDialogTask, id = MainActivityData PrivacyWe gather non-personally identifiable usage data to help us improve the app. You can turn this off in settings. Learn more in the FAQs available under the Help menu. DialogTaskQueue.showTask()@86 [main] 08-04 04:42:39:115 UTC INFO/App: Total number of broker accounts: 0 MergeBrokerAccountsTask.doInBackground()@68 [AsyncTask #4] 08-04 04:42:39:115 UTC INFO/App: Syncing broker accounts into accounts list SyncBrokerAccountsTask.doInBackground()@34 [AsyncTask #2] 08-04 04:42:39:176 UTC INFO/App: Total number of received brokerAccounts: 0 SyncBrokerAccountsTask.doInBackground()@45 [AsyncTask #2] 08-04 04:42:39:201 UTC INFO/App: Total Number of AAD accounts: 0 SyncBrokerAccountsTask.doInBackground()@62 [AsyncTask #2] 08-04 04:42:39:203 UTC INFO/App: Total number of accounts to remove: 0 SyncBrokerAccountsTask.doInBackground()@86 [AsyncTask #2] 08-04 04:42:39:336 UTC INFO/App: Determining if calling package is a recent valid install referrer: Installed At = 1596507131 Current Time = 1596516159 Referring App = utm_source=google-play&utm_medium=organic InstallReferrerApi.onInstallReferrerSetupFinished()@53 [main] 08-04 04:42:39:338 UTC INFO/App: Install referrer calculation completed, determined from too long ago InstallReferrerApi.onInstallReferrerSetupFinished()@85 [main] 08-04 04:42:39:372 UTC DEBUG/App: onPause MainActivity.onPause()@332 [main] 08-04 04:42:39:829 UTC INFO/App: Show data privacy information AppDialogFragments$showDataPrivacyDialogIfNecessary$dataPrivacyDialogBuilder$2.onShow()@134 [main] 08-04 04:42:39:851 UTC INFO/App: App contains 0 accounts total. CollectLogsUtils.logNumberOfAccounts()@402 [main] 08-04 04:42:39:866 UTC INFO/App: Merging broker accounts into accounts list MergeBrokerAccountsTask.doInBackground()@59 [AsyncTask #2] 08-04 04:42:39:876 UTC INFO/App: hasDosPreventer = false AccountStorageCustomQueries.hasMfaAccountsConfiguredForNotifications()@92 [DefaultDispatcher-worker-2] 08-04 04:42:39:882 UTC INFO/App: Total number of broker accounts: 0 MergeBrokerAccountsTask.doInBackground()@68 [AsyncTask #2] 08-04 04:42:39:890 UTC INFO/App: Task CallbackDialogTask, id = FirstRunActivityData PrivacyWe gather non-personally identifiable usage data to help us improve the app. You can turn this off in settings. Learn more in the FAQs available under the Help menu. has been put to the queue. DialogTaskQueue.enqueueTask()@58 [main] 08-04 04:42:39:917 UTC INFO/App: First Run Experience Starting Slide: 1 FirstRunIntroBaseFragment.onStart()@66 [main] 08-04 04:42:39:919 UTC INFO/App: Task is already in the queue: CallbackDialogTask, id = FirstRunActivityData PrivacyWe gather non-personally identifiable usage data to help us improve the app. You can turn this off in settings. Learn more in the FAQs available under the Help menu. DialogTaskQueue.enqueueTask()@50 [main] 08-04 04:42:40:216 UTC INFO/App: hasDosPreventer = false AccountStorageCustomQueries.hasMfaAccountsConfiguredForNotifications()@92 [DefaultDispatcher-worker-1] 08-04 04:42:40:559 UTC INFO/App: Dialog task MainActivityData PrivacyWe gather non-personally identifiable usage data to help us improve the app. You can turn this off in settings. Learn more in the FAQs available under the Help menu. has finished. DialogTaskQueue.taskFinished()@123 [main] 08-04 04:42:40:563 UTC INFO/App: Proceed to showing: CallbackDialogTask, id = FirstRunActivityData PrivacyWe gather non-personally identifiable usage data to help us improve the app. You can turn this off in settings. Learn more in the FAQs available under the Help menu. DialogTaskQueue.showTask()@86 [main] 08-04 04:42:40:568 UTC DEBUG/App: onStop MainActivity.onStop()@341 [main] 08-04 04:42:40:570 UTC INFO/App: Clearing the dialog queue. DialogTaskQueue.clear()@138 [main] 08-04 04:42:40:581 UTC DEBUG/App: onDestroy MainActivity.onDestroy()@355 [main] 08-04 04:42:40:715 UTC INFO/App: Show data privacy information AppDialogFragments$showDataPrivacyDialogIfNecessary$dataPrivacyDialogBuilder$2.onShow()@134 [main] 08-04 04:42:40:811 UTC INFO/App: FCM device registration successful: tF5YSVzYiC FcmRegistrationManager.getLegacyTokenForSenderIds()@91 [Firebase-Messaging-Intent-Handle] 08-04 04:42:40:816 UTC INFO/App: Refreshed token: tF5YSVzYiC FcmRegistrationManager.acquireLegacyFcmToken()@61 [Firebase-Messaging-Intent-Handle] 08-04 04:42:40:817 UTC INFO/App: FCM device registration successful: tF5YSVzYiC FcmRegistrationManager.persistFcmToken()@113 [Firebase-Messaging-Intent-Handle] 08-04 04:42:40:827 UTC INFO/App: FCM REGISTRATION IDS: current: tF5YSVzYiC, activated: , previousActivated: CollectLogsUtils.printDeviceTokens()@414 [Firebase-Messaging-Intent-Handle] 08-04 04:42:40:827 UTC INFO/App: isDosPreventerAvailable: false CollectLogsUtils.printDeviceTokens()@420 [Firebase-Messaging-Intent-Handle] 08-04 04:42:40:978 UTC INFO/App: FcmChangeDeviceToken Worker started. FcmChangeDeviceTokenWorker.doWork()@33 [pool-10-thread-1] 08-04 04:42:40:979 UTC INFO/App: FCM REGISTRATION IDS: current: tF5YSVzYiC, activated: , previousActivated: CollectLogsUtils.printDeviceTokens()@414 [pool-10-thread-1] 08-04 04:42:40:980 UTC INFO/App: isDosPreventerAvailable: false CollectLogsUtils.printDeviceTokens()@420 [pool-10-thread-1] 08-04 04:42:40:981 UTC INFO/App: FcmChangeDeviceToken Worker completed. FcmChangeDeviceTokenWorker.doWork()@55 [pool-10-thread-1] 08-04 04:42:42:189 UTC INFO/App: DataPrivacyDialog button_ok was clicked AppDialogFragments$showDataPrivacyDialogIfNecessary$dataPrivacyDialogBuilder$1.onClick()@127 [main] 08-04 04:42:42:201 UTC WARN/App: Attempted to finish taskId = FirstRunActivityData PrivacyWe gather non-personally identifiable usage data to help us improve the app. You can turn this off in settings. Learn more in the FAQs available under the Help menu. but it's not shown by DialogTaskQueue now. DialogTaskQueue.taskFinished()@127 [main] 08-04 04:42:43:060 UTC INFO/App: Navigating to add MSA account by scanning QR code. FirstRunIntroAddMsaFragment$onViewCreated$2.onClick()@54 [main] 08-04 04:42:43:425 UTC INFO/App: Merging broker accounts into accounts list MergeBrokerAccountsTask.doInBackground()@59 [AsyncTask #1] 08-04 04:42:43:427 UTC INFO/App: Total number of broker accounts: 0 MergeBrokerAccountsTask.doInBackground()@68 [AsyncTask #1] 08-04 04:42:43:440 UTC INFO/App: hasDosPreventer = false AccountStorageCustomQueries.hasMfaAccountsConfiguredForNotifications()@92 [main] 08-04 04:42:43:448 UTC INFO/App: hasDosPreventer = false AccountStorageCustomQueries.hasMfaAccountsConfiguredForNotifications()@92 [main] 08-04 04:42:43:451 UTC INFO/App: Syncing broker accounts into accounts list SyncBrokerAccountsTask.doInBackground()@34 [AsyncTask #1] 08-04 04:42:43:466 UTC INFO/App: onResume MainActivity.onResume()@222 [main] 08-04 04:42:43:466 UTC INFO/App: Total number of received brokerAccounts: 0 SyncBrokerAccountsTask.doInBackground()@45 [AsyncTask #1] 08-04 04:42:43:470 UTC INFO/App: Total Number of AAD accounts: 0 SyncBrokerAccountsTask.doInBackground()@62 [AsyncTask #1] 08-04 04:42:43:470 UTC INFO/App: Total number of accounts to remove: 0 SyncBrokerAccountsTask.doInBackground()@86 [AsyncTask #1] 08-04 04:42:43:473 UTC INFO/App: Handling launch Flow: ADD_MSA_ACCOUNT_QRCODE MainActivity.handleActivityLaunchFlow()@748 [main] 08-04 04:42:43:474 UTC INFO/App: Launching to add MSA account using QR code MainActivity.launchAddAccountViaQrCode()@1001 [main] 08-04 04:42:43:550 UTC INFO/App: Network Info: [type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: , failover: false, available: true, roaming: false] Util$Companion.isConnected()@87 [main] 08-04 04:42:43:554 UTC INFO/App: Proxy Info is null for this connection Util$Companion.isConnected()@93 [main] 08-04 04:42:43:773 UTC INFO/App: hasDosPreventer = false AccountStorageCustomQueries.hasMfaAccountsConfiguredForNotifications()@92 [DefaultDispatcher-worker-1] 08-04 04:42:43:784 UTC INFO/App: Merging broker accounts into accounts list MergeBrokerAccountsTask.doInBackground()@59 [AsyncTask #1] 08-04 04:42:43:822 UTC DEBUG/App: onPause MainActivity.onPause()@332 [main] 08-04 04:42:43:911 UTC INFO/App: Total number of broker accounts: 0 MergeBrokerAccountsTask.doInBackground()@68 [AsyncTask #1] 08-04 04:42:43:929 UTC INFO/App: hasDosPreventer = false AccountStorageCustomQueries.hasMfaAccountsConfiguredForNotifications()@92 [main] 08-04 04:42:44:106 UTC INFO/App: hasDosPreventer = false AccountStorageCustomQueries.hasMfaAccountsConfiguredForNotifications()@92 [DefaultDispatcher-worker-1] 08-04 04:42:46:039 UTC INFO/App: onRequestPermissionsResult: requestCode = 1 MainActivity.onRequestPermissionsResult()@431 [main] 08-04 04:42:46:407 UTC INFO/App: onResume MainActivity.onResume()@222 [main] 08-04 04:42:51:623 UTC DEBUG/App: onBackPressed MainActivity.onBackPressed()@361 [main] 08-04 04:42:51:650 UTC INFO/App: Merging broker accounts into accounts list MergeBrokerAccountsTask.doInBackground()@59 [AsyncTask #4] 08-04 04:42:51:664 UTC INFO/App: hasDosPreventer = false AccountStorageCustomQueries.hasMfaAccountsConfiguredForNotifications()@92 [main] 08-04 04:42:51:680 UTC INFO/App: hasDosPreventer = false AccountStorageCustomQueries.hasMfaAccountsConfiguredForNotifications()@92 [main] 08-04 04:42:51:697 UTC INFO/App: Network Info: [type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: , failover: false, available: true, roaming: false] Util$Companion.isConnected()@87 [main] 08-04 04:42:51:707 UTC INFO/App: Proxy Info is null for this connection Util$Companion.isConnected()@93 [main] 08-04 04:42:51:716 UTC INFO/App: Total number of broker accounts: 0 MergeBrokerAccountsTask.doInBackground()@68 [AsyncTask #4] 08-04 04:42:51:736 UTC INFO/App: hasDosPreventer = false AccountStorageCustomQueries.hasMfaAccountsConfiguredForNotifications()@92 [main] 08-04 04:42:51:867 UTC INFO/App: hasDosPreventer = false AccountStorageCustomQueries.hasMfaAccountsConfiguredForNotifications()@92 [DefaultDispatcher-worker-1] 08-04 04:42:51:903 UTC INFO/App: Syncing broker accounts into accounts list SyncBrokerAccountsTask.doInBackground()@34 [AsyncTask #6] 08-04 04:42:51:907 UTC INFO/App: Total number of received brokerAccounts: 0 SyncBrokerAccountsTask.doInBackground()@45 [AsyncTask #6] 08-04 04:42:51:922 UTC INFO/App: Total Number of AAD accounts: 0 SyncBrokerAccountsTask.doInBackground()@62 [AsyncTask #6] 08-04 04:42:51:932 UTC INFO/App: Total number of accounts to remove: 0 SyncBrokerAccountsTask.doInBackground()@86 [AsyncTask #6] 08-04 04:42:51:953 UTC INFO/App: Merging broker accounts into accounts list MergeBrokerAccountsTask.doInBackground()@59 [AsyncTask #4] 08-04 04:42:51:964 UTC INFO/App: Total number of broker accounts: 0 MergeBrokerAccountsTask.doInBackground()@68 [AsyncTask #4] 08-04 04:42:51:968 UTC INFO/App: hasDosPreventer = false AccountStorageCustomQueries.hasMfaAccountsConfiguredForNotifications()@92 [DefaultDispatcher-worker-1] 08-04 04:42:57:814 UTC INFO/App: Launching to add secret-key based account MainActivity.launchAddAccountViaQrCode()@1005 [main] 08-04 04:43:04:091 UTC WARN/App: File not found: authenticator.txt.1 CollectLogsUtils.readFileFromInternalStorage()@99 [AsyncTask #6] 08-04 04:43:04:092 UTC WARN/App: File not found: broker.txt.1 CollectLogsUtils.readFileFromInternalStorage()@99 [AsyncTask #6] 08-04 04:43:04:092 UTC WARN/App: File not found: DID.txt.1 CollectLogsUtils.readFileFromInternalStorage()@99 [AsyncTask #6] 08-04 04:43:04:092 UTC WARN/App: File not found: brooklyn.txt.1 CollectLogsUtils.readFileFromInternalStorage()@99 [AsyncTask #6] 08-04 04:42:38:390 UTC INFO/Broker: [2020-08-04 04:42:38 - {"thread_id":"2","correlation_id":"UNSET"}] KEY_MIGRATION_BROADCASTER_START| Called by: AUTHENTICATOR_APP_LAUNCH Android 30 Thread.run()@923 [pool-12-thread-1] 08-04 04:42:38:570 UTC INFO/Broker: [2020-08-04 04:42:38 - {"thread_id":"1132","correlation_id":"UNSET"}] Creating BrokerClientApplication singleton instance Android 30 Thread.run()@923 [pool-12-thread-1] 08-04 04:42:38:654 UTC INFO/Broker: [2020-08-04 04:42:38 - {"thread_id":"1132","correlation_id":"UNSET"}] Upgrade state [INCOMPLETE] Android 30 Thread.run()@923 [pool-12-thread-1] 08-04 04:42:38:654 UTC INFO/Broker: [2020-08-04 04:42:38 - {"thread_id":"1132","correlation_id":"UNSET"}] Upgrade state [INCOMPLETE] Android 30 Thread.run()@923 [pool-12-thread-1] 08-04 04:42:38:655 UTC INFO/Broker: [2020-08-04 04:42:38 - {"thread_id":"1132","correlation_id":"UNSET"}] Performing fallback cache migration. Android 30 Thread.run()@923 [pool-12-thread-1] 08-04 04:42:38:687 UTC INFO/WPJ: Get upn WPJ(PRT) 3.3.1 WorkplaceJoin.getWorkplaceJoinedUPN()@217 [main] 08-04 04:42:38:764 UTC DEBUG/WPJ: Connecting to WPJService to retrieve WPJ Registered Upn. WPJ(PRT) 3.3.1 WorkplaceJoinServiceProxy.getWorkplaceJoinedUpn()@85 [pool-23-thread-1] 08-04 04:42:38:770 UTC DEBUG/WPJ: Binding to WPJService for caller uid: 10152 WPJ(PRT) 3.3.1 WorkplaceJoinServiceHandler.bindToWPJService()@148 [pool-23-thread-1] 08-04 04:42:38:805 UTC INFO/Broker: [2020-08-04 04:42:38 - {"thread_id":"2","correlation_id":"UNSET"}] KEY_MIGRATION_BROADCASTER| The other broker not found. Android 30 Thread.run()@923 [pool-12-thread-1] 08-04 04:42:38:806 UTC INFO/Broker: [2020-08-04 04:42:38 - {"thread_id":"2","correlation_id":"UNSET"}] KEY_MIGRATION_BROADCASTER_END| The other broker doesn't support this operation, or there is no broker on the other side. Android 30 Thread.run()@923 [pool-12-thread-1] 08-04 04:42:38:816 UTC DEBUG/WPJ: The status for WorkplaceJoinService bindService call is: true WPJ(PRT) 3.3.1 WorkplaceJoinServiceHandler.bindToWPJService()@155 [pool-23-thread-1] 08-04 04:42:38:821 UTC INFO/Broker: [2020-08-04 04:42:38 - {"thread_id":"1169","correlation_id":"UNSET"}] Performing cache upgrade... Android 30 Thread.run()@923 [pool-12-thread-1] 08-04 04:42:38:825 UTC INFO/Broker: [2020-08-04 04:42:38 - {"thread_id":"1169","correlation_id":"UNSET"}] Found [0] accounts. Android 30 Thread.run()@923 [pool-12-thread-1] 08-04 04:42:38:831 UTC INFO/Broker: [2020-08-04 04:42:38 - {"thread_id":"1169","correlation_id":"UNSET"}] Loading cloud metadata. Android 30 Thread.run()@923 [pool-12-thread-1] 08-04 04:42:38:835 UTC WARN/Broker: [2020-08-04 04:42:38 - {"thread_id":"1169","correlation_id":"UNSET"}] Telemetry is disabled because the Telemetry context or configuration is null Android 30 Thread.run()@923 [pool-12-thread-1] 08-04 04:42:39:115 UTC INFO/Broker: [2020-08-04 04:42:39 - {"thread_id":"1132","correlation_id":"UNSET"}] No account matching broker account type exists. Android 30 Thread.run()@923 [pool-12-thread-1] 08-04 04:42:39:122 UTC INFO/Broker: [2020-08-04 04:42:39 - {"thread_id":"1129","correlation_id":"UNSET"}] No account matching broker account type exists. Android 30 Thread.run()@923 [pool-12-thread-1] 08-04 04:42:39:304 UTC INFO/Broker: [2020-08-04 04:42:39 - {"thread_id":"2","correlation_id":"UNSET"}] KEY_MIGRATION_BROADCASTER| New key generated. Android 30 Thread.run()@923 [pool-12-thread-1] 08-04 04:42:39:886 UTC INFO/Broker: [2020-08-04 04:42:39 - {"thread_id":"1129","correlation_id":"UNSET"}] No account matching broker account type exists. Android 30 Thread.run()@923 [pool-12-thread-1] 08-04 04:42:40:206 UTC DEBUG/WPJ: WPJ Service is connected. WPJ(PRT) 3.3.1 WorkplaceJoinServiceHandler$WorkplaceJoinServiceConnection.onServiceConnected()@206 [main] 08-04 04:42:40:242 UTC DEBUG/WPJ: # of Accounts in AccountManager:0 WPJ(PRT) 3.3.1 AccountManagerStorageHelper.getWPJAccount()@244 [pool-24-thread-1] 08-04 04:42:40:276 UTC DEBUG/WPJ: Retrieved upn from WPJ Service. UPN is null WPJ(PRT) 3.3.1 WorkplaceJoinServiceProxy.getWorkplaceJoinedUpn()@87 [pool-23-thread-1] 08-04 04:42:40:337 UTC INFO/WPJ: WPJ account does not exist. WPJ(PRT) 3.3.1 WorkplaceJoinOperation.getAccount()@161 [pool-23-thread-1] 08-04 04:42:40:338 UTC INFO/WPJ: The device is not joined WPJ(PRT) 3.3.1 WorkplaceJoin$1.run()@229 [pool-23-thread-1] 08-04 04:42:43:418 UTC INFO/Broker: [2020-08-04 04:42:43 - {"thread_id":"2","correlation_id":"UNSET"}] KEY_MIGRATION_BROADCASTER| Called by: AUTHENTICATOR_APP_LAUNCH | This broker already has a key. No need to migrate. Android 30 Thread.run()@923 [pool-12-thread-1] 08-04 04:42:43:427 UTC INFO/Broker: [2020-08-04 04:42:43 - {"thread_id":"1128","correlation_id":"UNSET"}] No account matching broker account type exists. Android 30 Thread.run()@923 [pool-12-thread-1] 08-04 04:42:43:467 UTC INFO/Broker: [2020-08-04 04:42:43 - {"thread_id":"1128","correlation_id":"UNSET"}] No account matching broker account type exists. Android 30 Thread.run()@923 [pool-12-thread-1] 08-04 04:42:43:556 UTC INFO/WPJ: Get upn WPJ(PRT) 3.3.1 WorkplaceJoin.getWorkplaceJoinedUPN()@217 [main] 08-04 04:42:43:563 UTC DEBUG/WPJ: Connecting to WPJService to retrieve WPJ Registered Upn. WPJ(PRT) 3.3.1 WorkplaceJoinServiceProxy.getWorkplaceJoinedUpn()@85 [pool-23-thread-1] 08-04 04:42:43:565 UTC DEBUG/WPJ: Binding to WPJService for caller uid: 10152 WPJ(PRT) 3.3.1 WorkplaceJoinServiceHandler.bindToWPJService()@148 [pool-23-thread-1] 08-04 04:42:43:607 UTC DEBUG/WPJ: The status for WorkplaceJoinService bindService call is: true WPJ(PRT) 3.3.1 WorkplaceJoinServiceHandler.bindToWPJService()@155 [pool-23-thread-1] 08-04 04:42:43:908 UTC INFO/Broker: [2020-08-04 04:42:43 - {"thread_id":"1128","correlation_id":"UNSET"}] No account matching broker account type exists. Android 30 Thread.run()@923 [pool-12-thread-1] 08-04 04:42:44:100 UTC DEBUG/WPJ: WPJ Service is connected. WPJ(PRT) 3.3.1 WorkplaceJoinServiceHandler$WorkplaceJoinServiceConnection.onServiceConnected()@206 [main] 08-04 04:42:44:120 UTC DEBUG/WPJ: # of Accounts in AccountManager:0 WPJ(PRT) 3.3.1 AccountManagerStorageHelper.getWPJAccount()@244 [pool-24-thread-1] 08-04 04:42:44:121 UTC DEBUG/WPJ: Retrieved upn from WPJ Service. UPN is null WPJ(PRT) 3.3.1 WorkplaceJoinServiceProxy.getWorkplaceJoinedUpn()@87 [pool-23-thread-1] 08-04 04:42:44:122 UTC INFO/WPJ: WPJ account does not exist. WPJ(PRT) 3.3.1 WorkplaceJoinOperation.getAccount()@161 [pool-23-thread-1] 08-04 04:42:44:122 UTC INFO/WPJ: The device is not joined WPJ(PRT) 3.3.1 WorkplaceJoin$1.run()@229 [pool-23-thread-1] 08-04 04:42:51:713 UTC INFO/Broker: [2020-08-04 04:42:51 - {"thread_id":"1132","correlation_id":"UNSET"}] No account matching broker account type exists. Android 30 Thread.run()@923 [pool-12-thread-1] 08-04 04:42:51:721 UTC INFO/WPJ: Get upn WPJ(PRT) 3.3.1 WorkplaceJoin.getWorkplaceJoinedUPN()@217 [main] 08-04 04:42:51:733 UTC DEBUG/WPJ: Connecting to WPJService to retrieve WPJ Registered Upn. WPJ(PRT) 3.3.1 WorkplaceJoinServiceProxy.getWorkplaceJoinedUpn()@85 [pool-23-thread-1] 08-04 04:42:51:740 UTC DEBUG/WPJ: Binding to WPJService for caller uid: 10152 WPJ(PRT) 3.3.1 WorkplaceJoinServiceHandler.bindToWPJService()@148 [pool-23-thread-1] 08-04 04:42:51:765 UTC DEBUG/WPJ: The status for WorkplaceJoinService bindService call is: true WPJ(PRT) 3.3.1 WorkplaceJoinServiceHandler.bindToWPJService()@155 [pool-23-thread-1] 08-04 04:42:51:834 UTC DEBUG/WPJ: WPJ Service is connected. WPJ(PRT) 3.3.1 WorkplaceJoinServiceHandler$WorkplaceJoinServiceConnection.onServiceConnected()@206 [main] 08-04 04:42:51:840 UTC DEBUG/WPJ: # of Accounts in AccountManager:0 WPJ(PRT) 3.3.1 AccountManagerStorageHelper.getWPJAccount()@244 [pool-24-thread-1] 08-04 04:42:51:847 UTC DEBUG/WPJ: Retrieved upn from WPJ Service. UPN is null WPJ(PRT) 3.3.1 WorkplaceJoinServiceProxy.getWorkplaceJoinedUpn()@87 [pool-23-thread-1] 08-04 04:42:51:875 UTC INFO/WPJ: WPJ account does not exist. WPJ(PRT) 3.3.1 WorkplaceJoinOperation.getAccount()@161 [pool-23-thread-1] 08-04 04:42:51:880 UTC INFO/WPJ: The device is not joined WPJ(PRT) 3.3.1 WorkplaceJoin$1.run()@229 [pool-23-thread-1] 08-04 04:42:51:907 UTC INFO/Broker: [2020-08-04 04:42:51 - {"thread_id":"1200","correlation_id":"UNSET"}] No account matching broker account type exists. Android 30 Thread.run()@923 [pool-12-thread-1] 08-04 04:42:51:967 UTC INFO/Broker: [2020-08-04 04:42:51 - {"thread_id":"1132","correlation_id":"UNSET"}] No account matching broker account type exists. Android 30 Thread.run()@923 [pool-12-thread-1] 08-04 04:43:02:100 UTC ERROR/DID_SDK/: Error loading Request [main] 08-04 04:43:02:104 UTC ERROR/DID_SDK/: com.microsoft.did.sdk.util.controlflow.NetworkException: Failed to send request. at com.microsoft.did.sdk.datasource.network.BaseNetworkOperation.fire$suspendImpl(BaseNetworkOperation.kt:35) at com.microsoft.did.sdk.datasource.network.BaseNetworkOperation$fire$1.invokeSuspend(Unknown Source:11) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:55) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665) Caused by: java.net.ConnectException: Failed to connect to /10.0.2.2:80 at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.java:265) at okhttp3.internal.connection.RealConnection.connect(RealConnection.java:183) at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.java:224) at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.java:108) at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.java:88) at okhttp3.internal.connection.Transmitter.newExchange(Transmitter.java:169) at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:41) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117) at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:94) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117) at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142) at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:88) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117) at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.java:156) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117) at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:229) at okhttp3.RealCall$AsyncCall.execute(RealCall.java:172) at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:923) Caused by: java.net.ConnectException: failed to connect to /10.0.2.2 (port 80) from /10.0.2.16 (port 53950) after 10000ms: isConnected failed: ECONNREFUSED (Connection refused) at libcore.io.IoBridge.isConnected(IoBridge.java:287) at libcore.io.IoBridge.connectErrno(IoBridge.java:192) at libcore.io.IoBridge.connect(IoBridge.java:134) at java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:142) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:390) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:230) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:212) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:436) at java.net.Socket.connect(Socket.java:621) at okhttp3.internal.platform.AndroidPlatform.connectSocket(AndroidPlatform.java:71) at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.java:263) ... 25 more Caused by: android.system.ErrnoException: isConnected failed: ECONNREFUSED (Connection refused) at libcore.io.IoBridge.isConnected(IoBridge.java:274) ... 35 more [main] App details: App version: 6.2007.5086 App version code: 202050860 ADAL version: 3.1.0 Broker version: 3.3.1 Device details: Android version: 11 Android build: google/sdk_gphone_x86/generic_x86_arm:11/RPB2.200611.012/6677315:user/release-keys Device name: generic_x86_arm Device ID: RPB2.200611.012 Device manufacturer: Google Device model: sdk_gphone_x86 Device display: RPB2.200611.012 Device brand: google Device hardware: ranchu Locale: en_US ACCOUNTS None ```

What needs to be up and running on port 80? Please let me know if I need any steps.

timcappalli commented 3 years ago

You need to be using a fully qualified domain name and HTTPS. From your description, it seems you're using an IP and HTTP.

kg0r0 commented 3 years ago

@timcappalli Thank you for much advice. I seem to be able to make it work on the emulator by using Heroku.

image

sample: https://github.com/kg0r0/active-directory-verifiable-credentials/commit/01422f20f88f4f16778b10282ea446893822bdeb