flutter_web_auth icon indicating copy to clipboard operation
flutter_web_auth copied to clipboard

Support for http/https redirect Uri's

Open Yodart opened this issue 3 years ago • 9 comments

It seems like the library doesn't support HTTP/HTTPS callback schemes and major platforms such as Discord and Xbox only allow those kinds of schemes, even for localhost callbacks (which are HTTP).

PS: Congrat's on a great solution, Linus!

Yodart avatar Oct 24 '21 17:10 Yodart

Any information on which native APIs are required to implement this would be much appreciated 🚀

LinusU avatar Oct 25 '21 07:10 LinusU

I'm currently working with a platform that also allows only those kinds of schemes. Is it even possible to achieve on iOS?

bojeckkk avatar Apr 13 '22 18:04 bojeckkk

I'm currently working with a platform that also allows only those kinds of schemes. Is it even possible to achieve on iOS?

To my knowledge you can only achieve this with a webview (which is the route i took). Best of luck tho.

Yodart avatar Apr 13 '22 21:04 Yodart

I am currently using webview aswell, but flutter_web_auth would be much cleaner and standard way to go.

bojeckkk avatar Apr 13 '22 21:04 bojeckkk

Also WebView should not be even considered as solution, as application creator can hijack the credentials.

bojeckkk avatar Apr 13 '22 21:04 bojeckkk

Any updates?

joaobaronisilva avatar Jun 25 '22 16:06 joaobaronisilva

Really need this for my project too, since google now requires redirect URLs to have HTTP:// or HTTPS:// redirect links

ElDuderini avatar Jul 08 '22 14:07 ElDuderini

Any information on which native APIs are required to implement this would be much appreciated 🚀

OAuthSwift might be a good route on the iOS side @LinusU. Im currently working on a personal solution to this problem as this has become a huge business requirement recently.

Yodart avatar Jul 22 '22 02:07 Yodart

As a workaround you can always deploy your own HTTPS server web page that redirects to your application protocol.

If someone can show this working in native code, than it should be easy to add it to this library, if not then I cannot solve it here either...

LinusU avatar Oct 30 '22 14:10 LinusU