-
Notifications
You must be signed in to change notification settings - Fork 125
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
Unable to call broker #1425
Comments
Hello. Thanks for raising this issue.
Question: |
Hello,
|
Hi, we have noticed this same issue with ADAL 1.16.3 on different devices with Android 11 over recent days, and the issue appears to be occurring for some and not others. Could this be related to the recent update of the broker applications? |
I have filed an issue against the ADAL library but please check the details of it as if the issue seems identical it would suggest an issue with Company Portal rather than either of the authentication libraries |
We test the sample code. When we add the same api permission to the sample app, it also encountered the same issue. (It is to say that the root cause may not be related to their package.) Since the api permission is another app also registered in AAD and will authnticated with AAD, I am wondering if that resource app need addtional configuration to let the client call borker and get the device info? |
Can you provide an update to this issue? We are facing this issue on Android 11 devices. |
Hi Luke, I managed to fix this issue last week. I hope this helps you and others. The issue affects both MSAL and ADAL and is related to changes to Package Visibility with Android 11. You must add the following code to your manifest file. I also found that I needed at least gradle plugin version 3.5.4; we were experiencing build errors with 3.5.3.
See the below links for extra information: https://developer.android.com/about/versions/11/privacy/package-visibility |
Thanks a lot, this was the problem I was running into. |
Describe the bug
In development app using latest MSAL for Android version is unable to call broker to sign-in.
Followed the doc to use MSAL for the app.
I have already check we are using the latest MSAL version, and the configuration JSON file, package name in their code are all set correctly including the "redirect URI, broker_redirect_uri_registered.
Broker Microsoft Company Portal has already installed and and signed in. The device is compliant.
As I know, MSAL will call broker to sign-in by default.
Any ideas why the app using MSAL is unable to call broker?
Smartphone (please complete the following information):
To Reproduce
Steps to reproduce the behavior:
If related to user experience, use the format:
If related to development, please provide relevant configuration details necessary to understand your problem including any relevant traces, logs, or otherwise.
Expected behavior
The app should call broker and sign in by default.
Actual Behavior
The app will request the user to download broker(Microsoft Company portal)even the user has downloaded on the app.
Additional context
Already checked the signature is correctly generated from the key.
Manifest:
`
Configuration file
{ "client_id" : "1540d24d-479b-4edb-9c98-971415582d29", "authorization_user_agent" : "DEFAULT", "redirect_uri" : "msauth://com.imobilemind.isaicloud/hfy%2B7NbfbffwKZ9tqUkBtXgkJcE%3D", "account_mode" : "SINGLE", "broker_redirect_uri_registered": true, "authorities" : [ { "type": "AAD", "default": true, "audience": { "type": "AzureADMyOrg", "tenant_id": "305675df-dc39-4b66-8034-b8e7a8cXXXXXX" } } ] }
The text was updated successfully, but these errors were encountered: