Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mehyaa authored and raman-m committed Aug 24, 2023
1 parent 732ec04 commit b389e86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ocelot/Authorization/ScopesAuthorizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public Response<bool> Authorize(ClaimsPrincipal claimsPrincipal, List<string> ro
if (routeAllowedScopes.Except(userScopes).Any())
{
return new ErrorResponse<bool>(
new ScopeNotAuthorizedError($"User scopes: '{string.Join(",", scopes)}' do not have all allowed route scopes: '{string.Join(",", routeAllowedScopes)}'"));
new ScopeNotAuthorizedError($"User scopes: '{string.Join(",", userScopes)}' do not have all allowed route scopes: '{string.Join(",", routeAllowedScopes)}'"));
}

return new OkResponse<bool>(true);
Expand Down

0 comments on commit b389e86

Please sign in to comment.