Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

second round of suggested changes #1098

Merged
merged 2 commits into from
Mar 29, 2021
Merged

second round of suggested changes #1098

merged 2 commits into from
Mar 29, 2021

Conversation

jennyf19
Copy link
Collaborator

No description provided.

@jennyf19 jennyf19 requested a review from jmprieur March 28, 2021 00:09
Copy link
Collaborator

@jmprieur jmprieur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've 2 questions.

@@ -113,11 +110,7 @@ public class DownstreamWebApi : IDownstreamWebApi
user,
new StringContent(JsonSerializer.Serialize(input), Encoding.UTF8, "application/json")).ConfigureAwait(false);

try
{
response.EnsureSuccessStatusCode();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reverted back to what we have for now. will take a more indepth look at this later

@@ -50,7 +50,7 @@ public void OnAuthorization(AuthorizationFilterContext context)

private void ValidateEffectiveScopes(AuthorizationFilterContext context)
{
if (_effectiveAcceptedScopes == null || !_effectiveAcceptedScopes.Any())
if (_effectiveAcceptedScopes == null || _effectiveAcceptedScopes.Length < 0)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably == 0

Copy link
Collaborator

@jmprieur jmprieur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Thanks @jennyf19

@sonarqubecloud
Copy link

@jennyf19 jennyf19 merged commit 063f067 into master Mar 29, 2021
@jennyf19 jennyf19 deleted the jennyf/perf2 branch May 31, 2021 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants