A problem to install Google Client API

38 views
Skip to first unread message

David_Elb

unread,
Jun 29, 2015, 7:46:22 AM6/29/15
to google-api-d...@googlegroups.com
Hi,

I'm new to Google API.My challenge is to check google id token(got on client) in the server. So I created a simple web application using Visual studio 2013 with a simple html page that authenticate google user like describe here - https://developers.google.com/identity/sign-in/web/people. Then, I got the token using :
var id_token = googleUser.getAuthResponse().id_token;
Then, I use ajax to send this token to a web service and I need to validate this Token from the server side. I found in the documentation that I need to install Google client API like describe here https://www.nuget.org/packages/Google.Apis/ , But When I'm trying to install either using Manage NuGet Package for Solution or using Package Manager Console I get this error :
Attempting to resolve dependency 'Google.Apis.Core (≥ 1.9.1)'.
Attempting to resolve dependency 'Microsoft.Bcl (≥ 1.1.9)'.
Install-Package : The remote server returned an error: (403) Forbidden.
At line:1 char:16
+ Install-Package <<<< Google.Apis
+ CategoryInfo : NotSpecified: (:) [Install-Package], WebException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

I Check the network with fiddler and I found this when request for :
GET /packages/microsoft.bcl.1.1.9.nupkg HTTP/1.0

The response is :
In the Headers tab : HTTP/1.1 403 Forbidden
In the TextView tab : http://https://api.nuget.org/packages/microsoft.bcl.1.1.9.nupkg
Reason - The file is blocked because its type is Microsoft RTF

I need your help to solve this problem , I'll appreciate any help

David
Reply all
Reply to author
Forward
0 new messages