Skip to content

Commit

Permalink
Tiny change
Browse files Browse the repository at this point in the history
  • Loading branch information
mehyaa authored and raman-m committed Nov 5, 2024
1 parent ecb22c7 commit 528db09
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/Ocelot/Authorization/ScopesAuthorizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<bool> Authorize(ClaimsPrincipal claimsPrincipal, List<string> routeAllowedScopes)
Expand Down Expand Up @@ -49,4 +50,4 @@ public Response<bool> Authorize(ClaimsPrincipal claimsPrincipal, List<string> ro
return new OkResponse<bool>(true);
}
}
}
}

0 comments on commit 528db09

Please sign in to comment.