I am using OAuth 2.0 for google SingIn, it is opening a popup window for user authentication but i want to open in same tab itself, please help me. Thanks in advance.
Google SignIn user authentication opening in Popup window, need to open in same Tab itself using OAuth 2.0
7.6k Views Asked by Jayasenthil At
2
There are 2 best solutions below
0
cometfish
On
You can use ux_mode: redirect to change Google to Redirect mode which will open in the same tab instead of in a popup.
Ref: https://developers.google.com/identity/sign-in/web/reference#gapiauth2clientconfig
Then on your redirect landing page, use auth2.currentUser.get() to retrieve the signed in Google User object.
(I know this is an old question, but this was one of the first results in a web search; thought it might help others who end up here as well)
Related Questions in GOOGLE-API
- Google Logging API - What service name to use when writing entries from non-Google application?
- Why I receive CERTIFICATE_VERIFY_FAILED from google adwords api?
- Google plus API not return the Email address
- getting google contacts using shuttlecloud
- finished with non-zero exit value 2 when I use google login api
- Unable to authenticate with Google through the Java SDK for reading spreadsheet data
- Youtube API - Listing hidden videos of my channel using OAuth
- How to update ACL of a file in Google Cloud Storage using Java API
- What is the difference between Android API and Google API?
- Freebase Search API - Get All Results
- Google Developer API V3 for video upload in YouTube C#.net
- Google places maps Api web service post new place
- Limited number of rows returned from Google spreadsheet and the Sheets Api
- Gmail API: Insufficient Permission
- Use custom image for google signin button
Related Questions in GOOGLE-AUTHENTICATION
- Authenticating in a Google sheets application
- Need help resolving redirect_uri_mismatch error
- How to log out a google account from an Android app
- Same Google Cloud Storage upload script works from one PC, but not the other, Why?
- Error installing packages using composer?
- Memory leak with nodejs
- Bluemix authentication ios8 with google and facebook
- How to set hosted domain in MVC GoogleOAuth2 Authentication Options
- How to use google drive API without web browser
- com.google.firebase.FirebaseException: An internal error has occurred. [ CONFIGURATION_NOT_FOUND ]
- Not getting user information with Google Plus sign-in api + Node.js
- google oAuth redirect_uri in angularjs
- Google Auth not returning a consistent ID with IdentityServer4
- How to redirect to Google Auth in PhoneGap Cordova?
- How do I retrieve the first and last name of a google account that i'm logged in, in Android?
Related Questions in GOOGLESIGNINACCOUNT
- Flutter ,Google apis wants choose gmail adress every time
- I can't configure Google SignIn with Firebase on my Xcode
- I can't generate SHA-1 code when I run gradew signingReport
- Google Signin Using CustomTabIntent In Android Kotlin
- How to handle access_token expiry and google signin status in Google Token Model?
- How to change Google account after signed in
- Flutter - Sign-In with Google doesn't works for the 2nd Sign-in
- Google one tap sign in on Android with Flutter
- PlatformException(popup_blocked_by_browser, Exception raised from GoogleAuth.signIn()
- Google Sign-In SDK Disconnect from an account
- Google Sign-In Intermittently works
- com.google.android.gms.common.api.ApiException: 16:
- Google Sign-in User Changed Listener
- why this error occurred with GoogleSignInAccount?
- Google Sign In app identification
Related Questions in GOOGLE-SIGNIN
- Not getting refresh token with google oauth2
- finished with non-zero exit value 2 when I use google login api
- how to signup user using google-plus integradation in web?
- Google Sign in CocoaPods Install in Swift?
- Use custom image for google signin button
- Getting cross client id token for AWS from Google Sign-In SDK
- Uncaught NSInvalidArgumentException when using Google Sign In for iOS
- Google SignIn without CocoaPods
- Google Sign In issue asking to update to latest
- Android: Error calling GoogleApiClient.connect()
- Google Sign-In returns unknown error if the user cancels on the permissions page
- Conflicting constraints on GIDSignInButton in Google Sign-In SDK 2.0.1
- How to use the refresh token with Google Sign-In API for iOS
- google+ api login not returning email
- Upgrading from Google Sign-In SDK 1.0.0 to 2.0.1 fails to compile on SKStore references
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The popup window opens if you use Google Sign-In JavaScript library. You have to use server side api client libraries to authenticate / authorize without a popup. https://developers.google.com/identity/protocols/OAuth2WebServer