Questions tagged [security-trimming]
21 questions
8
votes
1 answer
Trimming whitespace from usernames and passwords
The iPad application I'm working on requires that the user provide a username and password that are authenticated against a server before they can enter the application proper. I'm considering making a subtle change so that whitespace at the start…

Andrew
- 11,894
- 12
- 69
- 85
3
votes
3 answers
How does XmlSiteMapProvider check user to be in specified role?
I roll my own SiteMapProvider inheriting System.Web.XmlSiteMapProvider.
I want to override logic of checking user to be in a role specified in siteMapNode's property roles:
How…

abatishchev
- 98,240
- 88
- 296
- 433
2
votes
1 answer
ASP.NET Core MVC Navigation Security Trimming
In ASP.NET Core MVC I would like to hide links in my navigation bar that the user is not authorized to access. Currently the MvcSiteMapProvider that I have used in previous projects does not support ASP.NET Core MVC.
A similar question was asked a…

mheptinstall
- 2,109
- 3
- 24
- 44
2
votes
3 answers
Link security trimming in asp.net mvc
I would like to show some links only to authenticated users in an asp.net mvc web application.
I use the template for an asp.net mvc web application in Visual Studio 2008 that came with the beta release of asp.net mvc.
I use forms authentication.
I…

Ole Lynge
- 4,457
- 8
- 43
- 57
1
vote
1 answer
c# Sql SiteMap Provider security Trimming not working
While I was using web.sitemap the security Trimming on my menu was working fine.
Now that I have switched to a Sql Site Map Provider, the security trimming just stopped working.

user91556
- 41
- 6
1
vote
1 answer
Custom security trimming SharePoint FAST Search results
I have created a custom search security trimmer for SharePoint Search. Unfortunately it doesn"t work with SharePoint FAST Search.
Is there any way by which similar custom security trimming of FAST Search results can be achieved ?

ForceG
- 11
- 3
1
vote
0 answers
SecurityTrimming does not hide unauthroized menus
I have a Kendo menu that is built dynamically.
@(Html.Kendo().Menu()
.Name("menu")
.HtmlAttributes(new { @class = "menu-top", styles = "max-height:55px" })
.SecurityTrimming(s => s.HideParent(true))
.Items(menu =>
…

sosha
- 207
- 3
- 11
1
vote
1 answer
How to affect single child nodes when Security Trimming a SiteMap?
I have a ASP.Net site, in which I'm trying to use Windows Authentication and Active Directory roles to limit access to some pages. I've looked at a tutorial page from Scott Gu, but I can't quite achieve what I want.
I'm ignoring the root node in my…

Graham Clark
- 12,886
- 8
- 50
- 82
0
votes
1 answer
roles based menu does not work, what am I doing wrong?
I can't figure this one out.
I have the following SiteMap
…

bevacqua
- 47,502
- 56
- 171
- 285
0
votes
2 answers
SharePoint 2010: Trimming page content based on group
In SharePoint 2010, what are the best practices for trimming content on a single page based on group? For example, I have two types of customers that each belong to a different group. I only want customer 1 to see their content (links, text, etc),…

RepDetec
- 741
- 13
- 29
0
votes
0 answers
Recognizing ASP.NET MVC security trimming request in AuthorizeAttribute override
I have a controller with a custom Authroize attribute on a method:
class ItemsController
[MyAuthorize]
ActionResult MyMethod()
I also use Kendo ASP.NET MVC to create a menu. Kendo provide a great feature with Security trimming…

slolife
- 19,520
- 20
- 78
- 121
0
votes
1 answer
Looking for elegant and secure way for security-trimming "edit" views
Looking for a clean, secure way to only allow certain users (by role) to edit certain fields in a view. The key word here is edit, because it's one thing to just show/hide parts of a view (buttons, links, etc.), but another thing how to handle…

Jiveman
- 1,022
- 1
- 13
- 30
0
votes
1 answer
MVCSiteMapProvider: Using security trimming with ouput cache returns empty sitemap
I am using the MvcSiteMapProvider Html Helper to create a navbar. The content of the navbar depends on the visitor rights therefore I am using security trimming to only display content which the person is authorized for. For performance improvement…

Hello It's me
- 538
- 1
- 11
- 24
0
votes
1 answer
File managment on Azure blob storage
Is there a service or a(n open-source) library that could help in programmatically manage files stored on Azure blob storage. By manage I mean search with security trimming, authorizing download, document-versioning.
I've looked online but most of…

Shady M. Najib
- 2,151
- 2
- 19
- 30
0
votes
1 answer
Show/Hide custom menu items as based on Roles/Web.sitemap file
I have a custom menu, which leverages the standard asp.net sitemap. It works well but some of my pages are dynamically generated by URL rewriter, so they don't sit in the sitemap XML file. At the moment I rolled a custom solution which shows/hides…

Dkong
- 2,748
- 10
- 54
- 73