AuthenticationHttpContextExtensions.ChallengeAsync Methode

Definition

Überlädt

ChallengeAsync(HttpContext)

Fordern Sie die aktuelle Anforderung mithilfe des Standardanforderungsschemas an. Eine Authentifizierungsanforderung kann ausgegeben werden, wenn ein nicht authentifizierter Benutzer einen Endpunkt anfordert, der eine Authentifizierung erfordert. Das Standardanforderungsschema kann mit DefaultChallengeSchemekonfiguriert werden.

ChallengeAsync(HttpContext, AuthenticationProperties)

Fordern Sie die aktuelle Anforderung mithilfe des Standardanforderungsschemas an. Eine Authentifizierungsanforderung kann ausgegeben werden, wenn ein nicht authentifizierter Benutzer einen Endpunkt anfordert, der eine Authentifizierung erfordert. Das Standardanforderungsschema kann mit DefaultChallengeSchemekonfiguriert werden.

ChallengeAsync(HttpContext, String)

Fordern Sie die aktuelle Anforderung mithilfe des angegebenen Schemas an. Eine Authentifizierungsanforderung kann ausgegeben werden, wenn ein nicht authentifizierter Benutzer einen Endpunkt anfordert, der eine Authentifizierung erfordert.

ChallengeAsync(HttpContext, String, AuthenticationProperties)

Fordern Sie die aktuelle Anforderung mithilfe des angegebenen Schemas an. Eine Authentifizierungsanforderung kann ausgegeben werden, wenn ein nicht authentifizierter Benutzer einen Endpunkt anfordert, der eine Authentifizierung erfordert.

ChallengeAsync(HttpContext)

Fordern Sie die aktuelle Anforderung mithilfe des Standardanforderungsschemas an. Eine Authentifizierungsanforderung kann ausgegeben werden, wenn ein nicht authentifizierter Benutzer einen Endpunkt anfordert, der eine Authentifizierung erfordert. Das Standardanforderungsschema kann mit DefaultChallengeSchemekonfiguriert werden.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task ^ ChallengeAsync(Microsoft::AspNetCore::Http::HttpContext ^ context);
public static System.Threading.Tasks.Task ChallengeAsync (this Microsoft.AspNetCore.Http.HttpContext context);
static member ChallengeAsync : Microsoft.AspNetCore.Http.HttpContext -> System.Threading.Tasks.Task
<Extension()>
Public Function ChallengeAsync (context As HttpContext) As Task

Parameter

context
HttpContext

Der HttpContext Kontext.

Gibt zurück

Die Aufgabe.

Gilt für:

ChallengeAsync(HttpContext, AuthenticationProperties)

Fordern Sie die aktuelle Anforderung mithilfe des Standardanforderungsschemas an. Eine Authentifizierungsanforderung kann ausgegeben werden, wenn ein nicht authentifizierter Benutzer einen Endpunkt anfordert, der eine Authentifizierung erfordert. Das Standardanforderungsschema kann mit DefaultChallengeSchemekonfiguriert werden.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task ^ ChallengeAsync(Microsoft::AspNetCore::Http::HttpContext ^ context, Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties);
public static System.Threading.Tasks.Task ChallengeAsync (this Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties);
public static System.Threading.Tasks.Task ChallengeAsync (this Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Authentication.AuthenticationProperties? properties);
static member ChallengeAsync : Microsoft.AspNetCore.Http.HttpContext * Microsoft.AspNetCore.Authentication.AuthenticationProperties -> System.Threading.Tasks.Task
<Extension()>
Public Function ChallengeAsync (context As HttpContext, properties As AuthenticationProperties) As Task

Parameter

context
HttpContext

Der HttpContext Kontext.

properties
AuthenticationProperties

Die AuthenticationProperties Eigenschaften.

Gibt zurück

Die Aufgabe.

Gilt für:

ChallengeAsync(HttpContext, String)

Fordern Sie die aktuelle Anforderung mithilfe des angegebenen Schemas an. Eine Authentifizierungsanforderung kann ausgegeben werden, wenn ein nicht authentifizierter Benutzer einen Endpunkt anfordert, der eine Authentifizierung erfordert.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task ^ ChallengeAsync(Microsoft::AspNetCore::Http::HttpContext ^ context, System::String ^ scheme);
public static System.Threading.Tasks.Task ChallengeAsync (this Microsoft.AspNetCore.Http.HttpContext context, string scheme);
public static System.Threading.Tasks.Task ChallengeAsync (this Microsoft.AspNetCore.Http.HttpContext context, string? scheme);
static member ChallengeAsync : Microsoft.AspNetCore.Http.HttpContext * string -> System.Threading.Tasks.Task
<Extension()>
Public Function ChallengeAsync (context As HttpContext, scheme As String) As Task

Parameter

context
HttpContext

Der HttpContext Kontext.

scheme
String

Der Name des Authentifizierungsschemas.

Gibt zurück

Das Ergebnis.

Gilt für:

ChallengeAsync(HttpContext, String, AuthenticationProperties)

Fordern Sie die aktuelle Anforderung mithilfe des angegebenen Schemas an. Eine Authentifizierungsanforderung kann ausgegeben werden, wenn ein nicht authentifizierter Benutzer einen Endpunkt anfordert, der eine Authentifizierung erfordert.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task ^ ChallengeAsync(Microsoft::AspNetCore::Http::HttpContext ^ context, System::String ^ scheme, Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties);
public static System.Threading.Tasks.Task ChallengeAsync (this Microsoft.AspNetCore.Http.HttpContext context, string scheme, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties);
public static System.Threading.Tasks.Task ChallengeAsync (this Microsoft.AspNetCore.Http.HttpContext context, string? scheme, Microsoft.AspNetCore.Authentication.AuthenticationProperties? properties);
static member ChallengeAsync : Microsoft.AspNetCore.Http.HttpContext * string * Microsoft.AspNetCore.Authentication.AuthenticationProperties -> System.Threading.Tasks.Task
<Extension()>
Public Function ChallengeAsync (context As HttpContext, scheme As String, properties As AuthenticationProperties) As Task

Parameter

context
HttpContext

Der HttpContext Kontext.

scheme
String

Der Name des Authentifizierungsschemas.

properties
AuthenticationProperties

Die AuthenticationProperties Eigenschaften.

Gibt zurück

Die Aufgabe.

Gilt für: