From b13d747a5dea275bad90734145a694864e5b8c81 Mon Sep 17 00:00:00 2001 From: Mehmet Yasin AKAR Date: Fri, 15 Sep 2023 09:59:23 +0300 Subject: [PATCH] Tiny change --- src/Ocelot/Authorization/ScopesAuthorizer.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/Ocelot/Authorization/ScopesAuthorizer.cs b/src/Ocelot/Authorization/ScopesAuthorizer.cs index 904b5ea21f..a7a56daeb4 100644 --- a/src/Ocelot/Authorization/ScopesAuthorizer.cs +++ b/src/Ocelot/Authorization/ScopesAuthorizer.cs @@ -7,11 +7,12 @@ namespace Ocelot.Authorization public class ScopesAuthorizer : IScopesAuthorizer { private const string ScopeClaimKey = "scope"; - private readonly IClaimsParser _claimsParser; - - public ScopesAuthorizer(IClaimsParser claimsParser) - { - _claimsParser = claimsParser; + + private readonly IClaimsParser _claimsParser; + + public ScopesAuthorizer(IClaimsParser claimsParser) + { + _claimsParser = claimsParser; } public Response Authorize(ClaimsPrincipal claimsPrincipal, List routeAllowedScopes) @@ -49,4 +50,4 @@ public Response Authorize(ClaimsPrincipal claimsPrincipal, List ro return new OkResponse(true); } } -} +} \ No newline at end of file