Menu
Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
ASP .Net
ASP .Net Security
Create Forms Authentication Ticket with MachineKeys
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Chuck, post: 4285734"] Selenium is a tool that allows you to automatically test web application from the UI. You can write selenium test scripts in a number of languages. I'm using C# to write the scripts/methods. Once the scripts are coded in C#, I replay them using nUnit. The nUnit tests start the Selenium components, test the webpages and give me the results. Since you are testing in a C# dll, the none of the Request or Response objects are available to you. So you can't do something like examine any of the .Net objects in there. However, Selenium does let you inject cookies into the browser. So if my test code could create a valid FormsAuthenication cookie, I could place it in the browser. This has proven problematic because the System.Web.Security class does an initialization that expects to find the web.config. So, if you try to encrypt an authentication ticket when the HttpContext is not available, such as in a standalone dll, it will fail. Lots of static variables haven't been initialized with the web.config values (e.g. the MachineKey) [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
ASP .Net Security
Create Forms Authentication Ticket with MachineKeys
Top