OpenAuthManager.VerifyAuthentication Method
.NET Framework 4.5
Verify the provider result on the current request.
Namespace: Microsoft.AspNet.Membership.OpenAuth
Assembly: Microsoft.AspNet.Membership.OpenAuth (in Microsoft.AspNet.Membership.OpenAuth.dll)
Syntax
'Declaration
Public Overridable Function VerifyAuthentication ( _
context As HttpContextBase, _
returnUrl As String _
) As AuthenticationResult
'Usage
Dim instance As OpenAuthManager
Dim context As HttpContextBase
Dim returnUrl As String
Dim returnValue As AuthenticationResult
returnValue = instance.VerifyAuthentication(context, _
returnUrl)
public virtual AuthenticationResult VerifyAuthentication(
HttpContextBase context,
string returnUrl
)
public:
virtual AuthenticationResult^ VerifyAuthentication(
HttpContextBase^ context,
String^ returnUrl
)
abstract VerifyAuthentication :
context:HttpContextBase *
returnUrl:string -> AuthenticationResult
override VerifyAuthentication :
context:HttpContextBase *
returnUrl:string -> AuthenticationResult
public function VerifyAuthentication(
context : HttpContextBase,
returnUrl : String
) : AuthenticationResult
Parameters
- context
Type: System.Web.HttpContextBase
The current HTTP context.
- returnUrl
Type: System.String
The return URL to be passed to the external authentication provider. This must match the return URL that was passed to the call of RequestAuthentication.
Return Value
Type: AuthenticationResult