Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8376805
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T15:30:49+00:00 2026-06-09T15:30:49+00:00

Scenario: A web application consists of a root directory (open, no authorization) and a

  • 0

Scenario: A web application consists of a root directory (open, no authorization) and a number of subdirectories (let’s call them Sub1, Sub2 and Sub3). Furthermore, when an user name is provided, there’s a method contacting a SP and returning an IEnumerable<String> consisting of the names of subdirectories, which that certain user is supposed to be allowed to access. The above is not changeable.

I wonder what the neatest way to solve this would be. I can’t rely on AD and a simple authorization stored in a cookie or a session variable won’t allow for a diversification of accessible subdirectories.

I’m pretty confident I can make it work but I’d like to do it in bragable style.

Suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T15:30:51+00:00Added an answer on June 9, 2026 at 3:30 pm

    To me it sounds like you could put a web.config in each of subfolders with

    <authorization>
       <allow roles="SubfolderName" />
       <deny users="*" />
    </authorization>
    

    Then, for each user, attach the result of this IEnumerable<string> list of subfolders to the user’s roles in your role manager.

    This way, each user trying to access the folder will have a proper role in his/her role list and the url authorization module will allow the user to access the folder.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let me share the following scenario: I have a ASP.NET intranet Web-based application that
The scenario We have a web application that makes a call to a web
This is the scenario: -Hosted web application. -Application trust level is full trust, because
I have the following scenario. I have created an ASP.NET web application (framework 3.5)
Scenario Multiple application servers host web services written in Java, running in SpringSource dm
I want to implement single sign on in my asp.net web application. Scenario is
I have the scenario like this, My environment is .Net2.0, VS 2008, Web Application
Scenario: Apache Wicket based web application running on Tomcat server. User opens URL in
Here's the scenario: ASP.NET MVC2 Web Application Entity Framework 4 (Pure POCO's, Custom Data
Here is the scenario : 1) Created on Web Application project for reusable user

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.