Hello,
I'm building a multi-tenant app with ASP.NET MVC and have a problem with validating users.
Situation
I have:
-a table with User(ID, Name, FirstName, Email)
This table is made, so that a users who is registered in two tenants doesn't need to login again.
-a table with Tentantuser(ID, TenantID, UserID (FK to table User), User...
Is it possible to implement a "forgot password" using ASP.Net membership provider?
Any sample link is appreciated.
Thanks
...
I need to add a Company Name field that is associated with the logins. Later on I need to incorporate that into my existing admin screens for reporting.
I just can't figure out how to get this done. I have tried the add a column to the Membership table and modifying the stored procs but the column will not show up.
Here is the code of ...
I created custom membership provider for asp.net mvc applications and it all works fine except one thing:
when logged in to my application, I am also logged in to all other asp.net mvc applications that I run using Visual Studio. I suppose this data is being pulled from cache because when I logout and try to login again in other applicat...
I've got an Asp.net MVC app and before being able to go live, the IT have requested for us to comply with their password policy. The flexibility of AspnetSqlMembershipProvider doesn’t quite satisfy the requirement.
The password strength and length rules are as follows:
one lowercase
one Uppercase
one number and or special character
8...
The GetRolesForUser() method in the RoleProvider takes the user login name and returns the list of roles for that user. But in my application this is not enough, I need a few more pieces of information to be able to get the user's roles.
How can I get this extra information into the method?
I have it in the Session, but I found out tha...
Hi,
Is it possible to disable to the role caching when using the ClientRoleProvider?
The application in question is a console application...
I've tried setting 'cacheRolesInCookie' to false (I know it's a console app, but I was running low on ideas!) - but it had no affect.
...
I have a production ASP.Net MVC application that has been using the membership service. It has worked fine, up until today. Nothing has changed on the server, but I now have this error:
System.Configuration.Provider.ProviderException:
The 'System.Web.Security.SqlMembershipProvider' requires a database schema compatible with schema ver...
Hi,
I'm wondering whether it's possible to use built in ASP.NET application services (aspnet_user, aspnet_role etc table) without specifying a connection string in a web.config.
At the moment I store connection strings externally, but I keep finding hard-coded connection strings all over the web.config xml, various providers etc. It's...
I have an existing ASP.NET application with lots of users and a large database. Now I want to have it in MVC 2. I do not want to migrate, I do it more or less from scratch. The database I want to keep and not touch too much.
I already have my database tables and I also want to keep my LINQ to SQL-Layer. I didn't use a MembershipProvider...
Hello,
I have a SQL script that creates users in in my database.
It uses the .Net membership stored procs.
At this point it works fine.
The only issue is that the passwords are saved clear text. What should I change here to they are salted/encrypted (Not sure what term to use here)
GO
DECLARE @return_value int,
@UserId uniqueident...
I have a webservice that's behind form's authentication. The site that hosts the service also serves as a site that requires a user to log in via the login page.
I have a second site that needs to be able to access the service that the first site hosts. However, when attempting to access the service, it fails because the service requir...
I have two level authentification, first the user enters their nt/password and it is validated by LDAP and afterward I have a custom role provider that make sure the user has access to said page.
That being said, in my web.config I have:
<authentication mode="Forms">
<forms loginUrl="~/Account.mvc/LogOn" timeout="2880"/>
</authentica...
Hi Guys,
I have developed an application in ASP.NET 3.5 which utilizes the Membership and Roles Providers and Forms Authentication to manage user access and profiles.
There are various area's of this application that are only to be used by an admin users whom login using their email and password and the rest of the users log in using t...
Okay,...first the facts.
I'm working on an ASP.Net project which validates it's users across a WCF service. I have a CutomMembershipUser class in a shared assembly which inherits from MembershipUser since I'm using a custom membership provider. All this cannot change because it's out of my remit.
Here's roughly what's happening. I've...
Hi,
Is there a way to disable ASP.Net membership provider from using a web.config?
Currently it stores a connection string and a sqlMembershipProvider in a web.config which is not where i'd like it to be.
Thank you
...
Hi,
I'm working on a web app and I don't want to store the connection strings in the web or app config because of the requirements.
So far I have found the only way to achieve this - to override the membership and the role providers.
I also don't fully understand why do I also have to override a role provider when all authenticatio...
We've got a Identity Lifecycle Management 2007 Feature Pack 1 server setup that is syncing our student email accounts with live@edu. We want to allow the students to change their password via the web. When I use the default "ChangePassword" method inside of the ActiveDirectoryMembershipProvider, it does not trigger the password event t...
I cache information about the currently logged in user in the session. This info lazy loads whenever a CurrentUser property on my global application class is used. It does this by calling GetUser() on my custom implementation of MembershipProvider, which either loads the user up from the session, or loads the user from the DB and throws ...
I have messed up my asp.net membership authentication in SL4 Business applications by upgrading my development computer from sqlexpress to sql-standard.
Here's how I did it:
Installed win 7/64 bit, installed VS2010, installed Ria services on a new development computer.
Upgraded SQL express to SQL standard (I invited problems by doing...