2014-05-21 3 views
1

J'utilise le OWIN OAuth 2.0 Authorization Server sample comme un temple pour créer mon propre fournisseur de services OAuth en utilisant nos sociétés Active Directory.OWIN OAuth 2.0 Autorisation serveur - namespace chemins

Le « Télécharger l'exemple de code » ne fonctionne pas et je ne peux pas trouver l'objet Paths dans l'extrait de code suivant

// Enable the Application Sign In Cookie. 
app.UseCookieAuthentication(new CookieAuthenticationOptions 
{ 
    AuthenticationType = "Application", 
    AuthenticationMode = AuthenticationMode.Passive, 
    LoginPath = new PathString(Paths.LoginPath), 
    LogoutPath = new PathString(Paths.LogoutPath), 
}); 

Qu'est-ce que l'espace de noms ne le Paths appartiennent à?

Répondre

2

j'ai pu trouver l'exemple de code de travail here et l'objet Paths est un objet personnalisé dans le projet AuthorizationServer MVC

public class Paths 
{ 
    public static string AuthorizePath { get; set; } 
    public static string LoginPath { get; set; } 
    public static string LogoutPath { get; set; } 
    public static string TokenPath { get; set; } 
}