iprincipal
IPrincipal.IsInRole() only works when I truncate the role names - why?
I have an application that relies heavily on authorization of users. Within it, I am using IPrincipal.IsInRole() to check whether users are in the correct groups:[详细]
2023-01-17 19:13 分类:问答Block assemblies from changing IPrinicpal
My application loads a lot of different plugin assembli开发者_如何学Goes. Each plugin can add their own services into the IoC container and can also use all services provided by the main application.[详细]
2023-01-14 23:32 分类:问答Not seeing roles on Principal in ASP.NET MVC 2 Application
I am writing an ASP.NET MVC 2 application and don\'t want to use ASP.NET Membership. I do want to use the Authorize attribute on the Controllers. What I have done so far is ...[详细]
2023-01-11 04:56 分类:问答asp.net extending IPrincipal
I would like to extend IPrincipal in asp.net to allow me to get the usertype that I will define. I would like开发者_运维百科 to make it possible to do this in a controller[详细]
2023-01-06 11:13 分类:问答How does IPrincipal gets its roles?
I need to get know how SiteMapProvider.IsAccessibleToUser() works. Built-in XmlSiteMapProvider calls HttpContext.User.IsInRole() which uses System.Security.Principal.GenericPrincipal in case of forms[详细]
2022-12-31 14:38 分类:问答Asp.net Mvc: Ninject - IPrincipal
I was wondering how I could bind the IPrincipal to HttpContext.Current.User in Asp.net Mvc with Ninject.[详细]
2022-12-28 06:29 分类:问答Keep an object for the time the connection is running in ASP.NET
I\'m developing a web service with ASP.NET, is not an .asmx or WCF, it\'s a custom one, so I\'m working with the Ht开发者_StackOverflow社区tp classes (context, request, response, etc..). Session is di[详细]
2022-12-28 03:55 分类:问答How do you override the WCF AuthenticationService IsLoggedIn() method?
I have three current thoughts on how to do this: re-implement AuthenticationService, which uses lots of internal constructors and internal helpers,[详细]
2022-12-24 20:18 分类:问答《婆婆的镯子》里隐藏的家庭关系处理智慧?
“代入感太强了,剧情过于真实,比如婆婆不打招呼就去给小夫妻家打扫卫生,插手生活上的事情……”8月30日,电视剧《婆婆的镯子》在湖南卫视、芒果TV同步播出,该剧一经播出便引发热议,剧中刘茵(蓝盈莹)与李霜清([详细]
2022-12-21 18:06 分类:问答Testing rails controller with rspec
I\'m new to rails and I\'m trying to test a controller with rspec. My first test is when the show action is invoked, it should lookup a Category by url.[详细]
2022-12-21 17:58 分类:问答
加载中,请稍侯......