-
Notifications
You must be signed in to change notification settings - Fork 11
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
Endpoint for fetching current party roles #983
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
src/Altinn.App.Core/Infrastructure/Clients/Authorization/AuthorizationClient.cs
Fixed
Show fixed
Hide fixed
src/Altinn.App.Core/Infrastructure/Clients/Authorization/AuthorizationClient.cs
Outdated
Show resolved
Hide resolved
src/Altinn.App.Core/Infrastructure/Clients/Authorization/AuthorizationClient.cs
Outdated
Show resolved
Hide resolved
src/Altinn.App.Core/Infrastructure/Clients/Authorization/AuthorizationClient.cs
Outdated
Show resolved
Hide resolved
new HttpResponseMessage | ||
{ | ||
StatusCode = System.Net.HttpStatusCode.OK, | ||
Content = new StringContent(responseJson, System.Text.Encoding.UTF8, "application/json"), | ||
} |
Check warning
Code scanning / CodeQL
Missing Dispose call on local IDisposable Warning test
new HttpResponseMessage | ||
{ | ||
StatusCode = System.Net.HttpStatusCode.InternalServerError, | ||
Content = new StringContent("Internal Server Error"), | ||
} |
Check warning
Code scanning / CodeQL
Missing Dispose call on local IDisposable Warning test
test/Altinn.App.Core.Tests/Infrastructure/Clients/Authorization/AuthorizationClientTests.cs
Fixed
Show fixed
Hide fixed
test/Altinn.App.Core.Tests/Infrastructure/Clients/Authorization/AuthorizationClientTests.cs
Fixed
Show fixed
Hide fixed
test/Altinn.App.Core.Tests/Infrastructure/Clients/Authorization/AuthorizationClientTests.cs
Fixed
Show fixed
Hide fixed
test/Altinn.App.Core.Tests/Infrastructure/Clients/Authorization/AuthorizationClientTests.cs
Fixed
Show fixed
Hide fixed
Co-authored-by: Ivar Nesje <ivarne@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Quality Gate failedFailed conditions |
Adds endpoint for fetching the users current party roles.
You need this PR in localtest to test:
Altinn/app-localtest#131
Description
/api/authorization/roles
to AuthorizationControllerRelated Issue(s)
Verification
Documentation