<!--- Provide a general summary of your changes in the Title above -->
## Description
<!--- Describe your changes in detail -->
For Story AB#1618387
Adding function to audit log 'logout for all session'.
Reference documentation:
https://hl7.org/fhir/valueset-audit-event-type.htmlhttps://hl7.org/fhir/R4/codesystem-dicom-dcim.html#dicom-dcim-110114
## Motivation and Context
<!--- Why is this change required? What problem does it solve? -->
<!--- If it fixes an open issue, please link to the issue here. -->
## How Has This Been Tested?
Tested locally with webhook.
Build a new docker image in wsl with `docker buildx build -t
oauth-local:v0.0.3 .`
Update the docker-compose.yml file to
Updated the environment variable for .env.oauth2-proxy.us-east
Adding =>
`OAUTH2_PROXY_AUDIT_URL=https://webhook.site/0d7939ba-13f3-4cbc-ac2c-b814a3add0ca`
The audit logging is posted to the webhook =>
`
{
"resourceType": "AuditEvent",
"event": {
"type": {
"system": "http://hl7.org/fhir/ValueSet/audit-event-type",
"version": "1",
"code": "110123",
"display": "Logout",
"userSelected": "All Sessions"
},
"action": "E",
"dateTime": "2024-12-19T12:44:30Z",
"outcome": "0",
"outcomeDesc": "Success"
},
"participant": [
{
"userId": {
"value": "SECRET"
},
"altId": "SECRET",
"requestor": true
}
],
"source": {
"identifier": {
"type": {
"system": "http://hl7.org/fhir/ValueSet/audit-source-type",
"code": "4",
"display": "Application Server"
},
"value": "admin_fthv@philips.com"
},
"type": [
{
"system": "http://hl7.org/fhir/security-source-type",
"code": "1",
"display": "End-user display device, diagnostic device."
}
],
"extension": [
{
"url": "/worklist",
"extension": [
{
"url": "applicationName",
"valueString": "ReportingTest"
},
{
"url": "applicationVersion",
"valueString": "1"
},
{
"url": "serverName",
"valueString": "oauth2proxy"
},
{
"url": "componentName",
"valueString": "oauth2proxy"
},
{
"url": "productKey",
"valueString": "SECRET"
},
{
"url": "tenant",
"valueString": "SECRET"
}
]
}
]
}
}
`
## Checklist:
<!--- Go over all the following points, and put an `x` in all the boxes
that apply. -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
- [ ] My change requires a change to the documentation or CHANGELOG.
- [ ] I have updated the documentation/CHANGELOG accordingly.
- [ ] I have created a feature (non-master) branch for my PR.
- [ ] I have written tests for my code changes.
## Description
Merge from Upstream/Release/7.7.1
AB#1611455
## Motivation and Context
Keeping OAuth2-Proxy up-to-date with the upstream
## How Has This Been Tested?
Created a local container image of the oauth-proxy from this PR and
integrated it with Reporting locally.
- run in the root of this repo
- docker buildx build -t oauth-local .
- Updated FROM statement in pics/src/services/Oauth2Proxy/Dockerfile to
- FROM oauth-local
The following flows were checked:
- Login
- Audit logs
- Logout
## Checklist:
- [x] Merge from Upstream/Release/7.7.1
## Description
Isolating PICS custom changes
## Motivation and Context
It's hard to understand what are our custom changes and what is from
OAuth2-Proxy main repo
## How Has This Been Tested?
Created a local container image of the oauth-proxy from this PR and
integrated it with Reporting locally.
- run in the root of this repo
- docker buildx build -t oauth-local .
- Updated FROM statement in pics/src/services/Oauth2Proxy/Dockerfile to
- FROM oauth-local
The following flows were checked:
- Login
- Audit logs
- Logout
## Checklist:
- [x] Isolating some dunction in separated files
- [x] Creating a folder for Pics packages
Removing blank lines/spaces/tabs differences with upstream
## Motivation and Context
Minimize conflicts when merging a new version
## How Has This Been Tested?
## Checklist:
- [x] Reverted formatting changes to minimize conflicts
* Issue 2311: runtime error: index out of range [0] with length 0 while extracting state of of the csrf
---------
Co-authored-by: tuunit <jan@larwig.com>