AuthorizationServiceExtensions.AuthorizeAsync メソッド

定義

オーバーロード

AuthorizeAsync(IAuthorizationService, ClaimsPrincipal, AuthorizationPolicy)

ユーザーが指定したリソースに対して特定の承認ポリシーを満たしているかどうかを確認します。

AuthorizeAsync(IAuthorizationService, ClaimsPrincipal, String)

ユーザーが指定したリソースに対して特定の承認ポリシーを満たしているかどうかを確認します。

AuthorizeAsync(IAuthorizationService, ClaimsPrincipal, Object, AuthorizationPolicy)

ユーザーが指定したリソースに対して特定の承認ポリシーを満たしているかどうかを確認します。

AuthorizeAsync(IAuthorizationService, ClaimsPrincipal, Object, IAuthorizationRequirement)

ユーザーが指定されたリソースの特定の要件を満たしているかどうかを確認します

AuthorizeAsync(IAuthorizationService, ClaimsPrincipal, AuthorizationPolicy)

ソース:
AuthorizationServiceExtensions.cs
ソース:
AuthorizationServiceExtensions.cs
ソース:
AuthorizationServiceExtensions.cs
ソース:
AuthorizationServiceExtensions.cs
ソース:
AuthorizationServiceExtensions.cs
ソース:
AuthorizationServiceExtensions.cs
ソース:
AuthorizationServiceExtensions.cs
ソース:
AuthorizationServiceExtensions.cs
ソース:
AuthorizationServiceExtensions.cs

ユーザーが指定したリソースに対して特定の承認ポリシーを満たしているかどうかを確認します。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<bool> ^ AuthorizeAsync(Microsoft::AspNetCore::Authorization::IAuthorizationService ^ service, System::Security::Claims::ClaimsPrincipal ^ user, Microsoft::AspNetCore::Authorization::AuthorizationPolicy ^ policy);
public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<Microsoft::AspNetCore::Authorization::AuthorizationResult ^> ^ AuthorizeAsync(Microsoft::AspNetCore::Authorization::IAuthorizationService ^ service, System::Security::Claims::ClaimsPrincipal ^ user, Microsoft::AspNetCore::Authorization::AuthorizationPolicy ^ policy);
public static System.Threading.Tasks.Task<bool> AuthorizeAsync (this Microsoft.AspNetCore.Authorization.IAuthorizationService service, System.Security.Claims.ClaimsPrincipal user, Microsoft.AspNetCore.Authorization.AuthorizationPolicy policy);
public static System.Threading.Tasks.Task<Microsoft.AspNetCore.Authorization.AuthorizationResult> AuthorizeAsync (this Microsoft.AspNetCore.Authorization.IAuthorizationService service, System.Security.Claims.ClaimsPrincipal user, Microsoft.AspNetCore.Authorization.AuthorizationPolicy policy);
static member AuthorizeAsync : Microsoft.AspNetCore.Authorization.IAuthorizationService * System.Security.Claims.ClaimsPrincipal * Microsoft.AspNetCore.Authorization.AuthorizationPolicy -> System.Threading.Tasks.Task<bool>
static member AuthorizeAsync : Microsoft.AspNetCore.Authorization.IAuthorizationService * System.Security.Claims.ClaimsPrincipal * Microsoft.AspNetCore.Authorization.AuthorizationPolicy -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authorization.AuthorizationResult>
<Extension()>
Public Function AuthorizeAsync (service As IAuthorizationService, user As ClaimsPrincipal, policy As AuthorizationPolicy) As Task(Of Boolean)
<Extension()>
Public Function AuthorizeAsync (service As IAuthorizationService, user As ClaimsPrincipal, policy As AuthorizationPolicy) As Task(Of AuthorizationResult)

パラメーター

service
IAuthorizationService

承認を提供する IAuthorizationService

user
ClaimsPrincipal

ポリシーを評価する対象のユーザー。

policy
AuthorizationPolicy

評価するポリシー。

戻り値

ポリシーの評価が成功したか失敗したかを示すフラグ。 この値は、ユーザーがポリシーを満たすときに true されます。それ以外の場合は false

適用対象

AuthorizeAsync(IAuthorizationService, ClaimsPrincipal, String)

ソース:
AuthorizationServiceExtensions.cs
ソース:
AuthorizationServiceExtensions.cs
ソース:
AuthorizationServiceExtensions.cs
ソース:
AuthorizationServiceExtensions.cs
ソース:
AuthorizationServiceExtensions.cs
ソース:
AuthorizationServiceExtensions.cs
ソース:
AuthorizationServiceExtensions.cs
ソース:
AuthorizationServiceExtensions.cs
ソース:
AuthorizationServiceExtensions.cs

