MaikuB / flutter_appauth

A Flutter wrapper for AppAuth iOS and Android SDKs
269 stars 238 forks source link

Android crashes when adding "login_hint" as an additional parameter #479

Closed TammiLion closed 4 months ago

TammiLion commented 4 months ago

Android crashes when supplying login_hint as an additional parameter. For example the following code crashes on Android:

AuthorizationTokenRequest( azureSettings.clientId, azureSettings.redirectUrl, discoveryUrl: discoveryUrl, scopes: azureSettings.scopes, preferEphemeralSession: true, additionalParameters: {"login_hint": event.username}),

Problem does not occur on iOS.

I get the following error message:

Fatal Exception: java.lang.IllegalArgumentException Parameter login_hint is directly supported via the authorization request builder, use the builder method instead

Edit: I didn't see the loginHint param was meant for this. Even though this example crashes I don't think this is an actual issue. Closed it, feel free to delete.