AuthenticationManagerExtensions.GetExternalIdentityAsync Method
Asynchronously returns the identity associated with the default external authentication type.
Namespace: Microsoft.Owin.Security
Assembly: Microsoft.AspNet.Identity.Owin (in Microsoft.AspNet.Identity.Owin.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function GetExternalIdentityAsync ( _
manager As IAuthenticationManager, _
externalAuthenticationType As String _
) As Task(Of ClaimsIdentity)
'Usage
Dim manager As IAuthenticationManager
Dim externalAuthenticationType As String
Dim returnValue As Task(Of ClaimsIdentity)
returnValue = manager.GetExternalIdentityAsync(externalAuthenticationType)
public static Task<ClaimsIdentity> GetExternalIdentityAsync(
this IAuthenticationManager manager,
string externalAuthenticationType
)
[ExtensionAttribute]
public:
static Task<ClaimsIdentity^>^ GetExternalIdentityAsync(
IAuthenticationManager^ manager,
String^ externalAuthenticationType
)
static member GetExternalIdentityAsync :
manager:IAuthenticationManager *
externalAuthenticationType:string -> Task<ClaimsIdentity>
public static function GetExternalIdentityAsync(
manager : IAuthenticationManager,
externalAuthenticationType : String
) : Task<ClaimsIdentity>
Parameters
- manager
Type: Microsoft.Owin.Security.IAuthenticationManager
The authentication manager.
- externalAuthenticationType
Type: System.String
The external authentication type.
Return Value
Type: System.Threading.Tasks.Task<ClaimsIdentity>
The task that completes the operation.
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.108) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.108).
See Also
Reference
AuthenticationManagerExtensions Class
Microsoft.Owin.Security Namespace