ユーザーが指定したリソースに対して特定の承認ポリシーを満たしているかどうかを確認します。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<bool> ^ AuthorizeAsync(Microsoft::AspNetCore::Authorization::IAuthorizationService ^ service, System::Security::Claims::ClaimsPrincipal ^ user, System::String ^ policyName);
public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<Microsoft::AspNetCore::Authorization::AuthorizationResult ^> ^ AuthorizeAsync(Microsoft::AspNetCore::Authorization::IAuthorizationService ^ service, System::Security::Claims::ClaimsPrincipal ^ user, System::String ^ policyName);
public static System.Threading.Tasks.Task<bool> AuthorizeAsync (this Microsoft.AspNetCore.Authorization.IAuthorizationService service, System.Security.Claims.ClaimsPrincipal user, string policyName);
public static System.Threading.Tasks.Task<Microsoft.AspNetCore.Authorization.AuthorizationResult> AuthorizeAsync (this Microsoft.AspNetCore.Authorization.IAuthorizationService service, System.Security.Claims.ClaimsPrincipal user, string policyName);
static member AuthorizeAsync : Microsoft.AspNetCore.Authorization.IAuthorizationService * System.Security.Claims.ClaimsPrincipal * string -> System.Threading.Tasks.Task<bool>
static member AuthorizeAsync : Microsoft.AspNetCore.Authorization.IAuthorizationService * System.Security.Claims.ClaimsPrincipal * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authorization.AuthorizationResult>
<Extension()>
Public Function AuthorizeAsync (service As IAuthorizationService, user As ClaimsPrincipal, policyName As String) As Task(Of Boolean)
<Extension()>
Public Function AuthorizeAsync (service As IAuthorizationService, user As ClaimsPrincipal, policyName As String) As Task(Of AuthorizationResult)

パラメーター

service
IAuthorizationService

承認を提供する IAuthorizationService

user
ClaimsPrincipal

ポリシーを評価する対象のユーザー。

policyName
String

評価するポリシーの名前。

戻り値

ポリシーの評価が成功したか失敗したかを示すフラグ。 この値は、ユーザーがポリシーを満たすときに true されます。それ以外の場合は false

適用対象

AuthorizeAsync(IAuthorizationService, ClaimsPrincipal, Object, AuthorizationPolicy)

ソース:
AuthorizationServiceExtensions.cs
ソース:
AuthorizationServiceExtensions.cs
ソース:
AuthorizationServiceExtensions.cs
ソース:
AuthorizationServiceExtensions.cs
ソース:
AuthorizationServiceExtensions.cs
ソース:
AuthorizationServiceExtensions.cs
ソース:
AuthorizationServiceExtensions.cs
ソース:
AuthorizationServiceExtensions.cs
ソース:
AuthorizationServiceExtensions.cs

ユーザーが指定したリソースに対して特定の承認ポリシーを満たしているかどうかを確認します。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<bool> ^ AuthorizeAsync(Microsoft::AspNetCore::Authorization::IAuthorizationService ^ service, System::Security::Claims::ClaimsPrincipal ^ user, System::Object ^ resource, Microsoft::AspNetCore::Authorization::AuthorizationPolicy ^ policy);
public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<Microsoft::AspNetCore::Authorization::AuthorizationResult ^> ^ AuthorizeAsync(Microsoft::AspNetCore::Authorization::IAuthorizationService ^ service, System::Security::Claims::ClaimsPrincipal ^ user, System::Object ^ resource, Microsoft::AspNetCore::Authorization::AuthorizationPolicy ^ policy);
public static System.Threading.Tasks.Task<bool> AuthorizeAsync (this Microsoft.AspNetCore.Authorization.IAuthorizationService service, System.Security.Claims.ClaimsPrincipal user, object resource, Microsoft.AspNetCore.Authorization.AuthorizationPolicy policy);
public static System.Threading.Tasks.Task<Microsoft.AspNetCore.Authorization.AuthorizationResult> AuthorizeAsync (this Microsoft.AspNetCore.Authorization.IAuthorizationService service, System.Security.Claims.ClaimsPrincipal user, object resource, Microsoft.AspNetCore.Authorization.AuthorizationPolicy policy);
public static System.Threading.Tasks.Task<Microsoft.AspNetCore.Authorization.AuthorizationResult> AuthorizeAsync (this Microsoft.AspNetCore.Authorization.IAuthorizationService service, System.Security.Claims.ClaimsPrincipal user, object? resource, Microsoft.AspNetCore.Authorization.AuthorizationPolicy policy);
static member AuthorizeAsync : Microsoft.AspNetCore.Authorization.IAuthorizationService * System.Security.Claims.ClaimsPrincipal * obj * Microsoft.AspNetCore.Authorization.AuthorizationPolicy -> System.Threading.Tasks.Task<bool>
static member AuthorizeAsync : Microsoft.AspNetCore.Authorization.IAuthorizationService * System.Security.Claims.ClaimsPrincipal * obj * Microsoft.AspNetCore.Authorization.AuthorizationPolicy -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authorization.AuthorizationResult>
<Extension()>
Public Function AuthorizeAsync (service As IAuthorizationService, user As ClaimsPrincipal, resource As Object, policy As AuthorizationPolicy) As Task(Of Boolean)
<Extension()>
Public Function AuthorizeAsync (service As IAuthorizationService, user As ClaimsPrincipal, resource As Object, policy As AuthorizationPolicy) As Task(Of AuthorizationResult)

