openid_client icon indicating copy to clipboard operation
openid_client copied to clipboard

Blank screen for a moment just before opening the auth screen(Web View).

Open prabhunath111 opened this issue 1 year ago • 4 comments

prabhunath111 avatar Aug 23 '23 05:08 prabhunath111

Could it be that you have configured your IAM to use the authorisation flow while openid_client tries to use the implicit flow? I got this in my keycloak logs "Client is not allowed to initiate browser login with given response_type. Implicit flow is disabled for the client." I got the same behavior. When tapping on login we got redirected to keycloak but then we got redirected back again to the app with no credentials (Id token) being delivered. Did you figure out anything on your side?

adrian-moisa avatar Sep 10 '23 19:09 adrian-moisa

I don't have enough context to help you with this. Please provide more info.

rbellens avatar Oct 13 '23 11:10 rbellens

at the time of rendering auth screen we need to call this => Issuer issuer = await Issuer.discover(uri); until this method is not completing we are seeing black screen in release mode of the application then it's rendering auth screen.

prabhunath111 avatar Oct 13 '23 16:10 prabhunath111

You are giving me very little context, maybe show some code.

However, I don't think your issue is related to this package. If I need to guess, I would say you are awaiting some future before calling runApp. Painting only starts after calling runApp, so clearly, when the await takes some time, the screen will be empty for some time. (I know, I also do that in the example, but that is an example, not a production app).

rbellens avatar Oct 14 '23 10:10 rbellens