EIdentityLoginAuthenticate Event Content Studio 5.7 SDK
Content Studio Web Content Management System

[This is preliminary documentation and is subject to change.]

Occurs when a user is authenticated, before the forms login cookie is queued to send to the browser in the next response.

Namespace: ContentStudio.Site.Security.EIdentity
Assembly: ContentStudio.Site.Security.EIdentity (in ContentStudio.Site.Security.EIdentity.dll) Version: 5.6.5014.0 (5.6.5014.0)
Syntax

public event EventHandler<EIdentityAuthenticateEventArgs> Authenticate

Value

Type: SystemEventHandlerEIdentityAuthenticateEventArgs
Examples

The following example shows how to read personal information about the user just signed in and write it to the current web page. To read the user's personal number use the CustomUserId property of the data supplied in the EIdentityAuthenticateEventArgs argument.
C#
protected void OnAuthenticate(object sender,  EIdentityAuthenticateEventArgs e)
{
   var data = e.Data;
   Response.Write(String.Format("Name='{0}' AuthifyUserId='{1} Email='{2}' Token='{3}'", 
                                data.Name, data.AuthifyUserId, data.Email, data.Token));
}
See Also

Reference