AuthenticationManagerExtensions.GetExternalLoginInfo Method (IAuthenticationManager, String, String)
Extracts login info out of an external identity
Namespace: Microsoft.Owin.Security
Assembly: Microsoft.AspNet.Identity.Owin (in Microsoft.AspNet.Identity.Owin.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function GetExternalLoginInfo ( _
manager As IAuthenticationManager, _
xsrfKey As String, _
expectedValue As String _
) As ExternalLoginInfo
'Usage
Dim manager As IAuthenticationManager
Dim xsrfKey As String
Dim expectedValue As String
Dim returnValue As ExternalLoginInfo
returnValue = manager.GetExternalLoginInfo(xsrfKey, _
expectedValue)
public static ExternalLoginInfo GetExternalLoginInfo(
this IAuthenticationManager manager,
string xsrfKey,
string expectedValue
)
[ExtensionAttribute]
public:
static ExternalLoginInfo^ GetExternalLoginInfo(
IAuthenticationManager^ manager,
String^ xsrfKey,
String^ expectedValue
)
static member GetExternalLoginInfo :
manager:IAuthenticationManager *
xsrfKey:string *
expectedValue:string -> ExternalLoginInfo
public static function GetExternalLoginInfo(
manager : IAuthenticationManager,
xsrfKey : String,
expectedValue : String
) : ExternalLoginInfo
Parameters
- manager
Type: Microsoft.Owin.Security.IAuthenticationManager
- xsrfKey
Type: System.String
key that will be used to find the userId to verify
- expectedValue
Type: System.String
the value expected to be found using the xsrfKey in the AuthenticationResult.Properties dictionary
Return Value
Type: Microsoft.AspNet.Identity.Owin.ExternalLoginInfo
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IAuthenticationManager. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.111) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.111).