openid_client icon indicating copy to clipboard operation
openid_client copied to clipboard

Using a custom redirectUri instead of "http://localhost:$port" is not working

Open mrahhal opened this issue 6 years ago • 7 comments

In this issue, this comment concludes the same: https://github.com/appsup-dart/openid_client/issues/4#issuecomment-449391146

I spent so much time debugging this, and finally had to change my custom redirectUri from my openid Identity Server to match http://localhost:$port. Anything other than that didn't work. The browser would just display "Can't open this url. Unknown..." and the app would hang there.

I tried debugging but can't make out why this happens with a custom redirectUri only.

mrahhal avatar Feb 16 '19 15:02 mrahhal

+1

jtammaro avatar Jun 26 '19 23:06 jtammaro

Eu não consigo fazer o identity me retornar para o aplicativo após o login, diz que a url não existe.

dieos2 avatar Oct 08 '19 14:10 dieos2

It needs to either allow an arbitrary URL and detect it (appears you can add whatever URL you want, but it ignores the response code) or allow https on local host

jhancock4d avatar Jun 16 '20 15:06 jhancock4d

Any fix for this issue?

tienthai0205 avatar Oct 20 '20 18:10 tienthai0205

It needs to either allow an arbitrary URL and detect it (appears you can add whatever URL you want, but it ignores the response code) or allow https on local host

which part of the code shows that it ignores the response when using custom uri?

tienthai0205 avatar Oct 21 '20 07:10 tienthai0205

Any update of this issue?

I have the same error in Flutter 2.2.3 (stable) and openid_client 0.4.1

jesusmunozmobivery avatar Aug 13 '21 11:08 jesusmunozmobivery

I found a workaroud for this problem with android apps mentioned in #4.

suniastar avatar Feb 28 '22 11:02 suniastar