Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instructions followed exactly still lead to errors (even if Google+ API is enabled) #10684

Closed
exportio opened this issue Jan 29, 2019 — with docs.microsoft.com · 6 comments
Labels
Pri3 Source - Docs.ms Docs Customer feedback via GitHub Issue
Milestone

Comments

Copy link

exportio commented Jan 29, 2019

You must enable Google+ API and then create credentials for that API before it will work. Otherwise, you will get the error below.

An unhandled exception occurred while processing the request.
HttpRequestException: An error occurred when retrieving Google user information (Forbidden). Please check if the authentication information is correct and the corresponding Google+ API is enabled.
Microsoft.AspNetCore.Authentication.Google.GoogleHandler.CreateTicketAsync(ClaimsIdentity identity, AuthenticationProperties properties, OAuthTokenResponse tokens)

Exception: An error was encountered while handling the remote login.
Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler<TOptions>.HandleRequestAsync()


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@dotnet-bot dotnet-bot added the Source - Docs.ms Docs Customer feedback via GitHub Issue label Jan 29, 2019
@guardrex
Copy link
Collaborator

I'll also add this to the tracking issue for a look 👀. #1470

... something else came to mind. There was some talk of Google+ auth changing ... depreciated? We should track down that engineering issue and see what's what.

Copy link

GBPhilip commented Feb 3, 2019

With google+ I have the code in c#. Is there a c# version for the new google authentication

@guardrex
Copy link
Collaborator

guardrex commented Feb 3, 2019

There was some talk about that approach on that issue. I think the issue was in aspnet/AspNetCore repo issues, but I'm not 100% sure about that. It might be elsewhere in the engineering repos. The issue discusses the depreciation of Google+ and some alternative ways to deal with Google auth.

I'm 🏃 at the moment and can't look, but I'll come back later and see if I can find that issue and post the link here.

@guardrex
Copy link
Collaborator

guardrex commented Feb 3, 2019

@GBPhilip Found it! (actually, it wasn't that hard to track down ... it was in the aspnet/AspNetCore repo issues). See ......

dotnet/aspnetcore#6486

@GBPhilip
Copy link

GBPhilip commented Feb 4, 2019 via email

@Rick-Anderson Rick-Anderson added Pri3 and removed Pri2 labels Feb 4, 2019
@Rick-Anderson
Copy link
Contributor

It's in the first paragraph.

For more information and temporary mitigations for ASP.NET Core, see this GitHub issue. This tutorial has been updated with the new setup process.

@dotnet dotnet locked as resolved and limited conversation to collaborators Oct 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Pri3 Source - Docs.ms Docs Customer feedback via GitHub Issue
Projects
None yet
Development

No branches or pull requests

5 participants