다음을 통해 공유


AuthorizationServiceExtensions.AuthorizeAsync 메서드

정의

오버로드

AuthorizeAsync(IAuthorizationService, ClaimsPrincipal, AuthorizationPolicy)

사용자가 지정된 리소스에 대한 특정 권한 부여 정책을 충족하는지 확인합니다.

AuthorizeAsync(IAuthorizationService, ClaimsPrincipal, String)

사용자가 지정된 리소스에 대한 특정 권한 부여 정책을 충족하는지 확인합니다.

AuthorizeAsync(IAuthorizationService, ClaimsPrincipal, Object, AuthorizationPolicy)

사용자가 지정된 리소스에 대한 특정 권한 부여 정책을 충족하는지 확인합니다.

AuthorizeAsync(IAuthorizationService, ClaimsPrincipal, Object, IAuthorizationRequirement)

사용자가 지정된 리소스에 대한 특정 요구 사항을 충족하는지 확인합니다.

AuthorizeAsync(IAuthorizationService, ClaimsPrincipal, AuthorizationPolicy)

Source:
AuthorizationServiceExtensions.cs
Source:
AuthorizationServiceExtensions.cs
Source:
AuthorizationServiceExtensions.cs
Source:
AuthorizationServiceExtensions.cs
Source:
AuthorizationServiceExtensions.cs
Source:
AuthorizationServiceExtensions.cs
Source:
AuthorizationServiceExtensions.cs
Source:
AuthorizationServiceExtensions.cs
Source:
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)

Source:
AuthorizationServiceExtensions.cs
Source:
AuthorizationServiceExtensions.cs
Source:
AuthorizationServiceExtensions.cs
Source:
AuthorizationServiceExtensions.cs
Source:
AuthorizationServiceExtensions.cs
Source:
AuthorizationServiceExtensions.cs
Source:
AuthorizationServiceExtensions.cs
Source:
AuthorizationServiceExtensions.cs
Source:
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)

Source:
AuthorizationServiceExtensions.cs
Source:
AuthorizationServiceExtensions.cs
Source:
AuthorizationServiceExtensions.cs
Source:
AuthorizationServiceExtensions.cs
Source:
AuthorizationServiceExtensions.cs
Source:
AuthorizationServiceExtensions.cs
Source:
AuthorizationServiceExtensions.cs
Source:
AuthorizationServiceExtensions.cs
Source:
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)

Source:
AuthorizationServiceExtensions.cs
Source:
AuthorizationServiceExtensions.cs
Source:
AuthorizationServiceExtensions.cs
Source:
AuthorizationServiceExtensions.cs
Source:
AuthorizationServiceExtensions.cs
Source:
AuthorizationServiceExtensions.cs
Source:
AuthorizationServiceExtensions.cs
Source:
AuthorizationServiceExtensions.cs
Source:
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.

적용 대상