Skip to content

Fix readme #19

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,17 +132,17 @@ To **create** an app registration,

3. In the `Overview` > `Sign in users in 5 minutes` > `Android`.
* Click on `Make this changes for me`.
* Enter the Package Name from your Android Manifest.
* Generate a Signature Hash. Follow the instructions in the portal.
* Enter the Package Name from your Android Manifest. In the context of current sample, please update the package name as `com.azuresamples.msalandroidkotlinapp`.
* Enter the Signature Hash. As mentioned in the Note section of **Steps to run the sample**, sample is using the `debug.keystore` from the project folder under gradle. Since signature hash `1wIqXSqBj7w+h11ZifsnqwgyKrY=` is preconfigured in the sample, please upate the same value under the Signature Hash field of Azure portal. If you want to use the different `debug.keystore` then, please follow the instructions in the portal to generate Signature hash..

4. Hit the `Make updates` button. Note the ***MSAL Configuration*** as it is used later in `AndroidManifest.xml` and `auth_config.json`.
4. Hit the `Make updates` button. Note the ***MSAL Configuration*** as it is used later in `AndroidManifest.xml`, `auth_config_single_account.json` and `auth_config_multiple_account.json`.

**Configure** the sample application with your app registration by replacing the sample code in `auth_config.json` and `AndroidManifest.xml`
**Configure** the sample application with your app registration by replacing the sample code in `AndroidManifest.xml`, `auth_config_single_account.json` and `auth_config_multiple_account.json`

1. Copy and paste the ***MSAL Configuration*** JSON from the Azure portal into `auth_config.json`.
1. Copy and paste the ***MSAL Configuration*** JSON from the Azure portal into `auth_config_single_account.json` and `auth_config_multiple_account.json` files under the res\raw folder. While pasting, you can exclude the first line `com.azuresamples.msalandroidappandroid:host="com.azuresamples.msalandroidkotlinapp"`and update only the valid JSON content.

2. Inside the `AndroidManifest.xml`, replace `android:host` and `android:path` with the same info saved in above step.
- `auth_config.json` contains this information as a reference inside the `redirect_uri` field.
- `auth_config_single_account.json` and `auth_config_multiple_account.json` contains this information as a reference inside the `redirect_uri` field.
- The Signature Hash should NOT be URL encoded in the `AndroidManifest.xml`.
Refer [Azure Active Directory Android Quickstart](https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-v2-android) for more details

Expand Down