google-openid

Google OpenId Connect migration: getting the openid_id in ASP.NET app

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-29 22:55:26
问题 I've gone through plenty of Google documentation and SO Q/A's but with no luck. I wonder if anyone has yet succesfully used the OpenId to OpenId Connect migration as advised by Google. This is what we used to do: IAuthenticationResponse response = _openid.GetResponse(); if (response != null) { //omitted for brevity } else { IAuthenticationRequest req = _openid.CreateRequest("https://www.google.com/accounts/o8/id"); req.AddExtension(new ClaimsRequest { Country = DemandLevel.Request, Email =

Google authentication for Gerrit and Jenkins

萝らか妹 提交于 2019-11-29 11:33:55
问题 Jenkins and Gerrit have both plugins for OpenID 2.0, but this API has been deprecated by Google May 19 2014 (https://developers.google.com/accounts/docs/OpenID) making it impossible for new installation to use and existing installations must migrate to OAuth2.0(OpendID connect). When trying to use OpenID 2.0 you will get the error message "Error 400: OpenID auth request contains an unregistered domain". The Gerrit team is aware of the problem but no solution as of yet: https://code.google.com

How to get the Google user ID (email) when using Google Account OAuth API

旧巷老猫 提交于 2019-11-29 10:49:24
I am new to OAuth, and want to get the user ID (an email address) from Google using OAuth. But I don't want to get the user's Google Contacts Information. We can get google Email address only not the contacts by making the scope of request token Like : "https://www.google.com/accounts/OAuthGetRequestToken?scope=https://www.googleapis.com/auth/userinfo#email"; Now do a authorized call to get the response like : var responseText = oAuthConsumer.GetUserInfo("https://www.googleapis.com/userinfo/email", consumerKey, consumerSecret, token, tokenSecret); Here by saying authorized call mean to make

How can I reliably link to a Gmail conversation given a thread ID if the user is logged into multiple accounts?

若如初见. 提交于 2019-11-29 04:59:00
If you're logged into multiple Gmail accounts, Google changes the URLs to reference which account you're currently using. For example: https://mail.google.com/mail/u/0/#inbox/138d85da096d2126 for a convo in my primary account vs https://mail.google.com/mail/u/1/#inbox/128cfe99d055805d for a convo in another one of my accounts. Note that one account has /u/0 in the URL and the other has u/1 . My question is: given that I've used the Gmail REST API to find the ID of a particular thread, how can I reliably link to that thread? Is there any programmatic way to ask Google which accounts the user is

Google OpenID: the page you requested is invalid

喜夏-厌秋 提交于 2019-11-29 03:24:31
问题 I'm writing a Relying Party, and use the Google provider. Yadis leads me to https://www.google.com/accounts/o8/ud, I create an association, and redirect the user's browser to that URL (HTTP 307), and fill in the following query parameters: openid.ns: http://specs.openid.net/auth/2.0 openid.mode: checkid_setup openid.assoc_handle: value_received_from_association, openid.return_to: http://my_host:and_port/?returned=1 AFAICT, I have filled out everything I'm supposed to provide, yet my user's

TypeError: gapi.auth2 undefined

孤街醉人 提交于 2019-11-29 01:46:02
问题 I went exactly by the instructions for integrating google sign-in: https://developers.google.com/identity/sign-in/web/sign-in#specify_your_apps_client_id sign-in works, but sign-out gives a javascript error in the line: var auth2 = gapi.auth2.getAuthInstance(); The error is: gapi.auth2 undefined I include the google platform library as instructed: <script type='text/javascript' src='https://apis.google.com/js/platform.js' async defer></script> Why does it not work? 回答1: Are signIn and signOut

How to implement Openid connect and Spring Security

一笑奈何 提交于 2019-11-28 23:17:16
问题 I am beginner of authentication and authorization but I have to connect to a openid connect provider on my job. I know a little about how to use Spring Security. First, I got UserInfo object thanks by following nice direction. https://oauthssodemo.appspot.com/step/1 And then I found a great implementation named "spring-security-oauth" below. I could run the app on tomcat and connect to facebook successfully. https://github.com/SpringSource/spring-security-oauth As next step, I want to connect

OpenID Connect delegation with Google now that they are deprecating their OpenID2 provider?

强颜欢笑 提交于 2019-11-28 21:07:10
For years I have used OpenID delegation to log in to Stack Overflow (among other sites) using my own URI as OpenID but having Google handle the authentication. I use the technique described in this Stack Overflow question ; so, my custom OpenID http://tupelo-schneck.org/robert resolves to an HTML page containing this: <link href="https://www.google.com/accounts/o8/ud" rel="openid2.provider" /> <link href="https://www.google.com/profiles/schneck" rel="openid2.local_id" /> Now, however, I have logged into Stack Overflow and had Google tell me " Important notice: OpenID2 for Google accounts is

Google Sign In for Web Apps not working with Internet Explorer

喜欢而已 提交于 2019-11-28 18:44:28
Using the quick start sample provided by Google I've been able to get Sign In for Web Apps to work in Chrome and Firefox. However it fails on Internet Explorer (version 11.) It will log the user into Google but the data-onsuccess call back is never called. And there are typically no notifications of any errors. I've read a related question and have tried the suggestions around Trusted Sites. I've also experimented with adjusting when IE accepts 3rd party cookies but none of this seems to work. The code for the test page I'm using is below (minus the client-id) <html> <head> <meta charset="ISO

Basic Google Sign-In for Websites code not working in Internet Explorer 11

扶醉桌前 提交于 2019-11-27 19:09:07
I am attempting to use Google Sign-In for Websites ( https://developers.google.com/identity/sign-in/web/ ) and noticed that my solution is not working in Internet Explorer 11. To try to eliminate as many factors as possible, I created a simple test case based on the sample code provided by Google. I've tested it in Chrome on my Windows 7 PC, Chrome on my Mac, Safari on my Mac, Firefox on my Mac and Safari on my iPhone. It works on all of these (e.g., when I click the sign in button and select/enter my Google account, it returns to the page and the button says, "Signed in"). It does not,