fcSDK Documentation
CreateSession(String,ClarifyLoginType) Method

The user or login name of the user
The type of login to perform using the specified userName.
Creates a new ClarifySession and performs a passwordless login for the specified user and ClarifyLoginType.
Syntax
'Declaration
 
Public Overloads Overridable Function CreateSession( _
   ByVal userName As String, _
   ByVal loginType As ClarifyLoginType _
) As ClarifySession
public virtual ClarifySession CreateSession( 
   string userName,
   ClarifyLoginType loginType
)

Parameters

userName
The user or login name of the user
loginType
The type of login to perform using the specified userName.

Return Value

ClarifySession logged in using the specified userName.
Remarks

This method will log in the session using the given username and no password.

WARNING: This method has potential security implications. If enabled, this functionality could allow users to log in as any user without knowledge of the password and perform any action on behalf of that user. This creates an audit trail problem because you cannot accurately trace which user performed which action.

IMPORTANT: First Choice has disabled this functionality by default. If you decide that you are willing to assume the risk of enabling this functionality, you must add an appSettings entry into your application configuration file with the key "fchoice.sessionPasswordRequired" with the value of "false".

The general use case for this method is if you're using your Clarify system to support another application that already provides authentication and authorization services. It is assumed that you have properly validated that the current user is authorized to log in and does not need to go through the Clarify authentication process and incur a performance delay.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Reference

ClarifyApplication Class
ClarifyApplication Members
Overload List

 

 


© 2010 Dovetail Software, Inc. - All rights reserved.
- Clarify, Amdocs, and related products and names are copyright and trademark of Amdocs, Inc.
- .NET, Visual Studio.NET, C#, Visual Basic and related products are trademark of Microsoft corporation.

Send comments on this topic.