我正在運行MV5的asp.net身份,它使用戶可以選擇使用外部服務(如Google,Facebook等)進行身份驗證。我安裝了owin.security.providers,以便我可以使用Instagram身份驗證。有了其他服務,就足以在Startup.Auth中添加以下代碼:與Instagram的asp.net身份認證
app.UseTwitterAuthentication(
consumerKey: "***",
consumerSecret: "***");
app.UseFacebookAuthentication(
appId: "***",
appSecret: "***");
app.UseGoogleAuthentication(
clientId: "***",
clientSecret: "***");
app.UseYahooAuthentication(
"***", "***");
但是這不適用於Instagram。有關如何使用Instagram認證系統的任何提示?
app.UseIntagramAuthentication(//THAT DOESN'T WORK
"***", "***");
UPDATE
對於Instagram的認證在StartUp.Auth.cs正確的代碼是:
app.UseInstagramInAuthentication(
clientId: "YOUR CLIENT ID",
clientSecret: "YOUR CLIENT SECRET");
您應該將浩昊的答案標記爲正確的答案;)請隨時發佈有關您遇到的網址問題的新問題。 – 2014-09-04 10:07:46