Asp.net mvc 5 MVC5 UseGoogleAuthentication方法

Asp.net mvc 5 MVC5 UseGoogleAuthentication方法,asp.net-mvc-5,owin,katana,Asp.net Mvc 5,Owin,Katana,这可能是一个愚蠢的问题,但我并没有在互联网上找到答案。我看到了MVC5和oAuth的以下代码 app.UseFacebookAuthentication app.UseGoogleAuthentication() 然而,我在调试器中并没有在app对象上看到任何名为UseGoogleAuthentication的方法。我确实在Katana代码中看到了AppBuilder上的“Use”方法。那么到底发生了什么?这个“app.UseGoogleAuthentication();”神秘方法是从哪里来的?

这可能是一个愚蠢的问题,但我并没有在互联网上找到答案。我看到了MVC5和oAuth的以下代码

app.UseFacebookAuthentication app.UseGoogleAuthentication()

然而,我在调试器中并没有在app对象上看到任何名为UseGoogleAuthentication的方法。我确实在Katana代码中看到了AppBuilder上的“Use”方法。那么到底发生了什么?这个“app.UseGoogleAuthentication();”神秘方法是从哪里来的?我肯定我错过了一些惯例,但那是什么呢


提前感谢

这是一种扩展方法,在安装Microsoft.Owin.Security.Google Nuget软件包后,它应该会显示出来。

以下是命令
安装软件包Microsoft.Owin.Security.Google

网址是