hi,
i have the basic mvc project with the login screen set up. i created a new page, but when i run the site i can just paste the URL of the new view and navigate there and it doesn't redirect me the login screen.
what's the best way to lock down the rest of my site once i am using forms auth?
thanks
...
Hi,
I'm using forms authentication to log in into windows sharepoint servevices 3.0 service.
I need to elevate during anonymous access, rights to add record to sharepoint portal list.
I found clue in msdn:
http://msdn.microsoft.com/en-us/library/bb466220%28classic%29.aspx
But it doesn't work for me. :( It's still calling for user logi...
Does anyone know if there is a valid roleManager I can apply to ASPDotNetStorefront to get the site working?
We have a website that has an ASP.Net storefront served in a virtual folder off the root.
ourwebsite.com
ourwebsite.com/shop
Everything has been workign fine until we put the groundwork in place for forms authentication in the...
I have an (ASP.NET 3.5) intranet application which has been designed to use forms authentication (along with the default aspnet membership system). I also store additional information about users in another table which shares its primary key with the aspnet_users table.
For users who are part of our domain I store their domain account ...
I have an ASP.NET webapp (on Win 2k3) that uses forms authentication. For some reason, when a user logs in with IE, the site either freezes or throws an error (such as "Could not load file or assembly 'System.Web.DataVisualization, Version=3.5.0.0").
This doesn't make any sense because I can login with Firefox and Chrome successfully.
...
Ive made a interface with the following methods:
Public Interface IAuthenticationService
Sub SetAuthentication(ByVal username As String)
Sub Logout()
Function IsLoggedIn() As Boolean
End Interface
My implementation looks like:
Public Class Authentication
Implements IAuthenticationService
Public Sub Logout() Implem...
Hi,
I've seen several similar scenarios explained here but not my particular one. I wonder if someone could tell me which direction to go in?
I am developing two (and more later) MVC2 apps. There will also be another (thicker) client later on (WPF or Silverlight, TBD).
These all need to share the same authentication. For the MVC2 apps...
I have a problem with membership authentication. I have two websites, website1 and website2, and both of them uses forms authentication with SQL membership provider (SQLEXPRESS). I have two scenarios:
Case 1:
don't publish the website1 and try to login website1 with user1 -->Works ok
don't publish the website2 and try to login --> it d...
How do I migrate users from a existing users table to Forms Authentication?
There seems to be three options:
T-SQL - Iterate through the existing users table and insert into Forms Authentication tables using the stored procedure aspnet_Membership_CreateUser
Code - create a utility that will iterate through the existing users table and...
Hi,
I'm building an application for which I want to use roles managment applicable to individual pages. That is, restrict users' access to pages based on their roles. These roles are stored into the database, as the users. This is the PHP way of doing things and I'm trying to port this to ASP.NET
What I need is that someone can point me...
Hi,
Is there any way to get form code level security question answer in .net SQL Membership Provider? I'm struggling with allowing user to have change password reset and change features using the same provider.
Do anybody knows how to do that? Or if I would like to use question and answer feature it means that I automatically have to us...
is it a good idea to keep the user's role together with his name, like when you do setAuthCookie you do:
formsAuthSrv.SetAuthCookie(strUser+strRole);
and you can do your own roles provider like this:
public class MyRoleProvider : RoleProvider
{
public override string[] GetRolesForUser(string username)
{
...
Hi all,
I have an ASP.NET website that uses Forms authentication
<authentication mode="Forms">
<forms name="NewsCoreAuthentication" loginUrl="~/Default.aspx" defaultUrl="~/Default.aspx" protection="Validation" timeout="300" domain="someRootDomain.com" />
</authentication>
I need to identify if user is authenticated on...
EDIT - Rewrote my original question to give a bit more information
Background info
At my work I'm working on a ASP.Net web application for our customers. In our implementation we use technologies like Forms authentication with MembershipProviders and RoleProviders. All went well until I ran into some difficulties with configuring the ...
Hello everyone,
I am using SharePoint Server 2007 Enterprise with Windows Server 2008 Enterprise. I have deployed a collaboration portal template based SharePoint site collection. I am developing using ASP.Net web application using VSTS 2008 + C# + .Net 3.5 + ASP.Net + SharePoint Server 2007 SDK. I am devloping a custom Forms authentica...
I have made a web application that uses master page for Login & Logout operation. For that purpose, I have used LoginStatus control in master page provided by ASP.NET. However, LoginStatus control needs to be used inside <form> tag as
<form id="form1" runat="server">
<asp:LoginStatus ID="LoginStatus1" runat="server" />
</form>
...
I am going to use forms authentication but I want to be able to link the asp.net users to some tables in the db for example
If I have a class and students (as roles) I'll have a class students table.
I'm planning to put in a Users table containing a simple int userid and ASP.NET username in there and put userid wherever I want to link ...
Hi,
I have an ASP MVC-application that uses a SQL server express for and Forms authentication. The server im using does not have enough memory to run SQL Server express stable and I was thinking about migrating to SQLite instead.
Is it possible to just migrate the existing aspnetdb-database from SQL Server to SQLite so that all my user...
hi,
I have reviewed some of the similar questions on this site but could not find one with an answer appropriate for my situation.
I am using asp.net mvc, and it is communicating securely with stateless wcf services. for each service call, i need to pass in the username and a few other ints for identification purposes. - not password...
Could anyone please tell me, how can I handle the j_security_check servlet in Form based authentication in java?
Do I have to map the servlet class with j_security_check name in web-xml file like:
<servlet>
<servlet-name>Anyname</servlet-name>
<servlet-class>Anyclass</servlet-name>
</servlet>
<servlet-mapping>
<servlet-name>Anyname</s...