2014-05-21 84 views
1

我使用OWIN OAuth 2.0 Authorization Server sample作为使用我们公司Active Directory创建自己的OAuth服务提供商的寺庙。OWIN OAuth 2.0授权服务器 - 路径名称空间

“下载示例代码”不能正常工作,并在下面的代码片段

// 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), 
}); 

请问Paths属于哪个命名空间我找不到Paths对象?

回答

2

我能找到工作的代码示例herePaths对象是在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; } 
}