Energinet-DataHub / ARCHIVED-geh-charges

Apache License 2.0
7 stars 3 forks source link

refac: Use JWT permission middleware #1895

Closed defectiveAi closed 1 year ago

defectiveAi commented 1 year ago

Enabling permissions requires new middleware that can validate the updated token. This PR has to be completed simultaneously with other domains.

codecov[bot] commented 1 year ago

Codecov Report

Merging #1895 (e68abf0) into main (f0115c3) will increase coverage by 52.11%. The diff coverage is 91.06%.

@@             Coverage Diff             @@
##             main    #1895       +/-   ##
===========================================
+ Coverage   32.22%   84.34%   +52.11%     
===========================================
  Files          24      460      +436     
  Lines         512     8193     +7681     
  Branches       23       23               
===========================================
+ Hits          165     6910     +6745     
- Misses        332     1139      +807     
- Partials       15      144      +129     
Flag Coverage Δ
business 87.81% <91.06%> (?)
clientlibraries 32.22% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...s.FunctionHost/ChargeLinks/ChargeLinksIngestion.cs 0.00% <ø> (ø)
...ub.Charges.FunctionHost/Charges/ChargeIngestion.cs 0.00% <ø> (ø)
...nHost/Configuration/ServiceCollectionExtensions.cs 47.91% <ø> (ø)
...nEnergyHub.Charges.Infrastructure/ActorProvider.cs 100.00% <ø> (ø)
...nEnergyHub.Charges.QueryApi/Model/ChargeHistory.cs 0.00% <0.00%> (ø)
...nEnergyHub.Charges.QueryApi/Model/ChargeMessage.cs 0.00% <ø> (ø)
...tionHost/Configuration/HealthCheckConfiguration.cs 51.06% <40.00%> (ø)
...nEnergyHub.Charges.Domain/Charges/ChargeHistory.cs 93.97% <93.97%> (ø)
...ndlers/ChargeInformation/ChargeHistoryPersister.cs 100.00% <100.00%> (ø)
...tionHost/Charges/ChargeHistoryPersisterEndpoint.cs 100.00% <100.00%> (ø)
... and 441 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

0.0% 0.0% Coverage
0.0% 0.0% Duplication

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication