Questions tagged [google-oauth-.net-client]

For questions about the use of the Google OAuth Client Library for .NET.

For questions about the use of the Google OAuth Client Library for .NET.

10 questions
7
votes
1 answer

Authenticate Google access token with ASP.NET Core backend server

I have Angular2 on client and ASP.NET Core on server side. I use JavaScriptServices (aspnetcore-spa template). For authentication I use OpenIddict and I follow example here. Now I am on the server side in Controller class method and I would like to…
4
votes
1 answer

where do i modify 'signin-google' in owin security for google redirect url?

Im working on asp mvc 5 with google oauth login, I followed a tutorial installing owin security and set the google redirect url to be localhost/myapp/signin-google, my question is where can i change the localhost/myapp/signin-google to be something…
Kevin Simple
  • 1,225
  • 10
  • 22
2
votes
0 answers

Get Refresh Token in Google OAuth2.0 .NET

I have problem using GoogleWebAuthorizationBroker.AuthorizeAsync to authenticate, and looking at some other questions here I went for GoogleAuthorizationCodeFlow. The thing is to use this method I need to get the refresh token. I have manage to do…
moondaisy
  • 4,303
  • 6
  • 41
  • 70
1
vote
2 answers

google ExchangeCodeForTokenAsync invalid_grant in webapi

i have implemented GoogleAuthorizationCodeFlow scenario from google api client dotnet and tutorial to get token from what my client sent to server as a code. but when i call flow.ExchangeCodeForTokenAsync , I get the following error :…
1
vote
2 answers

new FileDataStore in GoogleWebAuthorizationBroker results in a new port each time

So I followed a few examples from http://www.daimto.com/, namely http://www.daimto.com/webmaster-tools-api-with-c/. After a long night I was able to get it to work. the way I did that is by simply removing new…
0
votes
0 answers

Is there a way to override the CallbackPath to include the scheme?

Using OAuth 2.0, we have our app set up to use Google as an external login and it all worked fine until something changed on Google's end and it's now complaining that: You can't sign in to this app because it doesn't comply with Google's OAuth 2.0…
Matt Burland
  • 44,552
  • 18
  • 99
  • 171
0
votes
1 answer

Error trying to Connect to GMail with MailKit

I've got the following code... var credential = GoogleWebAuthorizationBroker.AuthorizeAsync(new ClientSecrets { ClientId = "<< MY CLIENT ID>>", ClientSecret = "<>" }, new[] {…
Stuart Hemming
  • 1,553
  • 2
  • 21
  • 44
0
votes
1 answer

Scenario: How to authenticate multiple users before accessing google drive document

I have a scenario where my application opens a document in google drive and allows user to edit. Now if I want multiple users to edit the document, how (what google api-oauth/openconnect/identity federation/sign in) should I use to authenticate…
0
votes
0 answers

Google+ signin not redirecting

I have the following code to authenticate a user via the Google+ signin button:
0
votes
0 answers

Refreshing a Google OAuth2 Token From Load Balanced Web Farm and/or Worker Process

I'm currently implementing GMail integration into a line of business web application (ASP.NET MVC) which will run across multiple servers behind a load balancer. Additionally there will be a console application, run by the scheduler, to perform…
Richard
  • 106,783
  • 21
  • 203
  • 265