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
feat(react-native-test-app-msal): add support for Android #894
Conversation
e6aeae8
to
ff1caeb
Compare
- ignore user cancel error - pass authority - removed unused IAccountsHandler - improve error message handling - fix account selection
ec46da0
to
e5ee4ed
Compare
|
||
val userPrincipalName = sharedPreferences.getString(USERNAME_KEY, null) | ||
val accountType = sharedPreferences.getString(ACCOUNT_TYPE_KEY, null) | ||
val selectedAccount = allAccounts.find { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you have used your previously declared extension: fun List.find(userPrincipalName: String, accountType: AccountType)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's for finding com.microsoft.identity.client.IAccount
instances. We have our own Account
type to abstract away this detail.
...ct-native-test-app-msal/android/src/main/java/com/microsoft/reacttestapp/msal/TokenBroker.kt
Outdated
Show resolved
Hide resolved
+ "react-native-test-app-msal": { | ||
+ "clientId": "00000000-0000-0000-0000-000000000000", | ||
+ "clientId": "4b0db8c2-9f26-4417-8bde-3f0e3656f8e0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, just reusing the id from the tutorials on https://github.com/AzureAD/microsoft-authentication-library-for-android
Description
Adds Android support to react-native-test-app-msal.
Remaining work
In order to enable the broker, we need the ability to configure the keystore in react-native-test-appTest plan