Share via


LSAuthenticationObject Class

 

Allows web forms (like clientlogon.aspx) to interact with the Federation Service or Federation Service Proxy on which they are running.

Namespace:   System.Web.Security.SingleSignOn
Assembly:  System.Web.Security.SingleSignOn (in System.Web.Security.SingleSignOn.dll)

Inheritance Hierarchy

System.Object
  System.Web.Security.SingleSignOn.LSAuthenticationObject

Syntax

public class LSAuthenticationObject
public ref class LSAuthenticationObject 
type LSAuthenticationObject = class end
Public Class LSAuthenticationObject

Properties

Name Description
System_CAPS_pubpropertySystem_CAPS_static Current

Gets the LSAuthenticationObject for the current request, if applicable. The property will return null if an appropriate LSAuthenticationObject cannot be located.

System_CAPS_pubproperty FormContext

Gets information about the type of action that is required of the Web form that is being invoked and queries for any additional data needed to perform that action.

Methods

Name Description
System_CAPS_pubmethodSystem_CAPS_static BeginLogonClient(ClientCredentialInfo, AsyncCallback, Object)

Logs on a client asynchronously. This method should be called by an asynchronous logon form when it has collected credentials, generally from the Begin asynchronous handler for OnPreRenderComplete.

System_CAPS_pubmethodSystem_CAPS_static BeginLogonClient(WindowsIdentity, AsyncCallback, Object)

Logs on a client asynchronously. This method should be called by an asynchronous logon form when it has collected credentials, generally from the Begin asynchronous handler for OnPreRenderComplete.

System_CAPS_pubmethodSystem_CAPS_static EndLogonClient(IAsyncResult)

Retrieves the result of logging on a client asynchronously. This method should be called by an asynchronous logon form when it has collected credentials, generally from the End asynchronous handler for OnPreRenderComplete.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod InitiateBasicAuthentication()

Initiates basic authentication. This method should be called by the logon form when it wishes to perform basic authentication. Typically this is done when username/password credentials are desired and IsClientNonInteractive is true.

System_CAPS_pubmethod IssueResourceToken()

Issues a resource token. This method should be called by the policy enforcement form to indicate that the policy has been enforced and the Federation Service should issue a token.

System_CAPS_pubmethod LogonClient(ClientCredentialInfo)

Logs on a client. This method should be called by the logon form when it has collected credentials.

System_CAPS_pubmethod LogonClient(WindowsIdentity)

Logs on a client. This method should be called by the logon form when it has collected credentials.

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod RedirectToAccountFederationPartner(String)

Redirects the client to an account partner for authentication. This method should be called by the discovery form when a user's home realm has been determined.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Remarks

The programming model for an AD FS web form should be to call LSAuthenticationObject. Current to get the LSAuthenticationObject for the current request, then to check the FormContext property to see what action is being performed and retrieve any data needed to perform that action.

Thread Safety

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

System.Web.Security.SingleSignOn Namespace

Return to top