AuthenticationHandler<TOptions>.HandleRequestAsync Method


Called once by common code after initialization. If an authentication middleware responds directly to specifically known paths it must override this virtual, compare the request path to it's known paths, provide any response information as appropriate, and true to stop further processing.

 virtual System::Threading::Tasks::Task<bool> ^ HandleRequestAsync();
public virtual System.Threading.Tasks.Task<bool> HandleRequestAsync ();
abstract member HandleRequestAsync : unit -> System.Threading.Tasks.Task<bool>
override this.HandleRequestAsync : unit -> System.Threading.Tasks.Task<bool>
Public Overridable Function HandleRequestAsync () As Task(Of Boolean)



Returning false will cause the common code to call the next middleware in line. Returning true will cause the common code to begin the async completion journey without calling the rest of the middleware pipeline.

Applies to