Security :: Different Users Access Same Page But With Different Privileges?

Nov 25, 2010

I have created a new asp.net website ( 3 pages of c# ) I need now to apply security on those pages. each page has a couple of buttons to run specific process . How would I apply security in the following senarios

I have 3 people who have access to all three pages, however, each person has the right to click specific buttons on the pages. What is the best way to apply security.

This is what I thought and need someone to confirm it. I have created a table like this

id
controlName
RoleId
1
btnCreateCustomer
101

[Code]....

View 4 Replies


Similar Messages:

Security :: Adding Page For Managing Users And Access?

Mar 8, 2011

I've developed a web application and I've added some security features. Now i want to create a page for managing users and user access in my web application.Can anyone suggest some tutorial for managing users and access because i'm new to asp.net.

View 1 Replies

Security :: Allow Admin Users To Access Basic Users Accounts?

Aug 26, 2010

Allow Admin Users to Access Basic Users Accounts?

View 4 Replies

Security :: Grant Access To Default Page For All Users - Authenticated & Non-Authenticated?

Aug 18, 2010

I've a default.aspx page in my application's root folder. I added a a page in the root of inetpub that redirects requests to the default page. The idea is that the user need only enter the server name to get to the default page. How can I set things up so that all users have access to the default.aspx and that they only have access to the other pages once they've been authenticated?

I am using Windows Integrated Security and the users are being challenged and authenticated properly. I want them to be able to access Default.aspx without any challenges.

(On a side note which may answer this question, when using WIS does the user *allows* have to be challenged? Isn't it possible to pass through their Windows User and ID without the prompt?)

c: inetpubwwwroot
edirect.aspx (set as default document in IIS and simple executes Response.redirect("sites/mercury/default.aspx")
c:documents and settingsall usersdocumentswebsitesmercurydefault.aspx (home page for the site & server)web.config includes

[Code]....

View 2 Replies

Security :: Users Can Only Access Their Folders?

Sep 26, 2010

I have a web app were every user has its own folder so that they can store documents. What i would like to do is protect a user's folder so that only the owner can access it.

Example:

Username: ricky
Folder: ~/Files/ricky/ --> Ricky can access his folder but can't access Diana's

Username: diana
Folder: ~/Files/diana/ --> Diana can access her folder but can't access Ricky's

I'm using membership provider for the user authentication.

View 9 Replies

Security :: Access Users From Other Application?

Nov 24, 2010

I have two diffrent webforms (ASP.NET 2.0) applications that both uses the built-in membership provider of asp.net. The two application uses the same database, but is diffrentiated by ApplicationName.

One application is sort of an admintool (AdminApp) of the other application (UserApp).
I am now looking for a way to login to the UserApp from the AdminApp and sort-of impersonate a given user.

I have built an interface to automatically login a user to the UserApp (URL with querystring), but I need to be able to access the username of the refered user in the AdminApp. I was hoping for something like this would work:

Membership.GetApplication("AdminApp").GetUser();

...but I am unable to find something that works.

Is there a solution for my problem? Should I use some other approach?

/D

PS. A fallback solution wouuld ofcourse be to send a username in the auto-login-url-querystring, but that doesn't really sound solid.

View 4 Replies

Web Forms ::specific Privileges Required To Upload And Download Files From An ASP.Net Page?

Feb 28, 2011

What are specific privileges required to upload and download files from an ASP.Net page?I am using .Net 3.5 with IIS 7.0Prior to upload/download, how do I check whether specific folder has specific privileges to upload/download filesThis was so easy in classic ASP, but it seems too tricky in ASP.Net

View 1 Replies

Security :: Give Access For Webpages For Particular Users?

Oct 27, 2010

In my application i have 4 screens such as page1.aspx, page2.aspx, page3.aspx, Page4.aspx. I have created user Settings Web Form where the admin Creates username and password for users with access only for particular pages. I have used check boxes to select their accessibility while creating user setting.

View 1 Replies

Security :: How To Allow Users Out Of The Domain To Access Site

Jun 29, 2010

Currently in my application using LDAP to authenticate user to a specific domain & then i check if the user exist in my site database.

Now i need to also allow users who do not belong to this specific LDAP domain to access my site ..How can i make it possible withoput affecting the exisiting users?

View 1 Replies

Security :: Restrict Access To Domain Users Only?

May 12, 2010

I have just started to use asp.net mvc.

I have read this article about using ntlm authentication

[Code]....

it provides access to specific domain users

[Code]....

I want to restrict access to all my domain users only lets say

[Authorize(Domain="redmond")]

or do I do it via web.config

View 2 Replies

Security :: How To Use .net To Get Access To Users In Active Directory

Jun 25, 2010

.NET 4.0

I wonder if it's possible to use .NET to get access to users in Active Directory:
- Methods that returns a collection of users belonging to a specific AD group
- Get access to AD propterties beloning to the user account, want to check if the user account is disabled or not

View 1 Replies

Security :: Give Access For Web Pages Only For Particular Users Only To Certain Tabs?

Mar 22, 2010

In my web application i have 8 screens such as page1.aspx, page2.aspx, page3.aspx........Page8.aspx. I have created user Settings Web Form where the admin Creates username and password for users with access only for particular pages. I have used check boxes to select their accessibility while creating user setting. How can i limit the access of the users only to certain tabs.(All these pages are in the tabs).

View 5 Replies

Security :: Allowing Access To Users Who Are In Multiple Roles?

Feb 26, 2010

I have a web.config file with <authorization> section. I'm using window authentication.

The problem is that I would like to allow access to the web site to those users who are in multiple roles.

For example:

<authorization>
<allow roles = "Role1 AND Role2"/>
<deny users="*"/>
</authorization>

(Meaning I would like to allow access only to those user who are both in Role1 AND Role2.)

Is this possible to achive this?

If not, what would be the alternatives?

Note: Currently I'm doing the roles assignment in the Global.asax file in the OnAuthenticateRequest event (i'm reading the groups that the current user belong to in the Active Directory).

View 4 Replies

Security :: Prevent To Access Aspx Code For End-users Or Customers?

May 3, 2010

suppose we've created a web app for our customers.

how to prevent to access web page code (aspx code or behind code) for our customers ?

how to implement security and licensing information for web apps ?

View 6 Replies

Security :: Regain Access To Manage Users And Roles For This Application?

Sep 23, 2010

I am working on an application that resides on a development server on our internal network. The application was originally written to use Membership and Roles. We got busy almost a year ago before the app was finished, and now we are trying to get it ready to use internally.

The login page works just fine, but I have lost the ability to controls users and roles. I am running Visual Studio 2010 Professional now on a Windows 7 VM. I can open the application fine but there is no Web Administration Tool available for me to manage users or roles. If I go to Website -> in Visual Studio, there is no option for ASP.NET Configuration in the drop down menu. It simply isn't there.

How can I regain access to manage users and roles for this application? We are using Forms authentication and the database resides on a SQL Server 2005 instance on a separate box from the web server and my local VM.

View 1 Replies

Security :: Some Users Are Unable To Access My Internet Site With Windows Authentication?

Oct 15, 2010

I have an intranet site that i set up to windows authentication. It works fine most of the time but some departments wont be able to access the site and will be asked to enter user name and password.I checked their Active Directory account and the only difference i could see was that the organizational unit parameter was different than the rest of the users.

View 5 Replies

Security :: Used Security In Login Page Which Restricts All Users Who Have Not Logged In To All Pages?

Jun 23, 2010

i used security in login page which restricts all users who have not logged in to all pages. I need to restrict specific users to specific pages. I'm not using AspSqlService provider. So i cannot create roles and restrict automatically. And the pictures i use in login page are not visible @ runtime.

View 1 Replies

Security :: Redirecting Users From Forgot Password Page To Login Page?

Feb 7, 2011

I have created a forgot password page with a PasswordRecovery control in it.

<asp:PasswordRecovery ID="PasswordRecovery1" runat="server"
BorderColor="#E6E2D8" BorderPadding="4" BorderStyle="Solid" BorderWidth="1px"
Font-Names="Verdana" Font-Size="0.8em" Height="210px"
onsendingmail="PasswordRecovery1_SendingMail" Width="491px">

I want to redirect the user back to the login.aspx page once the user clicks the Forgot Password button.

View 2 Replies

Allow Access For Unathenticated Users To Specific Page Using Forms Authentication

Sep 2, 2010

I am using ASP.Net Forms Authentication. My Web.config looks like this.

[code]....

So currently every aspx page requires authentication.

I want to allow access to even unauthenticated users to a specific page named special.aspx. How can I do this?

View 2 Replies

Security :: Denying All Users To A Page?

Jul 11, 2010

Denying all users to a page?

View 3 Replies

Security :: Membership Users Different Page Direction?

Feb 25, 2010

i have some link buttons that On click direct to some page iwant to add some if statement that if the user is online direct to same page and if not direct to other page?

View 6 Replies

Security :: Custom Access Denied Page For Role Based Security?

Oct 27, 2010

I have implemented role based security in my asp.net 2.0 vb.net application using windows authentication and the windowstokenroleprovider and limiting access to certain pages using the location tag to specific active directory groups.

The issue is that when a user tries to access a page they are not authorized to view it brings up a login prompt and when it does not pass it takes them to the default page that tells them they are not authorized to view the page. I am wondering if there is a way to throw up a custom page that tells them they are not athorized to view the page that I can incorporate into the site itself with the header and so forth? if this page could come up in lieu of the sign in box popping up as well.

View 2 Replies

Security :: Redirect Authorized Users To Needed Page?

Dec 9, 2010

I have written a web application. All users open The default.aspx initially.

If user goes to auth/Login.aspx page and authorizes, he is redirected to auth/data.aspx

The problem is -

If user closes page and opens again, he is authorized (using cookies) but sees Default.aspx.

But because he is authorized already, is it possible that he is redirected to auth/data.aspx ?

OR

Is is possible to change the link in Master.Page to another for authorized users?

View 2 Replies

Security :: Not To Show The Login Page When Users Are Logged In?

Apr 11, 2010

I have a Login.aspx in my application.

After users logged in, if they press "back" in the browser, it goes to the Login.aspx page.

But I don't want to show users the Login.aspx page when they are logged in. how to restrict users to see the login.aspx page if they are logged in??

I am using sql role based membership provider and standard login control provided by Visual web developer 2008.

View 7 Replies

Perform Security Validation In A Page Using The Credentials Of The Domain Users?

Feb 28, 2011

I have been trying to perform security validation in a page using the credentials of the domain users ...
However, when I try to get the value in

Code:

HttpContext.Current.User.Identity.Name

is always returned blank.

PS: When I run the code in the IDE is returned "domainuser" ... but when the page is hosted on a IIS server, the returned value is always blank.

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved