Wenn ich ein vorhandenes Projekt in Visual Studio 2013 haben, wie ändere ich die Authentifizierung? Während einer neuen Projekteinrichtung gibt es eine Schaltfläche "Change Authentication", aber ich kann die Entsprechung für ein vorhandenes Projekt nicht finden.Visual Studio 2013 ändern Authentifizierung auf Vorhandenes Projekt
Antwort
Bis jemand kommt mit einer besseren Antwort auf:
Bearbeiten Sie Ihre web.config und FederationMetadata.xml manuell.
Wenn Ihr Projekt ist ASP.NET MVC und ist die neue Vorlage im Jahr 2013 verwenden, sollten Sie sich auf OWIN ausgeführt werden, so gibt es eine Teilklasse Startup nach innen schauen und falls Sie es dort eine Datei Startup.Auth ist CS-, die dort teilweise von Startup ist ich diesen Es
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();
}
}
haben, ist Ihre Authentifizierungskonfiguration
Dies setzt voraus, dass "Open Web Interface für .NET" (Owin) über die Package Manager Console installiert wurde: Install-Package Owin –
Dies kann von der Projekteigenschaften erfolgen. Ich bin ein Link auf die article which explains how to do this.
Schauen Sie sich die Sektion Header im Eigenschaftenfenster an, es ist * Development Server * Projektauthentifizierung, nicht die des Servers. – Travis
- 1. Eröffnung vorhandenes Projekt in Visual Studio 2010
- 2. von Visual Studio 2013 Team-Projekt hat
- 3. fehlgeschlagen Meshlab Visual Studio 2013-Projekt
- 4. Visual Studio 2013 führt Projekt zweimal
- 5. Verknüpfungsfehler in C++ auf Visual Studio 2013
- 6. Ein vorhandenes Ionic-Projekt in Visual Studio geöffnet?
- 7. Resharper funktioniert nicht auf Visual Studio 2013?
- 8. Menüabschnitt Visual Studio 2013 fehlt
- 9. Visual Studio 2013 VC++ - Compiler
- 10. TF10121 Fehler Visual Studio 2013
- 11. Visual Studio 2013 C++ Ordnerverwaltung
- 12. Visual Studio 2013 Projektvorlage Anpassung
- 13. Öffnen von Visual Studio 2010-Lösung In Visual Studio 2013
- 14. cURL mit Visual Studio 2013
- 15. Unterstützt InfoPath 2013 Visual Studio 2013?
- 16. Visual Studio 2013 Installer-Projekt - Fehler in 32-Bit-Betriebssystem
- 17. Visual Studio 2013 ignoriert nuget.config
- 18. Ändern der TFS-Quellcodeverwaltung in Visual Studio 2013
- 19. kann nicht ein neues Web-Projekt in Visual Studio 2013
- 20. Visual Studio 2013/2015 kann Azure-Projekt nicht laden
- 21. Visual Studio 2013 gelbe Warnung für alle Referenzen in Projekt
- 22. kann nicht C++ Projekt richtig in Visual Studio 2013
- 23. LoadLibrary nie in Visual Studio 2013 C++ Projekt
- 24. Visual Studio 2013 Dialog Neues Projekt gebrochen zeigt leere
- 25. Visual Studio 2013 VSTO erstellt kein Word 2010-Projekt
- 26. Visual Studio 2013 dunkles Thema für Visual Studio 2010?
- 27. FTP Publishing Visual Studio 2013
- 28. Wie Boost Visual Studio 2013
- 29. Visual Studio 2013 CSS-Umriss
- 30. Speicherprofilerstellung in Visual Studio 2013
In Visual Studio Posting 2013 würde ich das Identity und Access-Tool, das von der rechten Maustaste auf das Projekt erneut aus. – Travis
Meinst du VS 2012? Rechtsklick in VS 2013 zeigt nichts! – nzpcmad
@nzpcmad, ja, argh! VS2012 hat das IATool. VS2013 hat nichts. :-( – Travis