membership

ASP.NET MVC membership doesn't seem to work if user know direct url

i am extending the default asp.net mvc example.. i am using asp.net membership provider that comes with it . . the issue is that if i access one of my url's directly without logging on it shows the full page with "Log On" link at the top. I want it to obvious redirect to the login page, if anyone accesses any of the specific action ur...

How secure is the ASP.NET Membership framework?

What is the ASP.NET Membership framework's reputation as far as security goes? Are there any typical default configuration settings that are problematic? What best practices are there? Are there any built-in methods to combat things like session hijacking? ...

Membership products data schema

I'm trying to model my organization's membership products for accepting and recording membership purchases in our business database. Someday we hope the purchases will be made online and automatically put into the business database. The problem is that our membership products are all over the place. We have 4 types of organizations th...

asp.net membership - approval from admin

i am using the asp.net mvc sample app and have expanded it a bit. I use the asp.net membership for login and registration for users. I now want to change it so when people register, instead of instantly being able to login, it goes to some state where an admin has to approve it. Once this approval happens, then they can log in. Is th...

how do i access the To access the Web Site Administration Tool

i found an article that says: "To access the Web Site Administration Tool, on the Website menu, click ASP.Net Configuration." I dont see a Website menu in visual studio 2008 when i am looking at my asp.net mvc solution. Is there any other way i can setup roles with asp.net membership? ...

asp.net membership - let admin users manage the site in terms of roles

is there a way i can let the admin users of my site manage roles of other users. I see the asp.net membership tool but that seems to be just for developers of the site. i want a situation where i can give one user admin role and let him manage all of the other role details of the other users so they dont have to come back to me for ent...

asp.net-mvc - how do i create a view to show all unapproved users and allow them to be approved

i have this code in my membership service class (taken from the asp.net-mvc sample app) public MembershipUserCollection GetUnapprovedUsers() { MembershipUserCollection users = Membership.GetAllUsers(); MembershipUserCollection unapprovedUsers = new MembershipUserCollection(); foreach (MembershipUser u in us...

asp.net membership IsApproved false but still allowing login

i have change the default Account Membership provider to set IsApproved to false. public MembershipCreateStatus CreateUser(string userName, string password, string email) { MembershipCreateStatus status; _provider.CreateUser(userName, password, email, null, null, false, null, out status); return status; ...

in asp.net what sets Request.IsAuthenticated = true

i am having a user register but IsApproved is false but when i check Request.IsAuthenticated it still returns true. Do you know how this can happen? ...

asp.net membership - how to determine programatically is user is in role

what is the code for determining if a user is in a role. I have setup all the users through the ASP.Net configuration Security tab but now want to put logic around some key areas so only people in certain roles can see and access these areas. ...

asp.net - how do i determine which checkbox correlates with each row (user)

I am using asp.net mvc. I have generated a view that retrieve all unapproved users in the asp.net membership table. I have put checkboxes next to them for someone to bring up a view. The goal is that someone should be able to check certain checkboxes, hit save and that will go back to asp.net membership and change the IsApprove flag t...

How do you get the membership profile of a user in an ASP.NET MVC view?

I'm using ASP.NET MVC and the Membership providers. How do I get the profile of a user in a view? any particular method to get it? The template project out of the box access the username in this way: <%= Html.Encode(Page.User.Identity.Name) %> I'd like to have a similar way to access the profile data. ...

ASP.NET Windows Authentication with DB User table

Greetings, Currently working on a corporate Intranet project using asp.net 3.5. This app can only be accessed by certain users in the office using windows authentication. I am planning to use sql server User table to give permission to this app coupling with windows authentication. Only users that reside in the SQL user table can acce...

asp.net membership - shows up as admin even though not in web tool

when i run this code, i get back true bool isAdmin = Roles.IsUserInRole(item.loginName, "Administrator"); but when i bring up the Security tab in the Asp.net Website administration tool, this user doesn't exist (or atleast i dont see this user in the list) when i go to the database, i do see this users in the aspnet_Users and aspnet...

How do I use the Membership methods in the database layer?

I have an ASP.NET 2.0 3-tiered app. I want ALL of the db interaction to go through the db layer. So, when I use the Login controls, instead of them calling methods that hit the db, I want them to call down the layers until I reach the db layer. At that point I would call the Membership methods to, say, login, check the username,etc. Howe...

How to migrate from custom Membership Provider to SqlMembershipProvider?

I'm currently using a very basic custom implementation of MembershipProvider in an ASP.NET web application. As my requirements for membership increase, it seems to make a lot of sense to use an existing, full featured, and well tested implementation like SqlMembershipProvider. I've figured out how to use the aspnet_Memebership stored pro...

Looking for MemberShip.GetAllUsers(startDate,endDate) functionality.

I'm creating a user approval interface leveraging the .Net Membership class. I have a page that does a Membership.GetAllUsers(), and I spit the results to a datagrid. I filter them by MembershipUser.IsApproved. My Issue is due to slowness I'm hitting while I GetAllUsers(). Since I don't need to pull down all of the users, but rather...

ASP.NET Persist POST data through login redirect

I have a site (SiteA) using ASP.NET membership. One thing that it must do is allow the end user at a separate site (SiteB) to launch a new browser window to a page at SiteA with POST data attached to prefill the page. If the user is logged into SiteA, then the launch from SiteB works and the page is prefilled. However, if the user is ...

How should I implement "Forgot your password" in ASP.NET MVC?

I'm using the standard SqlMembershipProvider that comes with the ASP.NET MVC demo. I'm interested in implementing a "Forgot your password" link on my site. What is the correct way for this feature to be implemented? Should I overwrite the password with a temporary one and email it to their registered email? ...

Why is ASP.NET accepting externally created session identifiers?

I have an ASP.NET 3.5 Web Site using the standard SQL Membership Provider. The application has to pass the IBM Rational AppScan before we can push to production. I am getting the error: Severity: High Test Type: Application Vulnerable URL: http://mytestserver/myapp/login.aspx Remediation Tasks: Do not accept externally created session ...