Share via


IOAuthAuthorizationServerProvider.ValidateClientRedirectUri Method

Called to validate that the context.ClientId is a registered "client_id", and that the context.RedirectUri a "redirect_uri" registered for that client. This only occurs when processing the Authorize endpoint. The application MUST implement this call, and it MUST validate both of those factors before calling context.Validated. If the context.Validated method is called with a given redirectUri parameter, then IsValidated will only become true if the incoming redirect URI matches the given redirect URI. If context.Validated is not called the request will not proceed further.

Namespace:  Microsoft.Owin.Security.OAuth
Assembly:  Microsoft.Owin.Security.OAuth (in Microsoft.Owin.Security.OAuth.dll)

Syntax

'Declaration
Function ValidateClientRedirectUri ( _
    context As OAuthValidateClientRedirectUriContext _
) As Task
'Usage
Dim instance As IOAuthAuthorizationServerProvider 
Dim context As OAuthValidateClientRedirectUriContext 
Dim returnValue As Task 

returnValue = instance.ValidateClientRedirectUri(context)
Task ValidateClientRedirectUri(
    OAuthValidateClientRedirectUriContext context
)
Task^ ValidateClientRedirectUri(
    OAuthValidateClientRedirectUriContext^ context
)
abstract ValidateClientRedirectUri : 
        context:OAuthValidateClientRedirectUriContext -> Task
function ValidateClientRedirectUri(
    context : OAuthValidateClientRedirectUriContext
) : Task

Parameters

Return Value

Type: System.Threading.Tasks.Task
Task to enable asynchronous execution

See Also

Reference

IOAuthAuthorizationServerProvider Interface

Microsoft.Owin.Security.OAuth Namespace