-
Notifications
You must be signed in to change notification settings - Fork 28
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
The redirect URI in the configuration file doesn't match with the one generated with package name and signature hash #46
Comments
@rpdome - Hi Dome , Prabhakaran has followed your steps to Invalidate caches and Restart in android however the result is same and the application is still not working as per the shared device mode. |
@Prabhakaran-Ganesan Could you please try debugging with the code in the following function - and see what signature hashes you're getting? |
@rpdome Using the above code, I have got a different signature instead of the one generated with my keystore. After this the problem got resolved. For clarification, I have created another new sample project and new key store. Below are the steps I followed.
Here What I observed is that the issue got solved by using the signature hash obtained using the code and also it is not matching with the signature generated with the following command line
(Same occurred for debug signature too) Is this a bug or am I missing something? |
@Prabhakaran-Ganesan I'm suspecting that
|
Greetings, @rpdome I have verified the input path and also I got the prompt for password as well but still getting the same signature.
|
Dear @rpdome , We are awaiting for your response. Thanks and Regards |
Confirmed @rpdome, This is a bug that was resolved by adding z to the end of my package name. Thank you @Prabhakaran-Ganesan for finding it. |
Minimal steps to reproduce
Download the sample from this link (https://github.com/Azure-Samples/ms-identity-android-java/)
Set up the Authenticator App using this tutorial (https://docs.microsoft.com/en-us/azure/active-directory/develop/tutorial-v2-shared-device-mode)
Register an app in the azure active directory and add an android platform in the authentication section
Generate a config file by providing package name and signature hash
Then open the sample app and open the auth_config_single_account.json file and replace content with the file generated from the App registration in Azure Active directory
Open AndroidManifest.xml file and change the data path value in BrowserTabActivity (Line No. 35) with the generated signature hash
Run the app
On opening the app, it is showing the following exception.
I have found a workaround for removing this error as follows. But this workaround doesn’t make the application to run in Shared-Device mode and the app is working in regular mode only even though the “mSingleAccountApp.isSharedDevice()“ returns ‘true’
Workaround steps
ORIGINAL
WORKAROUND
ORIGINAL
WORKAROUND
Please help me resolve this issue.
Device Details
@rpdome For traceability, mentioning the microsoft support ticket number 120120326004885
Mention any other details that might be useful
The text was updated successfully, but these errors were encountered: