forms-authentication

ASP.NET: Authenticating user in code.

I'm playing around with authentication and authorization to prepare for some task. I've created two pages: Login.aspx and Default.aspx. In config file i've set authentication to forms and denied unauthenticated users access: <authentication mode="Forms"> <forms name="aaa" defaultUrl="~/Login.aspx" /> </authentication> <a...

HttpHandlers and Forms Authentication

My colleague is using an HttpHandler for compression of javascript and CSS (YUI Compressor for .NET) on an ASP.NET Web Application. He also set up Forms Authentication. The Forms Authentication appears to be blocking the CSS and JavaScript (served by the HttpHandler) from downloading on the login page. Is there a way to exclude this Ht...

Hitting a ADO.NET Data Services from WPF client, forms authentication

Hey all! There are a number of questiosn on StackOverflow that ALMOST hit this topic head on, but they are either for other technologies, reference obsolets information or don;t supply an answer that I can suss out. So pardon the almost duplication :) I have a working ADO.NET Data Service, and a WPF client that hits it. Now that they a...

SqlMembershipProvider giving different results on dev machine and server(?)

I'm trying to deploy an asp.net application. I really suck at it. Anyway, parts of it are protected using Forms Authentication using SqlMembershipProvider. I've configured the membership provider to use a SQL server instance via Web.Config. I can use the "ASP.NET Configuration" tool via Visual Studio to create new users. That seem...

Asp.net MVC authentication ticked without create auth cookie

I'm authenticating a user in my application with the method "FormsAuthentication.SetAuthCookie" method, but when I close the browser and reopen it, it is still authenticated, but the session is over already, then my app crashes because it has necessary data on the session to generate the menus. What I want to do is the following: Create...

SharePoint login page doesn't seem to load styles from /_layouts, throws error "value cannot be null"

...

form Authentication

Hello, I need to ask: I use Forms Authentication in my ASP.NET application. but when I publish the web after the user login, if he didn't signout he just close the browser and after that he browse it again it will redirect him to default page. How can I enforce redirecting him to the login page even if he didn't sign out?...

Dynamic Forms Authentication Timeout?

I am using ASP.NET Forms Authentication and currently setting the timeout value in Web.config. Is there a way to set this timeout from code instead? I would like to have different timeouts for different users. ...

SSRS 2008: ReportViewer does not have access rights to local Report Server

Hi, I'm trying to set up SSRS 2008 on my desktop machine for development purposes. The following is working fine: Report deployment on local server Previewing the report in BIDS Access to htpp://localhost/Reports panel But when I point the ASP.NET Reportviewer to the Report URL, I get the following error: The permissions granted...

Forms Authentication - Storing and Retrieving User Names

Using Forms Authentication, I am storing a cookie for each user if they mark Remember Me during login, using the following piece of code in the Login1_LoggedIn event. if (rememberMe.Checked) FormsAuthentication.SetAuthCookie(Login1.UserName, true); When the user arrives on my page with a cookie, I need to get his/her user name so I ca...

SharePoint custom logon form doesn't do anything on submit

I feel sure I'm missing something simple.. I had this working on a different server but now that I've migrated to a different server it doesn't seem to work. I have a WSS 3.0 site with forms-based authentication enabled and a custom logon form. When you go to the logon form and enter your username and password and click submit, it just s...

How can I pass logged on user details from ASP.Net web app to WFC service?

I have 2 web applications: one is an ASP.Net web app and the other is an ASP.Net WCF web services application. I want to the web app to the WFC web app's consume services. Eventually, these 2 apps will be communicating over a firewall. I want the user to log on to the client web app using forms authentication, authenticated by the wcf s...

Forms authentication List ApplicationNames

Setup: Multiple web servers with synchronized forms authentication. Multiple asp.net Applications running on these severs. What's working: SSO across all servers Authorization using asp.net roles What's not so good: All roles are "global" - I have "admin-app1" and "admin-app2" etc. Question: I know this can be solved by defi...

Forms Authentication, Change the currently authenticated ad user form code.

in ASP.Net, forms authentication, For Testing purposes, we need to enable our QA users who are currently logged into our app to be able to enter an AD ad username, and get logged in as that user. I thought that FormsAuthentication.SignOut(); FormsAuthentication.SetAuthCookie(userName, false); Would do the trick, but it does not. can ...

FormsAuthentication.RedirectFromLoginPage – really strange and inconsistent results

Hi, I’m trying to figure out whether FormsAuthentication.RedirectFromLoginPage (called inside method M()), performs redirection the moment method M finishes its execution, or whether page first completes its lifecycle and only then redirects. But I can't figure it out due to inconsistent behavior: protected void Page_Load(object...

Does CreateUserWizard call FormsAuthentication.SetAuthCookie?

Hi 1) I assume that when CreateUserWizard.LoginCreatedUser is set to true, the control calls FormsAuthentication.SetAuthCookie, which in turn creates an authentication ticket (I’m pretty certain that the control doesn’t call FormsAuthentication.RedirectfromLoginPage ) 2) From MSDN: When the LoginCreatedUser property is set to t...

IE/IIS integrated authentication problem

In IIS I've got: http://myserver/myapplication http://myserver/reports The reports app is reporting services in fact which uses windows authentication. myapplication is an asp.net application that uses forms authentication. The server is outside the company domain. If I access the reports first and type in the user and passwo...

How should I handle Authorization/Authentication in my Asp.net MVC app?

I am creating an Asp.net MVC application and I'm currently using the built in Authentication/Authorization code that comes with the sample MVC app. For the most part this is working ok and I kinda understand what's going on. What's concerning me though, is that now I kind of have my users stored in two different tables across two datab...

ASP.NET, login control, authentication, https/ssl, cookie path

I have a login control which authenticates (form authentication), but not using https/ssl. I figured out that it was the cookie path. I know it's case sensitive, so I set it to /newYork, which is exactly the way the directory name is cased (OS is Vista), but the authentication didn't work under https. I set it to /newyork and the auth...

ASP.Net - Forms Authentication setup for specific Security concerns

I need to setup an Asp.Net application w/ forms authentication so that it meets the following criteria: User should log out after 15 minutes of inactivity User should log out after 24 hours, regardless of activity I believe the first can be accomplished like so in the web.config: <authentication mode="Forms"> <forms loginUrl="Logi...