Share via


SpsSsoProvider.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
Public Function GetCurrentUser As String
'Usage
Dim instance As SpsSsoProvider
Dim returnValue As String

returnValue = instance.GetCurrentUser()
public 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).

Implements

ISsoProvider.GetCurrentUser()

See Also

Reference

SpsSsoProvider Class

SpsSsoProvider Members

Microsoft.SharePoint.Portal.SingleSignon Namespace