Skip to content

Commit d3eece5

Browse files
Rename method
1 parent f693617 commit d3eece5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Components/Components/src/Auth/AuthorizeViewCore.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,15 @@ protected override async Task OnParametersSetAsync()
102102
private async Task<bool> IsAuthorizedAsync(ClaimsPrincipal user)
103103
{
104104
var authorizeData = GetAuthorizeData();
105-
EnsureNoAuthorizationSchemeSpecified(authorizeData);
105+
EnsureNoAuthenticationSchemeSpecified(authorizeData);
106106

107107
var policy = await AuthorizationPolicy.CombineAsync(
108108
AuthorizationPolicyProvider, authorizeData);
109109
var result = await AuthorizationService.AuthorizeAsync(user, Resource, policy);
110110
return result.Succeeded;
111111
}
112112

113-
private static void EnsureNoAuthorizationSchemeSpecified(IAuthorizeData[] authorizeData)
113+
private static void EnsureNoAuthenticationSchemeSpecified(IAuthorizeData[] authorizeData)
114114
{
115115
// It's not meaningful to specify a nonempty scheme, since by the time Components
116116
// authorization runs, we already have a specific ClaimsPrincipal (we're stateful).

0 commit comments

Comments
 (0)