google-login

Google API Client and access to Birthday and Age

随声附和 提交于 2019-12-11 15:49:05
问题 I am trying to login through Google API and getting access to some of the user data, including birthday. This is the code and scopes I am using: <?php set_include_path(get_include_path() . PATH_SEPARATOR . __DIR__ .'/vendor/google/apiclient/src'); require_once __DIR__.'/vendor/autoload.php'; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; const CLIENT_ID = '[MY CLIENT ID]'; const CLIENT_SECRET = '[MY APP SECRET]'; const APPLICATION_NAME = "Google+

Google+ signin button with ReactJS

一世执手 提交于 2019-12-11 05:59:27
问题 I am trying to get Google+ login button to work in my React code. The react code is as following (the actual code has proper value for CLIENT_ID). React.DOM.div({className: "signin-with-google"}, React.DOM.span({id: "signinButton"}, React.DOM.span({ className: "g-signin", 'data-callback': this.signinCallback, 'data-clientid': "CLIENT_ID", 'data-cookiepolicy': "single_host_origin", 'data-scope': "https://www.googleapis.com/auth/userinfo.email"} ) ) ) The button shows up properly on the page,

Google sign in error-gapi.client.plus is undefined

一笑奈何 提交于 2019-12-11 04:48:14
问题 I am using Google plus API to get email id from viewers in my website. Google reference:https://developers.google.com/+/web/signin/add-button The problem is when i click signin button i getting error "TypeError: gapi.client.plus is undefined" in browser console. How to solve it. My code: <script src="https://apis.google.com/js/client:plusone.js?onload=signinCallback" type="text/javascript"></script> <span id="signinButton"> <span class="g-signin" data-callback="signinCallback" data-clientid="

How to migrate from Google+ Login to Google Sign In in c# MVC

徘徊边缘 提交于 2019-12-10 22:22:15
问题 My web site allows users to register and log in with their Google Account. My c# MVC app uses the feature the template offered using Microsoft.AspNet.Identity.Owin. I have received an email from Google that they are shutting down Google+. The email said to transfer over to Google Sign In. Any good articles that explain this topic for c# MVC apps using Owin features? Any pointers where to start would be greatly appreciated. thanks, Michael 回答1: Just update the package Microsoft.Owin.Security

Limit Google Sign-In to .edu accounts in Meteor

最后都变了- 提交于 2019-12-10 21:27:37
问题 I'm trying to limit my Google + Sign-In Button to only allow @something.edu accounts to sign in. How would I go about doing this. This is my code so far: Template.googleLogin.events({ 'click #gLogin': function(event) { Meteor.loginWithGoogle({}, function(err){ if (err) { throw new Meteor.Error("Google login didn't work!"); } else { Router.go('/home') } }); } }) Template.primaryLayout.events({ 'click #gLogout': function(event) { Meteor.logout(function(err){ if (err) { throw new Meteor.Error(

Xamarin.Auth getting disallowed_useragent error [Xamarin.Forms]

人走茶凉 提交于 2019-12-10 15:47:43
问题 I was trying to implement login with Google and Facebook . I have successfully implemented Facebook login with Xamarin.Auth but in the Google Login I am getting error disallowed_useragent , I know Google has changed their policy and will not allow the login using WebView but is there any other way to implement Login with Google in Xamarin.Forms (Portable) ? Thank You. 回答1: It's a new Google restriction, they do not allow using their login interface in embedded webviews anymore. Therefore you

Google+ Sign-in for Android - Google Permissions Activity Result Codes

浪尽此生 提交于 2019-12-10 10:55:51
问题 I've found out a small issue when working with Google+ Sign for Android and after searching the web (and SO obviously) I'm asking my question out loud to see if anyone has noticed the same. I'm enabling server-side API access for my app as described here. Let me be detailed about what's going on. Take this fragment: Bundle appActivities = new Bundle(); appActivities.putString(GoogleAuthUtil.KEY_REQUEST_VISIBLE_ACTIVITIES, "<APP-ACTIVITY1> <APP-ACTIVITY2>"); String scopes = "oauth2:server

google sign-in auth2 customize scope without openid

我与影子孤独终老i 提交于 2019-12-10 10:24:32
问题 I want to customize the scope to allow only "email" and "profile", without "openid" because I would like to making it asking only to access to email and basic profile info. I tried to do it using the meta: <meta name="google-signin-scope" content="email profile"> or the js: gapi.auth2.init({ client_id: 'xxxxxxxxx.apps.googleusercontent.com', scope: 'email profile' }); But it does not work: in the generated URL there is always the "openid" scope... How can I "reset" the scope, and allow only

Google Login form clears LocalStorage values

依然范特西╮ 提交于 2019-12-10 00:10:45
问题 I am working with Login with Google, I observed that Google Login form clears a LocalStorage, SessionStorage and session values. Is there any way I can keep this values? or any other ways to keep some values to use after login. I tried for Stackoverflow site too, gave me same result. I set some values and tried to get. I got the values But when I clicked on Login with Google and tried, I get nothing. On Login with google form of same site 来源: https://stackoverflow.com/questions/43222266

Swift - uiDelegate must either be a UIViewController or implement the signIn:presentViewController: & signIn:dismissViewController: methods

筅森魡賤 提交于 2019-12-08 17:07:21
问题 From the Crashlytics , we are receiving a large amount of crash reports in the Google Login process. The crash report is as follows: Fatal Exception: NSInvalidArgumentException uiDelegate must either be a |UIViewController| or implement the |signIn:presentViewController:| and |signIn:dismissViewController:| methods from |GIDSignInUIDelegate|. Fatal Exception: NSInvalidArgumentException 0 CoreFoundation 0x1837f2db0 __exceptionPreprocess 1 libobjc.A.dylib 0x182e57f80 objc_exception_throw 2