Open porojanmadalin opened 1 year ago
I think it is an issue from the AppAuth Android sdk. Changing the following lines fixed my problem, but these modifications do not persist on a new call of npm install
Solved by using the following workaround on Android:
if (additionalParams) {
if (Capacitor.getPlatform() === PLATFORM.android) {
if (UI_LOCALES in additionalParams) {
config.authorizationBaseUrl = `${config.authorizationBaseUrl}?ui_locales=${additionalParams.ui_locales}&`;
}
} else {
config.additionalParameters = additionalParams;
}
}
Note: the trailing & is necessary, otherwise it won't work for me
Description
When I try to access the Azure B2C login page with a specific language for the
ui_locales
parameter, the application throws the following error and the Sign in/Sign up flow continues but the Sign in/Sign Up user flow language falls back to the default language (en). This only happens on Android. I haven't tested on iOS yet but the web app works as expected. I have not found any post regarding this issue. I have no idea on how I could even debug this.Capacitor version:
Run
npx cap doctor
:Library version:
OAuth Provider:
Your Plugin Configuration
Affected Platform(s):
Android
AndroidManifest.xml