-
Notifications
You must be signed in to change notification settings - Fork 115
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
Azure B2C ui_locales is directly supported via the auth request builder exception #237
Labels
Comments
porojanmadalin
changed the title
Azure B2C ui_locales is directly supported via the auth request builder error
Azure B2C ui_locales is directly supported via the auth request builder exception
Aug 23, 2023
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: