ISsoProvider.GetCurrentUser Method

Gets the current user from the current HTTP request. If the request is authenticated with Windows authentication, this returns a UPN (user principal name).

Namespace:  Microsoft.SharePoint.Portal.SingleSignon
Assembly:  Microsoft.SharePoint.Portal.SingleSignon (in Microsoft.SharePoint.Portal.SingleSignon.dll)

Syntax

'Declaration
Function GetCurrentUser As String
'Usage
Dim instance As ISsoProvider
Dim returnValue As String

returnValue = instance.GetCurrentUser()
string GetCurrentUser()

Return Value

Type: System.String
The current user from the current HTTP request. If the request is authenticated with Windows authentication, this returns a UPN (user principal name).

Examples

For an example, see Walkthrough: Implementing a Pluggable SSO Provider.

See Also

Reference

ISsoProvider Interface

ISsoProvider Members

Microsoft.SharePoint.Portal.SingleSignon Namespace