AngularASPNETCoreOAuth icon indicating copy to clipboard operation
AngularASPNETCoreOAuth copied to clipboard

Google and Facebook auth

Open aplocher opened this issue 5 years ago • 1 comments

Hey there, great article / demo!

Are you still planning to expand your demo a little bit to include Google auth?

I noticed this comment.

Thanks!

aplocher avatar Jan 02 '20 05:01 aplocher

Hey, Thanks for the feedback, Adam, and good eye!

Ya, I think at the time of writing that I had bigger plans to support Google, etc. but as always just never found the time. I have no plans on extending this demo, but if you're up to the task you should be able to take this project and extend it without too much effort to use google auth provider by following this guide:

http://docs.identityserver.io/en/aspnetcore1/quickstarts/4_external_authentication.html

It doesn't look like there's too much to it. You need to follow the steps to register your app with Google in the developer portal, then enable the middleware config in the comment you found and plug in the values you get from Google for the ClientId and ClientSecret.

If you attempt the experiment, let me know how it works out - good luck!

Regards, Mark

mmacneil avatar Jan 03 '20 00:01 mmacneil