public override Task ValidateClientRedirectUri(OAuthValidateClientRedirectUriContext context) { if (context.ClientId == clientId && context.RedirectUri == redirectUri) { context.Validated(clientRedirectUri); } return Task.FromResult(0); }
public override Task ValidateClientRedirectUri(OAuthValidateClientRedirectUriContext context) { if (context.ClientId == clientId) { context.Validated(); } return Task.FromResult(0); }In this example, the ValidateClientRedirectUri method is overridden to only validate the client ID and allow any redirect URI to be used. Overall, this class is used to validate the client redirect URI during the OAuth authentication process and is part of the Owin middleware library.