2013-10-26 7 views
23

यदि मेरे पास विजुअल स्टूडियो 2013 में कोई मौजूदा प्रोजेक्ट है, तो मैं प्रमाणीकरण कैसे बदलूं? एक नए प्रोजेक्ट सेटअप के दौरान, "प्रमाणीकरण बदलें" बटन है, लेकिन मुझे किसी मौजूदा प्रोजेक्ट के बराबर नहीं मिल रहा है।मौजूदा स्टूडियो पर विजुअल स्टूडियो 2013 बदलें प्रमाणीकरण

+0

के लिए एक लिंक पोस्ट कर रहा हूँ दृश्य स्टूडियो 2013 में, मैं पहचान और एक्सेस उपकरण, परियोजना पर राइट क्लिक से उपलब्ध फिर से चलाने जाएगा। – Travis

+0

क्या आपका मतलब वीएस 2012 था? वीएस 2013 में राइट-क्लिक कुछ भी नहीं दिखाता है! – nzpcmad

+0

@nzpcmad, हाँ, argh! वीएस2012 में आईएटूल है। वीएस2013 में कुछ भी नहीं है। :-( – Travis

उत्तर

0

किसी को एक बेहतर जवाब के साथ ऊपर आता है जब तक: अपने web.config

संपादित करें और FederationMetadata.xml मैन्युअल।

0

तो अपनी परियोजना ASP.NET MVC है और यह Owin पर चलना चाहिए तो वहाँ है एक आंशिक वर्ग स्टार्टअप अंदर देखो 2013 में नई टेम्पलेट का उपयोग कर रहा है और इस स्थिति में आप वहाँ है एक फ़ाइल Startup.Auth है .cs कि स्टार्टअप का आंशिक है वहाँ मैं इस

public partial class Startup 
{ 
    // For more information on configuring authentication, please visit http://go.microsoft.com/fwlink/?LinkId=301864 
    public void ConfigureAuth(IAppBuilder app) 
    { 
     // Enable the application to use a cookie to store information for the signed in user 
     app.UseCookieAuthentication(new CookieAuthenticationOptions() 
     { 
      AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie, 
      LoginPath = new PathString("/Authentication/Login") 
     }); 

     // Use a cookie to temporarily store information about a user logging in with a third party login provider 
     app.UseExternalSignInCookie(DefaultAuthenticationTypes.ExternalCookie); 

     // Uncomment the following lines to enable logging in with third party login providers 
     //app.UseMicrosoftAccountAuthentication(
     // clientId: "", 
     // clientSecret: ""); 

     //app.UseTwitterAuthentication(
     // consumerKey: "", 
     // consumerSecret: ""); 

     //app.UseFacebookAuthentication(
     // appId: "", 
     // appSecret: ""); 

     //app.UseGoogleAuthentication(); 

    } 
} 

वहाँ है, तो अपने प्रमाणीकरण विन्यास

+0

यह मानता है कि किसी ने पैकेज प्रबंधक कंसोल के माध्यम से ".NET के लिए ओपन वेब इंटरफेस" (ओविन) स्थापित किया है: इंस्टॉल-पैकेज ओविन –

8

इस परियोजना के गुण से किया जा सकता है। मैं article which explains how to do this.

enter image description here

enter image description here

+2

गुण विंडो में सेक्शन हेडर को देखें, यह * विकास सर्वर * है। प्रश्न इस बारे में है प्रोजेक्ट का प्रमाणीकरण, सर्वर का नहीं। – Travis

संबंधित मुद्दे