QML WebView, google sign-in button and app authorization - webview

I try to implement authorization via google in my applications but I have one problem.
In normal browser authorization works the next way:
Click on google sign-in button
Open new page with google authorization
Denied/Grant permissions to app
Page closed automatically
Page with google sign-in button reloaded automatically
But in QML WebView the last 2 steps doesn't work. Does anybody has ideas how I can do this?
Thx

Use this example for WebView OAuth2 authentication. Usually Websites use OAuth2 for authentication and authorization. The Example is for Facebook , but it can be applied for Google.

Related

Google Login Doesn't work through iOS Instagram App

If I open a link on the instagram app, it opens a web view.
When I'm trying to log into my website via Google Login while on the Instagram's App web view, my google login would freeze at the logging in process.
Does anybody know how to support logging in via the instagram App for Google Login?
Maybe you can use ux_mode redirect option in google oauth config: https://developers.google.com/identity/sign-in/web/reference#gapiauth2clientconfig
Google OAUTH does not allow for app web views and embedded app web view.

Prohibit escaping to the web from the Google Sign-In dialog

When using 'Google Sign-In' (either via an official SDK such as the iOS SDK, or manually by popping up a browser view with the authorization page URL), there are ways to escape the sign-in view, and go to Google and search/browse the web (e.g. by clicking the "Privacy" link, scrolling to the bottom, and clicking the "Google" link)
I have an (iOS) app where I would like to just use Google for sign-in, but not give my users access to the web. Is there a way to lock down the Google Signin dialog to have this?

From my Mobile App how can I log in to WordPress using Google Auth?

I'm developing a Xamarin forms mobile app (iOS). I would like the user of the mobile app to be authenticated by google auth in order to access WordPress (a.k.a. WP henceforth) Resources. I see the flow as follows:
User launches the Mobile App and is presented with the WP login screen where along with the WP login fields, there is a button that says 'Login with Google'.
Upon tapping on the 'Login with Google' button, the user is redirected to Google's login page where he/she enters Google credentials.
Google then redirects back in either one of the ways:
a. Google redirects to WP with necessary tokens which in turn redirects to the app with necessary tokens.
b. Google redirects back directly to the app with the necessary tokens.
Is this a valid scenario?
I know that Xamarin Forms has packages that support OAuth so that can be handled, but how would I go about setting this up between WP and Google Auth? What would the correct Redirect URL's be?
Appreciate any help that can be provided.
Thanks & Regards
Noel

google auth on electron app

We are developing an electron app using and reactjs and node. Google oauth2 is being used for signup and login. But we are not able to get back to the app after successful login. What is the right way to solve this. What is the return url that is to be given to return the user to the app?
Thanks in advance.
Ajey, I am also working in the same project. We are using the electron react boilerplate (https://github.com/chentsulin/electron-react-boilerplate) to build the application. We are not using any separate window for authentication. When click on the signin button, the application will redirect to the google authentication page and redirect to the url provided in the "redirect_uri" parameter.

OAuth Using UIWebView iOS

I would want to know how can I make user login OAuth via a UIWebView instead of Safari browser.
I've implemented Twitter OAuth with Deployd as backend, after making login with Twitter it redirects to my API url for a POST request and get stuck. It's not redirecting back to the application.
So any approach or suggestion would be greatly appreciated.
Any reason why you're not using the Fabric SDK? It makes it really easy to login a user via Twitter and it checks automatically if an account is set up in the System Settings. If there isn't one, it'll present the OAuth login option. In this way your user doesn't have to leave your app which is great.

Resources