Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.