Closed MartinAKovachev closed 1 year ago
Part of our code with fake values:
final authResponse = await const FlutterAppAuth().authorize(
AuthorizationRequest(
'clientId',
'redirectUrl',
preferEphemeralSession: true,
additionalParameters: {'key': 'value'},
serviceConfiguration: AuthorizationServiceConfiguration(
authorizationEndpoint: 'authorizationEndpoint',
tokenEndpoint: 'tokenEndpoint',
),
),
)
The issue was reproduced by following these steps:
@MartinAKovachev how did you solve the issue?
I also receive this, same way as @MartinAKovachev described, but without step 3 and 4. I just get it for regular logins.
Not sure where to look here.
in my case I used wrong redirectUri, i used app://callback instead of app:/callback
@MaikuB We continue receiving a huge amount of PlatformException(null_intent, Failed to authorize: Null intent received, null, null) on android devices using flutter_appauth: ^6.0.0 and previous versions. We can't find the exact reason, but from the documentation it states:
https://javadoc.io/doc/net.openid/appauth/0.7.0/net/openid/appauth/AuthorizationService.html#getAuthorizationRequestIntent-net.openid.appauth.AuthorizationRequest-
And we saw in the code, if the intent is null you return that error.
Could that be the reason for the error (in reality if we try to close the custom tab, we do not receive this type of error so it means the intent is not null)? We can't reproduce the exception locally, only appearing in analytics.