Flutter web custom auth - flutter

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?

Related

getting server response from iframe to Flutter Web

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.

How do I do URLS using Flutter web using Hostinger as a Hosting Service

In terms of Flutter Url handling in Flutter web, I understand that I have use routes and have String Widget pairs in the main.dart. This works perfectly well in my testing environment on my laptop. I am making a website https://intagly.com/. I want the user to be able to type https://intagly.com/signup and it leads to the signup page. This will make it easy for users to share links. I set it up in the routes in the main dart to lead to that page. When I add /signup to my URL in my testing environment it leads to that page perfectly fine. However, when I push the site to the hosting service https://intagly.com/signup comes up no page is found. I understand each link needs a folder of code. How can I achieve this using Flutter Web?

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.

Twitter authentication for Flutter Web

I've been struggling finding a way to make my web app obtaining token + secret from Twitter.
All packages for twitter login doesn't support web atm and I don't want to use Firebase.
Is there any way to achieve Twitter login for web without Firebase? And if so, how does it work?
Regards.

How to integrate NativeScript Angular android mobile application with Okta Auth flow ith PKCE

I have a NativeScript Angular android app, which i need to integrate with Okta. I was able to successfully integrate my Angular web application with Okta but (As i am not mobile app developer) finding it hard to wrap my mind on how to integrate it with mobile app.
I tried to go through the documentation available at Okta official site(https://developer.okta.com/docs/concepts/auth-overview/#choosing-an-oauth-2-0-flow) it feels like the recommendation is to implement Authorization Code with PKCE for which I would need below:
1.An embedded browser in the mobile app to show Okta login page.
2.Some sort of local server which can receive callback from Okta with auth code and integration of the auth code received in callback with application api service.
Do you think it is right line of thinking?
If yes, how shall i get a web server in mobile app and what would be its address(Would it be localhost?) to receive callback from Okta?
Is there any JavaScript library which can be easily integrated with NativeScript code to do it?
I came across https://github.com/openid/AppAuth-JS but not sure how can i integrate it.
Thanks
You can use the Okta widget and the openAuth method of InAppBrowser plugin to be able to authenticate the users and later redirect to the app again by using deep linking, you can see the example folder of that plugin: https://github.com/proyecto26/nativescript-inappbrowser#usage
We're using this plugin from React Native too and we can get the token from okta after redirect the users through deep linking, it works very well. It's required to deploy the Okta widget in an external domain and register the deep links of your apps (Android/iOS) from Okta, e.g:
${scheme}://${host}/callback (Android)
${scheme}://callback (iOS)