Skip to content

Extend authorized parties with instance delegations #2189

Extend authorized parties with instance delegations

Extend authorized parties with instance delegations #2189

Triggered via pull request October 25, 2024 09:42
Status Success
Total duration 4m 52s
Artifacts

build-and-analyze.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
Analyze: src/Altinn.AccessManagement.Core/Services/AppsInstanceDelegationService.cs#L188
Define a constant instead of using this literal 'appInstanceDelegationRequest.Resource' 6 times. (https://rules.sonarsource.com/csharp/RSPEC-1192)
Analyze: src/Altinn.AccessManagement.Core/Repositories/Interfaces/IDelegationMetadataRepository.cs#L67
Method has 8 parameters, which is greater than the 7 authorized. (https://rules.sonarsource.com/csharp/RSPEC-107)
Analyze: src/Altinn.AccessManagement.Core/Services/AppsInstanceDelegationService.cs#L220
'delegableRights' is null on at least one execution path. (https://rules.sonarsource.com/csharp/RSPEC-2259)
Analyze: src/Altinn.AccessManagement.Core/Services/AuthorizedPartiesService.cs#L192
Refactor this method to reduce its Cognitive Complexity from 73 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
Analyze: src/Altinn.AccessManagement.Integration/Clients/AltinnRolesClient.cs#L79
Either log this exception and handle it, or rethrow it with some contextual information. (https://rules.sonarsource.com/csharp/RSPEC-2139)
Analyze: src/Altinn.AccessManagement.Integration/Clients/AltinnRolesClient.cs#L54
Either log this exception and handle it, or rethrow it with some contextual information. (https://rules.sonarsource.com/csharp/RSPEC-2139)
Analyze: src/Altinn.AccessManagement.Integration/Clients/AltinnRolesClient.cs#L105
Either log this exception and handle it, or rethrow it with some contextual information. (https://rules.sonarsource.com/csharp/RSPEC-2139)
Analyze: src/Altinn.AccessManagement.Persistence/DelegationMetadataRepository.cs#L93
Define a constant instead of using this literal '_offeredByPartyId' 6 times. (https://rules.sonarsource.com/csharp/RSPEC-1192)
Analyze: src/Altinn.AccessManagement.Persistence/DelegationMetadataRepository.cs#L94
Define a constant instead of using this literal '_coveredByUserId' 6 times. (https://rules.sonarsource.com/csharp/RSPEC-1192)
Analyze: src/Altinn.AccessManagement.Persistence/DelegationMetadataRepository.cs#L95
Define a constant instead of using this literal '_coveredByPartyId' 5 times. (https://rules.sonarsource.com/csharp/RSPEC-1192)