C# - Set Up STS But Keep Formsauthentication In Webapp?

Mar 8, 2012

I'm enabling an windows identity foundation on an existing webapp. I want to mess as little as possile with the existing code so I would like to the login page which uses formsauthentication left in the application and I just connect with the STS if the user enters the application via a specific page e.g "im_comming_from_some_other_site.aspx".

[Code]...

(Of course some code would be needed when to determine what to do when the authentication is timed out; either go to local login page or goto STS-login page)I know this may seem like a bad design, not going all the way with STS, but I need to implement this ASAP and I want to keep the original site as untouched as possible.

View 1 Replies


ADVERTISEMENT

FormsAuthentication Is Not Declared?

May 6, 2011

I'm using VB.NET 2010.

One of my lines of code is:

Encoding.UTF8.GetBytes(FormsAuthentication.HashPasswordForStoringInConfigFile(TextBox_AccessCode.Text, "MD5"))

But FormsAuthentication is underlined and the error reads 'FormsAuthentication' is not declared. I've ensured that the System.Web.Security namespace is imported, yet I still receive the message.

View 2 Replies

Test FormsAuthentication On Authenticationservice Class?

Feb 15, 2010

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() Implements IAuthenticationService.Logout

[code]....

how can I test my FormsAuthentication on my authenticationservice class. Im using Xunit/Moq for writting my tests. When I Call my action I get an "System.NullReferenceException : Object reference not set to an instance of an object" which tells me that FormsAuthentication object is Null and I therefore can not set my authentication ticket.

View 1 Replies

Retrieving Cookies - HttpCookie(FormsAuthentication.FormsCookieName)

Mar 11, 2010

I' ve my cookie to Dim authCookie As New HttpCookie(FormsAuthentication.FormsCookieName) I've just started learning about cookies not long ago, can I retrieve the cookie that I've set by using the code below?

[Code]...

View 1 Replies

Alternative To Visual Studio For Editing WebApp?

Dec 7, 2011

So I've got a website thats been published to a web server using Visual Studio, compiled and all. And now i'd like to edit this website. I understand Visual Studio does some compiling and building include files before it is website ready. Is there any way to accomplish this outside of Visual Studio? I have long since given up my Windows setup with Visual Studio and now I really need to edit some of this code. Editing the source seems like no problem, but there are certain other things I'm having trouble with without Visual Studio (adding new public parent classes, for example). What are my options?

View 1 Replies

Silverlight Child Window Hangs The Webapp At Second Run?

Feb 10, 2011

Following is the code I used to call the child window:

Dim c As New New_Contact()
c.Title = "New Contact Details"
AddHandler c.Closed, AddressOf NewContactClosed

[code].....

View 2 Replies

Make A Simple Webapp For Sending Mail Or Wall?

Jan 11, 2012

I want to make myself a simple webapp using vb.net.I am trying to make a desktop app by which users can login and send mail or post wall(facebook) with out going into the browser. I have created the forms and all other thing using this tutorial( [URL]).This original code is working properly.

[Code]...

View 1 Replies

Prevent An ASP.Net Webapp From Clearing Out Page Variables On VB Side?

Jun 17, 2010

I have a webapp in ASP.Net with a VB codebehind. I need a List variable I have declared to persist as long as the person is on the page, but currently any time a control posts back to the code, everything is cleared out. Can it be done with a Session variable? Those seem to me to be limited to base types, but I could be wrong.

View 4 Replies

Connect Webapp VB/LINQ To A MySQL Database Server On A Linux?

Jul 7, 2009

I have a programmer who is using VB and LINQ; and I have a MySQL database that is running on a linux server. My programmer tells me that:he cannot connect to the MySQL database via LINQ if he was able to connect then it would require all sorts of rewriting I don't know anything about LINQ but I thought it was an ORM. As such, any DB server that is supported should work just fine? Right? OK, so maybe it's not an ORM... maybe it should generically connect to ODBC and render similar results?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved