-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: Add optional EndUserId param to ServiceOwner Get Dialog details API #1020
Conversation
Opprinnelig ønsket implementasjon av innslag i SeenLog i følge issue #386:
Denne specen ble vel lagt inn mens SeenLog fremdeles var en string, så det lar seg vel neppe gjøres slik lenger. Slik det er implementert nå blir innslag i Seenlog seende ut som følger, der Actor inneholder sluttbrukerens detaljer, mens EndUserType blir ServiceOwnerOnBehalfOfPerson og IsViaServiceOwner = true. Usikker på om det blir som ønsket: |
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.
Ta kontakt om det er noe spørsmål om reviewen :)
...n.Dialogporten.Application/Externals/AltinnAuthorization/DialogDetailsAuthorizationResult.cs
Outdated
Show resolved
Hide resolved
...r.Domain.Dialogporten.WebApi/Common/Authentication/ServiceOwnerOnBehalfOfPersonMiddleware.cs
Outdated
Show resolved
Hide resolved
...ten.WebApi/Endpoints/V1/ServiceOwner/DialogActivities/Create/CreateDialogActivityEndpoint.cs
Outdated
Show resolved
Hide resolved
...Api/Endpoints/V1/ServiceOwner/DialogTransmissions/Create/CreateDialogTransmissionEndpoint.cs
Outdated
Show resolved
Hide resolved
...r.Domain.Dialogporten.WebApi/Common/Authentication/ServiceOwnerOnBehalfOfPersonMiddleware.cs
Outdated
Show resolved
Hide resolved
...main.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Queries/Get/GetDialogQuery.cs
Outdated
Show resolved
Hide resolved
...ogporten.Application/Features/V1/ServiceOwner/Dialogs/Queries/Get/GetDialogQueryValidator.cs
Outdated
Show resolved
Hide resolved
...main.Dialogporten.Infrastructure/Altinn/Authorization/LocalDevelopmentAltinnAuthorization.cs
Outdated
Show resolved
Hide resolved
...main.Dialogporten.Infrastructure/Altinn/Authorization/LocalDevelopmentAltinnAuthorization.cs
Show resolved
Hide resolved
Burde vi ta vare på hvilken service owner som jobber på vegne av brukeren når |
I første omgang ja. Men det vil kunne bli scenarioer hvor det er andre aktører (orgnr) som har integrert med Dialogporten på vegne av tjenesteeieren, og "impersonater" tjenesteeieren gjennom en delegering av serviceprovider-scopet. I de tilfellene har Maskinporten-tokenet et ekstra claim, "supplier_org", som inneholder den autentiserte parten (mens "consumer_org" alltid vil være tjenesteeieren). Så for full paranoia kunne vi ha logget consumer_org, supplier_org og client_id (sistnevnte for å kunne ha sporbarhet ifm #40, som gjør det interessant å kunne skille på systemer innad hos en tjenesteeier), da vil vi ha god informasjon om hvem som faktisk gjorde en ServiceOwnerOnBehalfOfPerson. Tenker vi kan avvente med dette inntil videre. Uansett ikke informasjon som vi vil komme til å eksponere i DTO-ene, så det kan vi innføre når som helst i fremtiden. |
90ec9aa
to
eff39af
Compare
eff39af
to
d331fbc
Compare
...ogporten.Application/Features/V1/ServiceOwner/Dialogs/Queries/Get/GetDialogQueryValidator.cs
Outdated
Show resolved
Hide resolved
Quality Gate failedFailed conditions |
🤖 I have created a release *beep* *boop* --- ## [1.15.0](v1.14.0...v1.15.0) (2024-08-21) ### Features * add support for serviceowner admin scope ([#1002](#1002)) ([2638b48](2638b48)) * **web-api:** Add optional EndUserId param to ServiceOwner Get Dialog details API ([#1020](#1020)) ([1380b33](1380b33)) ### Bug Fixes * **azure:** use correct ip for APIM in prod ([#1036](#1036)) ([fecc4c0](fecc4c0)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Description
Add optional EndUserId param to ServiceOwner Get Dialog details API
Related Issue(s)
Verification
Documentation
docs
-directory, Altinnpedia or a separate linked PR in altinn-studio-docs., if applicable)