这可能是一个愚蠢的问题,但我在互联网上没有找到答案。我看到了 MVC5 和 oAuth 的以下代码
app.UseFacebookAuthentication app.UseGoogleAuthentication();
但是,我在调试器中的 app 对象上没有看到任何名为 UseGoogleAuthentication 的方法。我确实在 Katana 代码中看到了 AppBuilder 上的“使用”方法。那么发生了什么?从哪里这个“app.UseGoogleAuthentication();” 神秘手段要来了?我确定我错过了一些约定,但它是什么?
提前致谢