logging in to a joomla website, using flutter and webview - flutter

I'm building a flutter app for a website made using Joomla. I was planning to use a webview but I don't know how to implement login and register for the Joomla website, from an external php code. Login and signup authentication works but as I have said, I don't know what to do next.
I have tried to create sessions but it doesn't work

I made a flutter app for my Joomla website. Actually my joomla website has been hacked, so I can access just to the database, so I have connected to the mySql database directly using php webservices, but I had to program everything by my own, registration, account activation, login, database searches, and so on.

Related

Redirect the page from external website to web pages using play framework

I am pretty much new to play framework and I am currently developing a website using this framework.
I have the following question:
Default page should be gmail.com and the once the user entered his credentials and if the user is authorized(I mean login successsful) then it should redirect to the my website along with the retrieval of user name.
To make it as simple:
say my website is www.hellow.com
Once the user enter hellow.com then it should redirect to gmail.com and once the gmail login is successful then it should come to hellow.com with the username.Though I am using redirect() but am not sure how to come back to my site once the login successful.
Currently I am using latest play version.
Please help me out.
Thank You
It's not about redirect. You need to use Google API to be able to provide sign in with it. Start here: https://developers.google.com/gmail/api/auth/about-auth

meteor - phonegap facebook oauth

so i have a meteor app, and i'm using facebook login (and google etc) for user authentication.
and i'm using MeteorRider which is basically "hijacking" the DOM from my meteor app, this way i get also a phonegap app.
So when using web and clicking on the facebook login, its working great.
but when using the phonegap app, its not working. its making an ouath call (opening a browser and do all the process but does not automatically close the browser and bring up my app) but then redirect to my app in the browser.
i'm still trying to figure how the two works with each other.
do i need to do this authentication using phonegap api or should i handle it using meteor api?
I use this for any oauth requirements in phonegap. https://github.com/oauth-io/oauth-phonegap
It handles closing of the browser etc.
I just released a package to fix this. It uses the InAppBrowser plugin to load the popup, listens for the auth token, closes the popup and logs in/creates account.
https://atmosphere.meteor.com/package/phonegap-oauth

Integrating Facebook login with native login system

I currently run a web application that has its own native registration and login system.
Now I would like to add Facebook login to my site, and integrate it with my native registration system. Like check the email returned from Facebook, and add the user to the database with a flag indicating he is a Facebook user, and then just authenticate the user.
While I have some idea of how to implement the system, I would like inputs on whether I should use the Facebook SDK for JavaScript, or the server-side SDK. I see that Facebook recommends the JavaScript SDK for WebApps. However in case of integrating with a native system, will it be the ideal choice? I believe the JavaScript SDK would work good when the login is purely Facebook, and is meant for simple authentication-required views.
Can someone who has worked with Facebook login help with this decision?
You are right integrating Facebook Javascript SDK will not be a good choice for Native log-in system as in any case you will have to pass some input(userid) to your server side program like facebook ID/email id to synchronize the user with your native system, from javascript. Which will be a 3 way channel > Facebook - JS(user browser) - Your Server, this makes it less secure as someone with user id can ping your server and it will log the user in.
I was also working on same scenario where I need to enable users to login with Facebook as an option. However a native login system was deeply integrated with the application. So I used PHP SDK inspite of JS SDK.

How to do automatic functional test for Facebook Like button in local web server?

Our project is a Web application. We want to add Facebook Like button on our web pages. To test the functionality of Facebook Like works, we want to write some cucumber automatice functional tests.
The problem is, if a user (either real user or automatic test) click the Facebook Like button, the web page will send a message to Facebook server. And then Facebook server will callback to this web page to get some information (title/image/url/type etc, which are write in web page header meta tags). But our tests are running in local server, consequently the Facebook can not access. So there be something wrong.
So I'm wandering is there a solution to solve this problem. (Maybe not only for Facebook, but also any situation we want conversation between other systems and our local server)
In order for a Like Button to work, it has to be able to connect to the Facebook servers. There's no workaround, short of capturing the request and returning information, but I'm not even confident that would work. Can you not do the testing on a development server that can be accessed from the web?
You could .htaccess it so that only your team and the Facebook servers could connect to it.

Rails/iPhone: recommended place of doing OAuth

I'm building a (Rails-based) web service with a mobile app (iPhone) as frontend. In order to allow people to login using Facebook, I've built something using devise and omniauth that allows the user to log in using Facebook and store the credentials in the database. This works perfectly, all from the web app.
However, now the second part: I want to let users log in via the mobile app. Of course, there are the FB Connect libraries, but they give the mobile app access to the Graph API. Instead, I would like a mobile log-in screen that authorizes Rails to access the data. This is because later on, users might use both the iPhone app and web app.
What would be the recommended way of doing this? Are there any best practices?
I solved it by doing the authorization using FB Connect and the FB app. After authorizing, the FB app opens my app again, and I can read out the access token. Which I can then send to the server and use there.