google-plus

Validating Google ID tokens in C#

瘦欲@ 提交于 2019-12-04 02:26:40
I need to validate a Google ID token passed from a mobile device at my ASP.NET web api. Google have some sample code here but it relies on a JWT NuGet package which is .Net 4.5 only (I am using C#/.Net 4.0). Is anyone aware of any samples which do this without these packages or has achieved this themselves? The use of the package makes it very difficult to work out what I need to do without it. According to this github issue , you can now use GoogleJsonWebSignature.ValidateAsync method to validate a Google-signed JWT. Simply pass the idToken string to the method. var validPayload = await

Google plus client “An internal error occured” [duplicate]

半世苍凉 提交于 2019-12-04 01:21:07
问题 This question already has answers here : “An internal error occurred” with integration of Google Plus Login (20 answers) Closed 5 years ago . Last day I started to receive "An internal error occured" while trying to sign user with Google Plus in my application, that I used well and have not changed. The code has not changed for a long time. GmsClient returns connect: bindService returned true for Intent { act=com.google.android.gms.plus.service.START } service broker connected, binder:

Detect iOS Google+ Sign In was incomplete.

六眼飞鱼酱① 提交于 2019-12-04 00:47:26
By "incomplete" I'm referring to a particular user journey user opens iOS application, and chooses Google+ to sign in. Google SDK navigates user to G+ application for sign in (or webview if G+ not installed). user navigates away from Google+ (tapping home button for instance) without accepting or denying permissions requested. user navigates back to iOS application. Using Facebook SDK, when application becomes active, the sign in session is closed if the user follows similar journey via the call to [FBAppCall handleDidBecomeActive]; It appears that there is nothing as advanced from Google+ SDK

Access token Google+

依然范特西╮ 提交于 2019-12-03 21:58:16
I'm experiencing few issues with the new-released Google+ API to retrieve an access token... I have been following the documentation , I got a Code ("4/blablabla") but when I send the POST request to get an access token, I get a "(400) Bad Request" response... Here is my piece of code : // We have a request code, now we want an access token StringBuilder authLink = new StringBuilder(); authLink.Append("https://accounts.google.com/o/oauth2/token"); authLink.AppendFormat("?code={0}", gplusCode); authLink.AppendFormat("&client_id={0}", myClientId); authLink.AppendFormat("&client_secret={0}",

Google Plus can't post a moment

孤街浪徒 提交于 2019-12-03 21:44:49
After Google authorization I try to post a moment without any confirmations: GTMOAuth2Authentication *auth; auth = [GTMOAuth2ViewControllerTouch authForGoogleFromKeychainForName:TMH_SOCIAL_GOOGLE_KEYCHAIN clientID:TMH_SOCIAL_GOOGLE_CLIENTID clientSecret:TMH_SOCIAL_GOOGLE_SECRET]; if ([auth canAuthorize]) { NSString *postString = @"{\"type\":\"http:\\/\\/schemas.google.com\\/AddActivity\",\"target\":{\"id\":\"tmhabc\",\"type\":\"http:\\/\\/schemas.google.com\\/AddActivity\",\"description\":\"First post description\",\"name\":\"First post\"}}"; NSURL *url = [NSURL URLWithString:[NSString

Android Google plus sign in button

青春壹個敷衍的年華 提交于 2019-12-03 21:35:59
Following Google Sign Button , I implemented it on my android device. When clicking the button it shows you a popup asking your permission: Know Who you are on Google. Now what? It looks like this gives me nothing. It does not provide me access_token, or any user data. What is it good for? *Please do not tell me how to get access_token this is not what the question is about You have to implement ConnectionCallbacks. And in onConnected(), you can start to get user data you want from the google plus account. Here's my sample code for the function: @Override public void onConnected(Bundle

Why does PlusClient.loadPeople fail with HTTP 403 error?

喜夏-厌秋 提交于 2019-12-03 21:19:57
问题 I have the old Google Plus (aka Google Play Service) API integrated into my app, and now I'm trying to update things to use the V2 API which includes, among other things, access to the list of people in a person's circles. Ostensibly, the only changes I should have had to make are to update the OAuth profile I'm using to authenticate: _plusClient = new PlusClient.Builder(_activity, this, this). setScopes(Scopes.PLUS_LOGIN).build(); and then (after doing the necessary hoop jumping to ensure

How to get the friend list using Google+ API OAuth 2.0

一世执手 提交于 2019-12-03 21:19:47
I am having signin with Google+ to retrieve the users basic profile info(Name, Urls, Location, Profile Picture). But I want to also retrieve the user-id of the users friend so that i can give him/her better suggestion of whom the user already know in my website. $app_access_token = GetCH(); function GetCH(){ $ch = curl_init(); $pieces = explode(",", $_SESSION['access_token']); $piece = explode(":", $pieces[0]); $token = str_replace('"',"",$piece[1]); $url = "https://www.googleapis.com/oauth2/v1/userinfo?access_token=".$token; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETU

Google Plus API get photo albums/videos

感情迁移 提交于 2019-12-03 21:16:03
How can I get the Google Plus Photo Albums for a user or a page? I can get the activities (post/video/photo) all together. This is the code I'm using: var provider = new NativeApplicationClient(GoogleAuthenticationServer.Description); provider.ClientIdentifier = GoogleIdentifier; provider.ClientSecret = GoogleSecret; ActivitiesResource.Collection collection = new ActivitiesResource.Collection(); var service = new PlusService(); service.Key = GoogleKey; ActivitiesResource.ListRequest list = service.Activities.List(ProfileID, collection); foreach (Activity activityFeed in list.Fetch().Items) {

get all events from a Google Plus Community using API

荒凉一梦 提交于 2019-12-03 20:18:27
问题 So we are having a great time using a couple of Google+ communities to co-ordinate pair programming events with programmers and students from all around the world: https://plus.google.com/communities/100279740984094902927 https://plus.google.com/communities/101007836695292894562 However I'd really like to start analyzing the pair programming events, and so want to grab information about the events via the read-only Google API. I see that there is a mechanism for doing this: Is there an API