パラメーター

service
IAuthorizationService

承認を提供する IAuthorizationService

user
ClaimsPrincipal

ポリシーを評価する対象のユーザー。

resource
Object

ポリシーを評価する対象のリソース。

policy
AuthorizationPolicy

評価するポリシー。

戻り値

ポリシーの評価が成功したか失敗したかを示すフラグ。 この値は、ユーザーがポリシーを満たすときに true されます。それ以外の場合は false

適用対象

AuthorizeAsync(IAuthorizationService, ClaimsPrincipal, Object, IAuthorizationRequirement)

ソース:
AuthorizationServiceExtensions.cs
ソース:
AuthorizationServiceExtensions.cs
ソース:
AuthorizationServiceExtensions.cs
ソース:
AuthorizationServiceExtensions.cs
ソース:
AuthorizationServiceExtensions.cs
ソース:
AuthorizationServiceExtensions.cs
ソース:
AuthorizationServiceExtensions.cs
ソース:
AuthorizationServiceExtensions.cs
ソース:
AuthorizationServiceExtensions.cs

ユーザーが指定されたリソースの特定の要件を満たしているかどうかを確認します

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<bool> ^ AuthorizeAsync(Microsoft::AspNetCore::Authorization::IAuthorizationService ^ service, System::Security::Claims::ClaimsPrincipal ^ user, System::Object ^ resource, Microsoft::AspNetCore::Authorization::IAuthorizationRequirement ^ requirement);
public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<Microsoft::AspNetCore::Authorization::AuthorizationResult ^> ^ AuthorizeAsync(Microsoft::AspNetCore::Authorization::IAuthorizationService ^ service, System::Security::Claims::ClaimsPrincipal ^ user, System::Object ^ resource, Microsoft::AspNetCore::Authorization::IAuthorizationRequirement ^ requirement);
public static System.Threading.Tasks.Task<bool> AuthorizeAsync (this Microsoft.AspNetCore.Authorization.IAuthorizationService service, System.Security.Claims.ClaimsPrincipal user, object resource, Microsoft.AspNetCore.Authorization.IAuthorizationRequirement requirement);
public static System.Threading.Tasks.Task<Microsoft.AspNetCore.Authorization.AuthorizationResult> AuthorizeAsync (this Microsoft.AspNetCore.Authorization.IAuthorizationService service, System.Security.Claims.ClaimsPrincipal user, object resource, Microsoft.AspNetCore.Authorization.IAuthorizationRequirement requirement);
public static System.Threading.Tasks.Task<Microsoft.AspNetCore.Authorization.AuthorizationResult> AuthorizeAsync (this Microsoft.AspNetCore.Authorization.IAuthorizationService service, System.Security.Claims.ClaimsPrincipal user, object? resource, Microsoft.AspNetCore.Authorization.IAuthorizationRequirement requirement);
static member AuthorizeAsync : Microsoft.AspNetCore.Authorization.IAuthorizationService * System.Security.Claims.ClaimsPrincipal * obj * Microsoft.AspNetCore.Authorization.IAuthorizationRequirement -> System.Threading.Tasks.Task<bool>
static member AuthorizeAsync : Microsoft.AspNetCore.Authorization.IAuthorizationService * System.Security.Claims.ClaimsPrincipal * obj * Microsoft.AspNetCore.Authorization.IAuthorizationRequirement -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authorization.AuthorizationResult>
<Extension()>
Public Function AuthorizeAsync (service As IAuthorizationService, user As ClaimsPrincipal, resource As Object, requirement As IAuthorizationRequirement) As Task(Of Boolean)
<Extension()>
Public Function AuthorizeAsync (service As IAuthorizationService, user As ClaimsPrincipal, resource As Object, requirement As IAuthorizationRequirement) As Task(Of AuthorizationResult)

パラメーター

service
IAuthorizationService

承認を提供する IAuthorizationService

user
ClaimsPrincipal

ポリシーを評価する対象のユーザー。

resource
Object

ポリシーを評価する対象のリソース。

requirement
IAuthorizationRequirement

ポリシーを評価する要件。

戻り値

要件の評価が成功したか失敗したかを示すフラグ。 この値は、ユーザーがポリシーを満たすときに true されます。それ以外の場合は false

適用対象