karishmal / google-api-dotnet-client

Automatically exported from code.google.com/p/google-api-dotnet-client
Apache License 2.0
0 stars 0 forks source link

Google.Apis.Auth.Mvc does not support MVC.net 5 #417

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a new MVC web site app from within VS2013
2. Install Install-Package Google.Apis.Auth.Mvc -Pre into solution
3. Follow steps in 
https://code.google.com/p/google-api-dotnet-client/wiki/OAuth2#Web_Applications_
(using_ASP.NET_MVC)
4. Run the application and watch it blow!!

What is the expected output? What do you see instead?
Expected to get a redirect URL, instead received Method 'GetUserId' in type 
'gDriveSpike.AppFlowMetadata' from asse...

Please provide any additional information below.
In collaboration with Eyal Peled I checked out the source code and updated MVC4 
to MVC5 within the GoogleApis.Auth.Mvc4 (also needed to change the .net version 
to 4.5) project and then rebuilt.

The rebuild binaries were then referenced in my sample application, which then 
returned the expected result.

Original issue reported on code.google.com by amacdon...@technophobia.com on 11 Nov 2013 at 3:07

GoogleCodeExporter commented 9 years ago

Original comment by pele...@google.com on 11 Nov 2013 at 3:52

GoogleCodeExporter commented 9 years ago
We may need to add another extension to MVC 5. 
- We should consider if we want two different NuGet pacakges (one for MVC4 and 
one for MVC5).
- Need to reproduce in my machine and figure out what is the best way to 
support MVC5

Original comment by pele...@google.com on 12 Nov 2013 at 4:03

GoogleCodeExporter commented 9 years ago
The follow solution - 
http://peleyal.blogspot.com/2014/01/aspnet-mvc-with-google-openid-and-oauth.html
works in VS2013.

As a result I don't think that I'm going to create a different package for 
MVC5, because it looks like it should work.

I'm closing this issue, but feel free to reopen!
Eyal

Original comment by pele...@google.com on 7 Feb 2014 at 12:48

GoogleCodeExporter commented 9 years ago
i want the similar example of 
https://code.google.com/p/google-api-dotnet-client/wiki/OAuth2#Web_Applications_
(using_ASP.NET_MVC) but with ASP.NET MVC3

Original comment by rim.arab...@gmail.com on 7 May 2014 at 12:49