OAuthAuthorizationServerProvider.OnValidateClientRedirectUri Property

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
Public Property OnValidateClientRedirectUri As Func(Of OAuthValidateClientRedirectUriContext, Task)
    Get 
    Set
'Usage
Dim instance As OAuthAuthorizationServerProvider 
Dim value As Func(Of OAuthValidateClientRedirectUriContext, Task)

value = instance.OnValidateClientRedirectUri

instance.OnValidateClientRedirectUri = value
public Func<OAuthValidateClientRedirectUriContext, Task> OnValidateClientRedirectUri { get; set; }
public:
property Func<OAuthValidateClientRedirectUriContext^, Task^>^ OnValidateClientRedirectUri {
    Func<OAuthValidateClientRedirectUriContext^, Task^>^ get ();
    void set (Func<OAuthValidateClientRedirectUriContext^, Task^>^ value);
}
member OnValidateClientRedirectUri : Func<OAuthValidateClientRedirectUriContext, Task> with get, set
function get OnValidateClientRedirectUri () : Func<OAuthValidateClientRedirectUriContext, Task>
function set OnValidateClientRedirectUri (value : Func<OAuthValidateClientRedirectUriContext, Task>)

Property Value

Type: System.Func<OAuthValidateClientRedirectUriContext, Task>

See Also

Reference

OAuthAuthorizationServerProvider Class

Microsoft.Owin.Security.OAuth Namespace