getting server response from iframe to Flutter Web - flutter

I'm setting up iframe based on this tutorial.
I'm building a custom authentication method, where I want to show iframe, when OpenID Provider redirects to user interaction, therefore expecting to get 'code' in a server response... but I'm not able to fetch it from iFrame to Flutter web.
Any ideas on how to do it?
webview_flutter & flutter_inappwebview plugins seems to have proper features... but these are not available for Flutter Web.

Related

Flutter web - webview ERR_BLOCKED_BY_RESPONSE

Im trying to create an discord auth on my flutter website using oauth2, webview_flutter & webview_flutter_web.
After click connect button it should redirect user to discord login site, but then this error pops out
Error pops out also on other browsers like chrome or edge.
I was trying to run it in different project, but on android this time and it works fine. So the error must be related to the web version.
I read somewhere that it might be related to iFrame, but it wasn't really explained there.
Any ideas what this error might be related to or how to fix it?
this also happens with other websites.

Flutter web custom auth

I want to get the token from the url and return to the application when I redirect to the company's authentication page with flutter web, but I couldn't find any way. I tried the flutter web webview and web auth packages. It didn't work. Can anyone help?

Authentication with fingerprint in flutter webview

I'm learning flutter webview. I want to authenticate with my fingerprint.
The site that I wrap in webview is written in Laravel. I use local_auth 1.1.11 as an authorization plugin.
How can I combine this plugin and authorization on a site that is wrapped in a webview.
At the moment, I'm thinking of setting up the application on the side of the flutter itself (the checkbox, when enabled, will enable authentication using a fingerprint), but where to go next? If I make this setting, how can I authorize on the webview site when scanning a fingerprint?
As I understand it, it would be a bad idea to manually enter the login password in the same settings on the flutter side and then send this data to the site as inputs when scanning the fingerprint? Please help and tell me in which direction to move and how it can be implemented.

How can i set a token in flutter app and get it in flutter web?

I want to open flutter webview to show reports from my flutter app so that for each report I do not have to release a new app built. For this, I want to receive token from the login inside the app to the webview so that I can use it on the web for authentication when redirecting from app to web. How can I achieve this?
You can send the token in URL of your web app using query parameters or by using Headers.
Then, you can retrieve the respective token in your web application and perform actions based on it.
Also have a look at beamer.

Displaying a Facebook Page Plugin in Flutter

I am working on an application in Flutter for a client. They are wanting to promote their Facebook page for their business, the page is open to the public and doesn't require login. On their site, they're already using the Facebook Social Plugin to promote their Facebook feed. I am wanting to use the Social Plugin or something similar to it for consistency.
I have tried grabbing the iFrame from Facebook's Social Plugin creation page and hosting it in a WebView via Flutter. The problem is this leads to a bunch of different errors and a repeated Attempt to remove non-JNI local reference, dumping thread console log. I already know that the WebView wasn't built to handle an iFrame like this, but I don't know where else to turn in-order to view the Facebook Page. I have also tried to just display the URL link in the WebView without any of the HTML tags and had no luck. Any suggestions?
You can simply use webview_flutter plugin to display the web page on a Flutter app. Note that webview_flutter plugin is yet to have support for web. If you're also planning to deploy your app for web, what I did was I rendered the page using HtmlElementView, following this post.