Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MVC5 UseGoogleAuthentication mysterios method

It can be a dumb question, but I did not find answer on this on Internet. I see following code for MVC5 and oAuth

app.UseFacebookAuthentication app.UseGoogleAuthentication();

However, I don’t see any method called UseGoogleAuthentication on app object in debugger. I do see a “Use” method on AppBuilder in Katana code. So what is going on? from where this “app.UseGoogleAuthentication();” mysterious methods is coming over? I am certain I am missing some convention, but what is it?

Thanks in advance

like image 826
NetMagician Avatar asked Dec 28 '25 20:12

NetMagician


1 Answers

It is an extension method, it should show up once you install Microsoft.Owin.Security.Google Nuget package.

like image 145
0leg Avatar answered Dec 31 '25 00:12

0leg



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!